|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava.bio.program.tagvalue.SimpleTagValueWrapper
org.biojava.bio.program.tagvalue.Aggregator
public class Aggregator
Joins multipel values into single values.
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 Summary | |
---|---|
Aggregator(TagValueListener listener,
BoundaryFinder observer,
java.lang.String joiner)
|
Method Summary | |
---|---|
void |
endTag()
End the current tag. |
BoundaryFinder |
getBoundaryFinder()
|
java.lang.String |
getJoiner()
|
void |
setBoundaryFinder(BoundaryFinder finder)
|
void |
setJoiner(java.lang.String joiner)
|
void |
startTag(java.lang.Object tag)
Start a new tag. |
void |
value(TagValueContext ctxt,
java.lang.Object value)
A value has been seen. |
Methods inherited from class org.biojava.bio.program.tagvalue.SimpleTagValueWrapper |
---|
endRecord, getDelegate, setDelegate, startRecord |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Aggregator(TagValueListener listener, BoundaryFinder observer, java.lang.String joiner)
Method Detail |
---|
public BoundaryFinder getBoundaryFinder()
public void setBoundaryFinder(BoundaryFinder finder)
public java.lang.String getJoiner()
public void setJoiner(java.lang.String joiner)
public void startTag(java.lang.Object tag) throws ParserException
TagValueListener
startTag
in interface TagValueListener
startTag
in class SimpleTagValueWrapper
tag
- the Object representing the new tag
ParserException
- if the tag could not be startedpublic void value(TagValueContext ctxt, java.lang.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 observed
ParserException
- 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 ended
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |