|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.annotator.dict_annot.dictionary.impl.DictionaryMatchImpl
public class DictionaryMatchImpl
Implementation of the DictionaryMatch interface. Store the matches found in the dictionary temporarily and check on the fly in they are valid or not. All valid matches are stored separately. The last valid match is replaced if a new valid match was found. At the end the match object contains the longest valid match from the dictionary.
Constructor Summary | |
---|---|
DictionaryMatchImpl()
Creates a new DictionaryMatch object and reset all members |
Method Summary | |
---|---|
int |
getMatchLength()
Returns the length of the match. |
EntryMetaData |
getMatchMetaData()
Returns the dictionary match entry meta data. |
boolean |
isValidMatch()
check if a valid match is available. |
void |
reset()
reset the match data |
void |
storeMatch(EntryMetaData metaData,
boolean isComplete)
stores a new match in the match object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DictionaryMatchImpl()
Method Detail |
---|
public EntryMetaData getMatchMetaData()
DictionaryMatch
getMatchMetaData
in interface DictionaryMatch
public int getMatchLength()
DictionaryMatch
getMatchLength
in interface DictionaryMatch
public void storeMatch(EntryMetaData metaData, boolean isComplete)
metaData
- metaData for the entry that matchedisComplete
- specifies if the entry is a temporary match or a valid matchpublic boolean isValidMatch()
public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |