public class RegexFieldFinder extends SimpleTagValueWrapper
| Constructor and Description |
|---|
RegexFieldFinder(TagValueListener delegate,
java.util.regex.Pattern pattern,
java.lang.String[] tags,
boolean inLine)
Creates a new RegexFiledFinder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
endTag()
End the current tag.
|
void |
startTag(java.lang.Object tag)
Start a new tag.
|
void |
value(TagValueContext ctxt,
java.lang.Object val)
A value has been seen.
|
endRecord, getDelegate, setDelegate, startRecordpublic RegexFieldFinder(TagValueListener delegate, java.util.regex.Pattern pattern, java.lang.String[] tags, boolean inLine)
delegate - the TagValueListener to forward events topattern - a Pattern to match to valuestags - an array of Strings giving tag names for each group in the
patterninLine - if false, an entire sub-document will be generated for
the parent tagpublic void startTag(java.lang.Object tag)
throws ParserException
TagValueListenerstartTag in interface TagValueListenerstartTag in class SimpleTagValueWrappertag - the Object representing the new tagParserException - if the tag could not be startedpublic void endTag()
throws ParserException
TagValueListenerendTag in interface TagValueListenerendTag in class SimpleTagValueWrapperParserException - if the tag could not be endedpublic void value(TagValueContext ctxt, java.lang.Object val) throws ParserException
TagValueListenervalue in interface TagValueListenervalue in class SimpleTagValueWrapperctxt - a TagValueContext that could be used to push a sub-documentval - the value Object observedParserException - if the value could not be processed