|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava.utils.stax.StAXContentHandlerBase
org.biojava.bio.seq.io.game.StAXPropertyHandler
public class StAXPropertyHandler
StAX handler shamelessly ripped off from Thomas Down's XFFFeatureSetHandler. NOTE This class is not thread-safe -- it must only be used for one parse at any time. This class is the basis for classes that do not create a new feature but modify an existing feature. It is not compulsory for property handlers to subclass this class but those that don't but wish to use the handler stack facility need to use the StaxFeatureHandler's push and pop methods.
Field Summary | |
---|---|
protected SeqIOListener |
featureListener
|
protected StAXFeatureHandler |
staxenv
|
Method Summary | |
---|---|
protected void |
addHandler(ElementRecognizer rec,
StAXHandlerFactory handler)
|
void |
endElement(String nsURI,
String localName,
String qName,
StAXContentHandler handler)
|
void |
endElementHandler(String nsURI,
String localName,
String qName,
StAXContentHandler handler)
Element specific exit handler Subclass to do anything useful. |
protected ListIterator |
getHandlerStackIterator()
get iterator for current stack starting at the position below mine. |
void |
setHandlerCharacteristics(String localName,
boolean hasCallback)
Sets the element name that the class responds to. |
void |
startElement(String nsURI,
String localName,
String qName,
Attributes attrs,
DelegationManager dm)
Override this to do any processing required but call this prior to returning. |
void |
startElementHandler(String nsURI,
String localName,
String qName,
Attributes attrs)
Element-specific handler. |
Methods inherited from class org.biojava.utils.stax.StAXContentHandlerBase |
---|
characters, endPrefixMapping, endTree, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, startTree |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SeqIOListener featureListener
protected StAXFeatureHandler staxenv
Method Detail |
---|
public void setHandlerCharacteristics(String localName, boolean hasCallback)
protected ListIterator getHandlerStackIterator() throws ParseException
ParseException
protected void addHandler(ElementRecognizer rec, StAXHandlerFactory handler)
public void startElementHandler(String nsURI, String localName, String qName, Attributes attrs) throws SAXException
SAXException
public void startElement(String nsURI, String localName, String qName, Attributes attrs, DelegationManager dm) throws SAXException
startElement
in interface StAXContentHandler
startElement
in class StAXContentHandlerBase
SAXException
public void endElementHandler(String nsURI, String localName, String qName, StAXContentHandler handler) throws SAXException
SAXException
public void endElement(String nsURI, String localName, String qName, StAXContentHandler handler) throws SAXException
endElement
in interface StAXContentHandler
endElement
in class StAXContentHandlerBase
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |