public class AbstractWrapper extends java.lang.Object implements TagValueWrapper
An abstract TagValueWrapper that does nothing!
Useful for writing TagValueWrappers which only act on a subset of the events.
| Constructor and Description |
|---|
AbstractWrapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
endRecord()
The current record has ended.
|
void |
endTag()
End the current tag.
|
TagValueListener |
getDelegate()
get listener to which all calls will be delegated
|
void |
setDelegate(TagValueListener delegate)
set listener to which all calls will be delegated
|
void |
startRecord()
A new record is about to start.
|
void |
startTag(java.lang.Object tag)
Start a new tag.
|
void |
value(TagValueContext ctxt,
java.lang.Object value)
A value has been seen.
|
public void setDelegate(TagValueListener delegate)
TagValueWrappersetDelegate in interface TagValueWrapperpublic TagValueListener getDelegate()
TagValueWrappergetDelegate in interface TagValueWrapperpublic void startRecord()
throws ParserException
TagValueListenerstartRecord in interface TagValueListenerParserException - if the record can not be startedpublic void startTag(java.lang.Object tag)
throws ParserException
TagValueListenerstartTag in interface TagValueListenertag - the Object representing the new tagParserException - if the tag could not be startedpublic void endTag()
throws ParserException
TagValueListenerendTag in interface TagValueListenerParserException - if the tag could not be endedpublic void endRecord()
throws ParserException
TagValueListenerendRecord in interface TagValueListenerParserException - if the record can not be endedpublic void value(TagValueContext ctxt, java.lang.Object value) throws ParserException
TagValueListenervalue in interface TagValueListenerctxt - a TagValueContext that could be used to push a sub-documentvalue - the value Object observedParserException - if the value could not be processed