Package org.biojava.bio.program.xff
Class StrandedFeatureHandler
java.lang.Object
org.biojava.utils.stax.StAXContentHandlerBase
org.biojava.bio.program.xff.FeatureHandler
org.biojava.bio.program.xff.StrandedFeatureHandler
- All Implemented Interfaces:
StAXContentHandler
StAX handler for XFF strandedFeature type. By default, XFFFeatureSetHandler
uses this handler for all feature elements which have the
strand
attribute.
Like the basic FeatureHandler
, this class can be subclassed
to give handlers for more specialized feature types.
- Since:
- 1.2
- Author:
- Thomas Down
-
Field Summary
FieldsFields inherited from class org.biojava.bio.program.xff.FeatureHandler
FEATURE_HANDLER_FACTORY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Feature.Template
Create a new template of the appropriate type.protected StrandedFeature.Template
void
startElement
(String nsURI, String localName, String qName, Attributes attrs, DelegationManager dm) StAX callback for element starts.Methods inherited from class org.biojava.bio.program.xff.FeatureHandler
endElement, fireEndFeature, fireStartFeature, getFeatureTemplate, getLocationHandler, getOldIDHandler, getSourceHandler, getTypeHandler, getXFFEnvironment, setFeatureProperty
Methods inherited from class org.biojava.utils.stax.StAXContentHandlerBase
characters, endPrefixMapping, endTree, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, startTree
-
Field Details
-
STRANDEDFEATURE_HANDLER_FACTORY
-
-
Constructor Details
-
StrandedFeatureHandler
-
-
Method Details
-
createFeatureTemplate
Description copied from class:FeatureHandler
Create a new template of the appropriate type. Override this method if you wish to use a template type other than Feature.Template.- Overrides:
createFeatureTemplate
in classFeatureHandler
-
getStrandedFeatureTemplate
-
startElement
public void startElement(String nsURI, String localName, String qName, Attributes attrs, DelegationManager dm) throws SAXException Description copied from class:FeatureHandler
StAX callback for element starts. Wrap this method to handle extra elements within your own feature types.- Specified by:
startElement
in interfaceStAXContentHandler
- Overrides:
startElement
in classFeatureHandler
- Throws:
SAXException
-