|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.itc.irst.tcc.ties.bwi.PatternTable
A PatternTable object maps Patterns to Affixes
for a fast retrivial. Any non-null
Affix can be put into the table.
Pattern,
Affix| Field Summary | |
(package private) static org.apache.log4j.Logger |
logger
Define a static logger variable so that it references the Logger instance named PatternTable. |
private java.util.HashMap |
patternTable
The hashtable containing the affixes. |
| Constructor Summary | |
PatternTable()
Constructs an empty PatternTable. |
|
| Method Summary | |
boolean |
containsPattern(Pattern pattern)
|
java.util.Set |
entrySet()
Returns an enumeration of the patterns in this table. |
Affix |
get(Pattern pattern)
|
java.util.Set |
keySet()
Returns an enumeration of the patterns in this table. |
static void |
main(java.lang.String[] args)
|
void |
put(Affix affix)
Maps the specified pattern to the specified Affix
in this table. |
private void |
put(Pattern pattern,
Affix affix)
Maps the specified pattern to the specified Affix
in this table. |
int |
size()
Returns the number of pattern in this table. |
java.lang.String |
toString()
Returns a String object representing this PatternTable. |
java.util.Collection |
values()
Returns an enumeration of the patterns in this table. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
static org.apache.log4j.Logger logger
PatternTable.
private java.util.HashMap patternTable
| Constructor Detail |
public PatternTable()
| Method Detail |
public void put(Affix affix)
pattern to the specified Affix
in this table. Neither the key nor the value can be null.
affix - the position into the text.
private void put(Pattern pattern,
Affix affix)
pattern to the specified Affix
in this table. Neither the key nor the value can be null.
pattern - the pattern.affix - the position into the text.public Affix get(Pattern pattern)
public boolean containsPattern(Pattern pattern)
public java.util.Set entrySet()
public java.util.Set keySet()
public int size()
public java.util.Collection values()
public java.lang.String toString()
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||