|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uvi.WordLists
public class WordLists
Holds tokens (or 'words') separated into different lists. Each token is only allowed to be present once in a given list (a.k.a. each list holds unique tokens only). This class is used to aggregate tokens during the XML parsing to be used later on a reference page.
Sweeper.startNP(Node)
,
Sweeper.startSELRESTR(Node)
,
Sweeper.startSYNRESTR(Node)
,
Sweeper.startPRED(Node)
,
Sweeper.startTHEMROLE(Node)
,
Sweeper.startDESCRIPTION(Node)
,
Generator.generateReferencePage()
Nested Class Summary | |
---|---|
(package private) static class |
WordLists.WordList
Holds the information for a single list of tokens. |
(package private) static class |
WordLists.WordListItem
Represents a token and its associated reference count. |
Field Summary | |
---|---|
ArrayList |
lists
All lists of tokens. |
Constructor Summary | |
---|---|
WordLists()
|
Method Summary | |
---|---|
void |
addWord(String list,
String word)
Adds a token to the specified list. |
WordLists.WordList |
getList(String listName)
Returns a list with the specified name. |
void |
sortByListCounts()
Sorts the main list of lists by the list counts. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public ArrayList lists
WordLists.WordList
object which stores the name
of the list and all tokens for that list.
Constructor Detail |
---|
public WordLists()
Method Detail |
---|
public void addWord(String list, String word)
Sweeper.startNP(Node)
,
Sweeper.startSELRESTR(Node)
,
Sweeper.startSYNRESTR(Node)
,
Sweeper.startPRED(Node)
public WordLists.WordList getList(String listName)
listName
- the name of the list to return
WordLists.WordList
object that has
the given name, or null
if no such list
existsGenerator.generateReferencePage()
public void sortByListCounts()
Generator.printReferenceColumnSpecial(String)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |