View Javadoc

1   package org.sourceforge.vlibrary.user.domain;
2   
3   
4   /**
5    * Bean representing a subject classification <br>
6    *
7    * @version $Revision$ $Date$
8    */
9   
10  public class Subject {
11      private long id = 0;
12      private String description = null;
13      
14      public Subject() {
15      }
16      
17      public Subject(String desc) {
18          this.description = desc;
19      }
20      
21      public String getDescription() {
22          return description;
23      }
24      
25      public void setDescription(String description) {
26          this.description = description;
27      }
28      
29      public long getId() {
30          return id;
31      }
32      
33      public void setId(long id) {
34          this.id = id;
35      }
36      
37      public String toString() {
38          return "<Subject id=\"" + id + "\" description=\"" + description + "\" />";
39      }
40  }