View Javadoc

1   /**
2    * 
3    */
4   package sk.stuba.fiit.foo07.genex.beans;
5   
6   /**
7    * @author Martin
8    * 
9    */
10  public class Keyword {
11      private String text;
12      private Integer keywordID;
13  
14      public Keyword() {
15      }
16  
17      public Keyword(String text, Integer keywordID) {
18          super();
19          this.text = text;
20          this.keywordID = keywordID;
21      }
22  
23      /**
24       * @return the text
25       */
26      public String getText() {
27          return text;
28      }
29  
30      /**
31       * @param text
32       *                the text to set
33       */
34      public void setText(String text) {
35          this.text = text;
36      }
37  
38      /**
39       * @return the keywordID
40       */
41      public Integer getKeywordID() {
42          return keywordID;
43      }
44  
45      /**
46       * @param keywordID
47       *                the keywordID to set
48       */
49      public void setKeywordID(Integer keywordID) {
50          this.keywordID = keywordID;
51      }
52  
53      /* (non-Javadoc)
54       * @see java.lang.Object#toString()
55       */
56      @Override
57      public String toString() {
58          return this.text;
59      }
60  }