|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava.bio.program.tagvalue.TagValueWrapper
org.biojava.bio.program.tagvalue.TagDropper
Silently drop all tags except those specified, and pass the rest onto a delegate.
Constructor Summary | |
TagDropper()
|
|
TagDropper(TagValueListener tvl)
Create a new TagDropper that will pass on all retained tags and values to tvl. |
Method Summary | |
void |
addTag(java.lang.Object tag)
Add a tag to retain. |
void |
endTag()
End the current tag. |
java.util.Set |
getTags()
|
void |
removeTag(java.lang.Object tag)
Remove a tag so that it will not be retained. |
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.TagValueWrapper |
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 TagDropper()
public TagDropper(TagValueListener tvl)
tvl
- the TagValueListener to inform of all surviving eventsMethod Detail |
public void addTag(java.lang.Object tag)
tag
- a tag that will be forwarded to the delegatepublic void removeTag(java.lang.Object tag)
tag
- a tag that will not be forwarded to the delegatepublic java.util.Set getTags()
public void startTag(java.lang.Object tag) throws ParserException
TagValueListener
startTag
in interface TagValueListener
startTag
in class TagValueWrapper
ParserException
public void endTag() throws ParserException
TagValueListener
endTag
in interface TagValueListener
endTag
in class TagValueWrapper
ParserException
public void value(TagValueContext ctxt, java.lang.Object value) throws ParserException
TagValueListener
value
in interface TagValueListener
value
in class TagValueWrapper
ParserException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |