|
|||||||||||
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.game12.StAXFeatureHandler
StAX handler shamelessly ripped off from Thomas Down's XFFFeatureSetHandler. It was modified for greater generality. NOTE This class is not thread-safe -- it must only be used for one parse at any time.
Field Summary | |
StAXFeatureHandler |
staxenv
Nesting class that provides callback interfaces to nested class |
Method Summary | |
protected void |
addHandler(ElementRecognizer rec,
StAXHandlerFactory handler)
Adds a feature to the Handler attribute of the StAXFeatureHandler object |
void |
endElement(java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName,
StAXContentHandler handler)
Handles basic exit processing. |
void |
endElementHandler(java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName,
StAXContentHandler handler)
Element specific exit handler Subclass to do anything useful. |
void |
returnData(java.lang.Object o)
provides a standardised way of returning an object that represents the result of parsing the child element |
void |
startElement(java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attrs,
DelegationManager dm)
Handles basic entry processing for all feature handlers. |
void |
startElementHandler(java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.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 |
public StAXFeatureHandler staxenv
Method Detail |
protected void addHandler(ElementRecognizer rec, StAXHandlerFactory handler)
rec
- The feature to be added to the Handler attributehandler
- The feature to be added to the Handler attributepublic void returnData(java.lang.Object o)
public void startElementHandler(java.lang.String nsURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
nsURI
- Description of the ParameterlocalName
- Description of the ParameterqName
- Description of the Parameterattrs
- Description of the Parameter
org.xml.sax.SAXException
- Description of the Exceptionpublic void startElement(java.lang.String nsURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attrs, DelegationManager dm) throws org.xml.sax.SAXException
startElement
in interface StAXContentHandler
startElement
in class StAXContentHandlerBase
nsURI
- Description of the ParameterlocalName
- Description of the ParameterqName
- Description of the Parameterattrs
- Description of the Parameterdm
- Description of the Parameter
org.xml.sax.SAXException
- Description of the Exceptionpublic void endElementHandler(java.lang.String nsURI, java.lang.String localName, java.lang.String qName, StAXContentHandler handler) throws org.xml.sax.SAXException
nsURI
- Description of the ParameterlocalName
- Description of the ParameterqName
- Description of the Parameterhandler
- Description of the Parameter
org.xml.sax.SAXException
- Description of the Exceptionpublic void endElement(java.lang.String nsURI, java.lang.String localName, java.lang.String qName, StAXContentHandler handler) throws org.xml.sax.SAXException
endElement
in interface StAXContentHandler
endElement
in class StAXContentHandlerBase
nsURI
- Description of the ParameterlocalName
- Description of the ParameterqName
- Description of the Parameterhandler
- Description of the Parameter
org.xml.sax.SAXException
- Description of the Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |