|
||||||||||
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.TagRenamer
public class TagRenamer
Rename tags using a TagMapper.
This will rename tags as they stream into this listener using a TagMapper. Once renamed, the events will be forwarded onto a delegate TagValueListener for further processing.
Constructor Summary | |
---|---|
TagRenamer(TagValueListener delegate,
PropertyChanger mapper)
Build a new TagRenamer with a delegate and mapper. |
Method Summary | |
---|---|
PropertyChanger |
getMapper()
Retrieve the mapper used to rename tags |
void |
startTag(java.lang.Object tag)
Start a new tag. |
Methods inherited from class org.biojava.bio.program.tagvalue.SimpleTagValueWrapper |
---|
endRecord, endTag, getDelegate, setDelegate, startRecord, value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TagRenamer(TagValueListener delegate, PropertyChanger mapper)
delegate
- TagValueListener to pass mapped events ontomapper
- TagMapper used to rename tagsMethod Detail |
---|
public PropertyChanger getMapper()
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 started
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |