Package org.biojava.bio.program.xff
Class PropDetailHandler
- java.lang.Object
-
- org.biojava.utils.stax.StAXContentHandlerBase
-
- org.biojava.utils.stax.StringElementHandlerBase
-
- org.biojava.bio.program.xff.PropDetailHandler
-
- All Implemented Interfaces:
StAXContentHandler
public class PropDetailHandler extends StringElementHandlerBase
StAX handler for xff:prop detail elements. prop details are simple tag-value text, and they are added directly as properties of the feature.- Since:
- 1.2
- Author:
- Thomas Down
-
-
Field Summary
Fields Modifier and Type Field Description static XFFPartHandlerFactory
PROPDETAIL_HANDLER_FACTORY
-
Constructor Summary
Constructors Constructor Description PropDetailHandler(XFFFeatureSetHandler xffenv)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
setStringValue(String s)
Override this method to do something useful with the string we collect.void
startElement(String nsURI, String localName, String qName, Attributes attrs, DelegationManager dm)
-
Methods inherited from class org.biojava.utils.stax.StringElementHandlerBase
characters, endElement
-
Methods inherited from class org.biojava.utils.stax.StAXContentHandlerBase
endPrefixMapping, endTree, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, startTree
-
-
-
-
Field Detail
-
PROPDETAIL_HANDLER_FACTORY
public static final XFFPartHandlerFactory PROPDETAIL_HANDLER_FACTORY
-
-
Constructor Detail
-
PropDetailHandler
public PropDetailHandler(XFFFeatureSetHandler xffenv)
-
-
Method Detail
-
startElement
public void startElement(String nsURI, String localName, String qName, Attributes attrs, DelegationManager dm) throws SAXException
- Specified by:
startElement
in interfaceStAXContentHandler
- Overrides:
startElement
in classStringElementHandlerBase
- Throws:
SAXException
-
setStringValue
protected void setStringValue(String s) throws SAXException
Description copied from class:StringElementHandlerBase
Override this method to do something useful with the string we collect. Maybe we should do this by delegation rather than extension.- Specified by:
setStringValue
in classStringElementHandlerBase
- Throws:
SAXException
-
-