| Modifier and Type | Field and Description |
|---|---|
protected java.util.regex.Pattern[] |
dateexpr |
| Constructor and Description |
|---|
DateTagger() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsContinuation(Area node)
Checks whether the area may be a continuation of a previously started area tagged with this tag.
|
boolean |
allowsJoining()
Checks whether the tag may be used for joining the areas in the visual area tree.
|
boolean |
belongsTo(Area node)
Checks whether the area may be tagged with the tag.
|
java.util.Vector<java.lang.String> |
extract(java.lang.String src)
Extracts the parts of a source string that correspond to this tag.
|
java.util.List<java.util.Date> |
extractDates(java.lang.String s) |
double |
getRelevance()
Obtains the relevance of the tagger.
|
TextTag |
getTag()
Obtains the tag that this tagger assigns to the areas.
|
boolean |
mayCoexistWith(Tag other)
Check if the area tagged with this tag may be tagged with another tag.
|
public TextTag getTag()
Taggerpublic double getRelevance()
TaggergetRelevance in interface Taggerpublic boolean belongsTo(Area node)
Taggerpublic boolean allowsContinuation(Area node)
TaggerallowsContinuation in interface Taggernode - The examined area node.true if the area may be a continuation of a tagged areapublic boolean allowsJoining()
TaggerallowsJoining in interface Taggertrue if the tag may be used for joining.public boolean mayCoexistWith(Tag other)
TaggermayCoexistWith in interface Taggerpublic java.util.Vector<java.lang.String> extract(java.lang.String src)
Taggerpublic java.util.List<java.util.Date> extractDates(java.lang.String s)