|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojava.bio.program.tagvalue.AbstractWrapper
public class AbstractWrapper
An abstract TagValueWrapper that does nothing!
Useful for writing TagValueWrappers which only act on a subset of the events.
| Constructor Summary | |
|---|---|
AbstractWrapper()
|
|
| Method Summary | |
|---|---|
void |
endRecord()
The current record has ended. |
void |
endTag()
End the current tag. |
TagValueListener |
getDelegate()
get listener to which all calls will be delegated |
void |
setDelegate(TagValueListener delegate)
set listener to which all calls will be delegated |
void |
startRecord()
A new record is about to start. |
void |
startTag(Object tag)
Start a new tag. |
void |
value(TagValueContext ctxt,
Object value)
A value has been seen. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractWrapper()
| Method Detail |
|---|
public void setDelegate(TagValueListener delegate)
TagValueWrapper
setDelegate in interface TagValueWrapperpublic TagValueListener getDelegate()
TagValueWrapper
getDelegate in interface TagValueWrapper
public void startRecord()
throws ParserException
TagValueListener
startRecord in interface TagValueListenerParserException - if the record can not be started
public void startTag(Object tag)
throws ParserException
TagValueListener
startTag in interface TagValueListenertag - the Object representing the new tag
ParserException - if the tag could not be started
public void endTag()
throws ParserException
TagValueListener
endTag in interface TagValueListenerParserException - if the tag could not be ended
public void endRecord()
throws ParserException
TagValueListener
endRecord in interface TagValueListenerParserException - if the record can not be ended
public void value(TagValueContext ctxt,
Object value)
throws ParserException
TagValueListener
value in interface TagValueListenerctxt - 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 | |||||||||