|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbox.dao.Word
public class Word
A class represents a word.
The data mapping details refer to "Word.hbm.xml".
WordHome| Constructor Summary | |
|---|---|
Word()
Constructs a new Word. |
|
| Method Summary | |
|---|---|
void |
addLocation(int loc)
Add a location to Word. |
long |
getId()
Return id of Word in data base. |
java.lang.String |
getIndex()
Return index of a word. |
java.util.Collection<java.lang.Integer> |
getLocations()
Return locations of Word in a Page. |
double |
getTf()
Return TF of Word in a page. |
java.lang.String |
getWordStr()
Return String of Word. |
void |
setId(long id)
Set id of Word. |
void |
setIndex(java.lang.String index)
Set index of Word. |
void |
setTf(double tf)
Set TF of Word. |
void |
setWordStr(java.lang.String wordStr)
Set String of Word. |
java.lang.String |
toString()
Return a string representing Word. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Word()
Word.
| Method Detail |
|---|
public java.lang.String getIndex()
Word.public void setIndex(java.lang.String index)
Word.
index - String representing index of Word.public double getTf()
Word in a page.
Word in a page.public void setTf(double tf)
Word.
tf - double value representing TF of Word.public java.lang.String getWordStr()
Word. This method is the same with
toString().
Word.public void setWordStr(java.lang.String wordStr)
Word.
wordStr - string representing a Word.public java.util.Collection<java.lang.Integer> getLocations()
Word in a Page.
public void addLocation(int loc)
Word.
loc - integer value representing locations of the word in a Page.public java.lang.String toString()
Word.
toString in class java.lang.ObjectWord.public long getId()
Word in data base.
Word in data base.public void setId(long id)
Word.
id - long value representing id of Word.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||