|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.uzh.ifi.attempto.ape.Lexicon
public class Lexicon
This class represents a lexicon which consists of a set of lexicon entries.
Constructor Summary | |
---|---|
Lexicon()
Creates an empty lexicon. |
Method Summary | |
---|---|
void |
addEntries(java.util.Collection<LexiconEntry> entries)
Adds a collection of lexicon entries to this lexicon. |
void |
addEntry(LexiconEntry entry)
Adds a lexicon entry to this lexicon. |
java.util.List<LexiconEntry> |
getEntries()
Returns a list of all lexicon entries that are contained in this lexicon. |
void |
removeAllEntries()
Removes all entries from this lexicon. |
void |
removeEntry(LexiconEntry entry)
Removes the lexicon entry from this lexicon. |
java.lang.String |
toList()
Returns the lexicon as a serialized Prolog list. |
java.lang.String |
toString()
Returns this lexicon as a contents of an APE lexicon file, i.e. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Lexicon()
Method Detail |
---|
public void addEntry(LexiconEntry entry)
entry
- The lexicon entry to be added.public void addEntries(java.util.Collection<LexiconEntry> entries)
entries
- The lexicon entries to be added.public void removeEntry(LexiconEntry entry)
entry
- The lexicon entry to be removed.public void removeAllEntries()
public java.util.List<LexiconEntry> getEntries()
public java.lang.String toList()
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 |