|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.chaperon.model.lexicon.Lexicon
The lexicon represents a collection of lexemes.
Constructor Summary | |
Lexicon()
|
Method Summary | |
void |
addLexeme(Lexeme lexeme)
Add a lexeme to this lexicon. |
void |
addLexeme(Lexeme[] lexemes)
|
java.lang.Object |
clone()
Create a clone of this lexicon. |
Lexeme[] |
getLexeme()
|
Lexeme |
getLexeme(int index)
Return a lexeme given by an index. |
int |
getLexemeCount()
Return the count of lexemes in this lexicon. |
java.lang.String |
getLocation()
Returns the location from the input source. |
void |
removeLexeme(Lexeme lexeme)
Remove a lexeme from this lexicon. |
void |
setLocation(java.lang.String location)
Set the location from the input source. |
java.lang.String |
toString()
Return a string representation of the lexicon |
Violations |
validate()
Validates the lexicon. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Lexicon()
Method Detail |
public void addLexeme(Lexeme lexeme)
lexeme
- Lexeme, which should be added.public void addLexeme(Lexeme[] lexemes)
public void removeLexeme(Lexeme lexeme)
lexeme
- Lexeme, which should be removed.public Lexeme getLexeme(int index)
index
- Index of the lexeme.
public Lexeme[] getLexeme()
public int getLexemeCount()
public void setLocation(java.lang.String location)
location
- Location in the input source.public java.lang.String getLocation()
public Violations validate()
public java.lang.String toString()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
- If an exception occurs during the cloning.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |