public class Aggregator extends SimpleTagValueWrapper
Some properties have values spread across multiple lines. For example, the properties on EMBL features can be spread across multiple lines.
This class provides callbacks to allow event streams to be re-written so that they contain this information.
Constructor and Description |
---|
Aggregator(TagValueListener listener,
BoundaryFinder observer,
String joiner) |
Modifier and Type | Method and Description |
---|---|
void |
endTag()
End the current tag.
|
BoundaryFinder |
getBoundaryFinder() |
String |
getJoiner() |
void |
setBoundaryFinder(BoundaryFinder finder) |
void |
setJoiner(String joiner) |
void |
startTag(Object tag)
Start a new tag.
|
void |
value(TagValueContext ctxt,
Object value)
A value has been seen.
|
endRecord, getDelegate, setDelegate, startRecord
public Aggregator(TagValueListener listener, BoundaryFinder observer, String joiner)
public BoundaryFinder getBoundaryFinder()
public void setBoundaryFinder(BoundaryFinder finder)
public void startTag(Object tag) throws ParserException
TagValueListener
startTag
in interface TagValueListener
startTag
in class SimpleTagValueWrapper
tag
- the Object representing the new tagParserException
- if the tag could not be startedpublic void value(TagValueContext ctxt, Object value) throws ParserException
TagValueListener
value
in interface TagValueListener
value
in class SimpleTagValueWrapper
ctxt
- a TagValueContext that could be used to push a sub-documentvalue
- the value Object observedParserException
- if the value could not be processedpublic void endTag() throws ParserException
TagValueListener
endTag
in interface TagValueListener
endTag
in class SimpleTagValueWrapper
ParserException
- if the tag could not be endedCopyright © 2014 BioJava. All rights reserved.