|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.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 events| Method 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 TagValueListenerstartTag in class TagValueWrappertag - the Object representing the new tag
ParserException - if the tag could not be started
public void endTag()
throws ParserException
TagValueListener
endTag in interface TagValueListenerendTag in class TagValueWrapperParserException - if the tag could not be ended
public void value(TagValueContext ctxt,
java.lang.Object value)
throws ParserException
TagValueListener
value in interface TagValueListenervalue in class TagValueWrapperctxt - a TagValueContext that could be used to push a sub-documentvalue - the value Object observed
ParserException - if the value could not be processed
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||