|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmodelling.fiti.data.TermList
public class TermList
Class containing a list of all unique terms used. Term index can be calculated as the index of term in the list.
Constructor Summary | |
---|---|
TermList()
Constructor creating a new term list. |
Method Summary | |
---|---|
void |
addTerm(java.lang.String term)
Method for adding a term. |
java.lang.String |
getTerm(int index)
Method for getting a term by its index. |
int |
indexOf(java.lang.String term)
Method for getting the index of a term. |
int |
nofTerms()
Method for getting the number of unique terms. |
java.lang.String |
toString()
Method for getting a printable representation of the term list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TermList()
Method Detail |
---|
public void addTerm(java.lang.String term)
term
- The termpublic int nofTerms()
public int indexOf(java.lang.String term)
term
- The term
public java.lang.String getTerm(int index)
index
- The index
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |