Package org.biojava.bio.seq.io.game
Class GAMENamePropHandler
- java.lang.Object
-
- org.biojava.utils.stax.StAXContentHandlerBase
-
- org.biojava.utils.stax.StringElementHandlerBase
-
- org.biojava.bio.seq.io.game.GAMENamePropHandler
-
- All Implemented Interfaces:
StAXContentHandler
public class GAMENamePropHandler extends StringElementHandlerBase
StAX handler for the GAME <name> element. derived from Thomas Down's PropDetailHandler- Since:
- 1.8
- Author:
- David Huen, Thomas Down
-
-
Field Summary
Fields Modifier and Type Field Description static StAXHandlerFactoryGAME_NAME_PROP_HANDLER_FACTORY
-
Constructor Summary
Constructors Constructor Description GAMENamePropHandler(StAXFeatureHandler staxenv)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetStringValue(String s)Override this method to do something useful with the string we collect.voidstartElement(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
-
GAME_NAME_PROP_HANDLER_FACTORY
public static final StAXHandlerFactory GAME_NAME_PROP_HANDLER_FACTORY
-
-
Constructor Detail
-
GAMENamePropHandler
public GAMENamePropHandler(StAXFeatureHandler staxenv)
-
-
Method Detail
-
startElement
public void startElement(String nsURI, String localName, String qName, Attributes attrs, DelegationManager dm) throws SAXException
- Specified by:
startElementin interfaceStAXContentHandler- Overrides:
startElementin classStringElementHandlerBase- Throws:
SAXException
-
setStringValue
protected void setStringValue(String s) throws SAXException
Description copied from class:StringElementHandlerBaseOverride this method to do something useful with the string we collect. Maybe we should do this by delegation rather than extension.- Specified by:
setStringValuein classStringElementHandlerBase- Throws:
SAXException
-
-