01: /*
02: * Entry.java
03: *
04: * Created on 23. Juli 2003, 22:09
05: */
06:
07: package org.contineo.core.text.analyze;
08:
09: /**
10: * This class encapsulates an entry consists of a top word and the quantity of this top word in the text.
11: * @author Michael Scholz
12: * @version 1.0
13: */
14: public class Entry {
15: /**
16: * @uml.property name="word"
17: */
18: private String word = "";
19: private String originWord = "";
20:
21: /**
22: * @uml.property name="number"
23: */
24: private int number = 0;
25:
26: /**
27: * Creates a new instance of Entry.
28: */
29: public Entry() {
30: } // end ctor Entry
31:
32: /**
33: * Creates a new instance of Entry.
34: * @param wd - Found top word.
35: * @param nb - Quantity of the top word in the text.
36: */
37: public Entry(String wd, int nb) {
38: word = wd;
39: number = nb;
40: } // end ctor Entry
41:
42: /**
43: * Returns the top word.
44: *
45: * @uml.property name="word"
46: */
47: public String getWord() {
48: return word;
49: } // end method getWord
50:
51: /**
52: * Returns the quantity of the top word in the text.
53: *
54: * @uml.property name="number"
55: */
56: public int getNumber() {
57: return number;
58: } // end method getNumber
59:
60: /**
61: * Sets the top word.
62: *
63: * @uml.property name="word"
64: */
65: public void setWord(String wd) {
66: word = wd;
67: } // end method setWord
68:
69: /**
70: * Sets the quantity of the top word.
71: *
72: * @uml.property name="number"
73: */
74: public void setNumber(int nb) {
75: number = nb;
76: } // end method setNumber
77:
78: /**
79: * @return Returns the originWord.
80: * @uml.property name="originWord"
81: */
82: public String getOriginWord() {
83: return originWord;
84: } // end method getOriginWord
85:
86: /**
87: * @param originWord The originWord to set.
88: * @uml.property name="originWord"
89: */
90: public void setOriginWord(String originWord) {
91: this .originWord = originWord;
92: } // end method setOriginWord
93: } // end class Entry
|