public class StateMachine.SimpleStateListener extends Object implements TagValueListener
Constructor and Description |
---|
SimpleStateListener() |
Modifier and Type | Method and Description |
---|---|
void |
endRecord()
The current record has ended.
|
void |
endTag()
End the current tag.
|
void |
setExceptionOnNullDelegate(boolean throwException)
determines if an exception is thrown when an event
arrives without the delegate being set.
|
void |
startRecord()
A new record is about to start.
|
void |
startTag(Object tag)
Start a new tag.
|
void |
value(TagValueContext ctxt,
Object value)
A value has been seen.
|
public SimpleStateListener()
public void setExceptionOnNullDelegate(boolean throwException)
public void startTag(Object tag) throws ParserException
TagValueListener
startTag
in interface TagValueListener
tag
- the Object representing the new tagParserException
- if the tag could not be startedpublic void endTag() throws ParserException
TagValueListener
endTag
in interface TagValueListener
ParserException
- if the tag could not be endedpublic void startRecord() throws ParserException
TagValueListener
startRecord
in interface TagValueListener
ParserException
- if the record can not be startedpublic void endRecord() throws ParserException
TagValueListener
endRecord
in interface TagValueListener
ParserException
- if the record can not be endedpublic void value(TagValueContext ctxt, Object value) throws ParserException
TagValueListener
value
in interface TagValueListener
ctxt
- a TagValueContext that could be used to push a sub-documentvalue
- the value Object observedParserException
- if the value could not be processedCopyright © 2020 BioJava. All rights reserved.