01: package org.contineo.core.searchengine.util;
02:
03: import java.util.ArrayList;
04: import java.util.Collection;
05:
06: /**
07: * Created on 15.11.2004
08: */
09: public class TermEntry {
10: private String name;
11: private double value;
12: private String originWord;
13: private Collection<Edge> documents;
14:
15: /**
16: *
17: */
18: public TermEntry() {
19: name = "";
20: value = 0d;
21: originWord = "";
22: documents = new ArrayList<Edge>();
23: } // end ctor TermEntry
24:
25: /**
26: * @return Returns the name.
27: * @uml.property name="name"
28: */
29: public String getName() {
30: return name;
31: } // end method getName
32:
33: /**
34: * @param name The name to set.
35: * @uml.property name="name"
36: */
37: public void setName(String name) {
38: this .name = name;
39: } // end method setName
40:
41: /**
42: * @return Returns the documents.
43: * @uml.property name="documents"
44: */
45: public Collection getDocuments() {
46: return documents;
47: } // end method getDocuments
48:
49: /**
50: * @param documents The documents to set.
51: * @uml.property name="documents"
52: */
53: public void setDocuments(Collection<Edge> documents) {
54: this .documents = documents;
55: } // end method setDocuments
56:
57: /**
58: * Adds the id of an document to the document list.
59: * @param id
60: */
61: public void addDocument(Edge edge) {
62: documents.add(edge);
63: } // end method addDocument
64:
65: /**
66: * @return Returns the originWord.
67: * @uml.property name="originWord"
68: */
69: public String getOriginWord() {
70: return originWord;
71: } // end method getOriginWord
72:
73: /**
74: * @param originWord The originWord to set.
75: * @uml.property name="originWord"
76: */
77: public void setOriginWord(String originWord) {
78: this .originWord = originWord;
79: } // end method setOriginWord
80:
81: /**
82: * @return Returns the value.
83: * @uml.property name="value"
84: */
85: public double getValue() {
86: return value;
87: } // end method getValue
88:
89: /**
90: * @param value The value to set.
91: * @uml.property name="value"
92: */
93: public void setValue(double value) {
94: this .value = value;
95: } // end method setValue
96: } // end class TermEntry
|