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
public class StrandedFeatureHandler extends FeatureHandler
StAX handler for XFF strandedFeature type. By default, XFFFeatureSetHandler uses this handler for all feature elements which have thestrand
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
Fields Modifier and Type Field Description static XFFPartHandlerFactory
STRANDEDFEATURE_HANDLER_FACTORY
-
Fields inherited from class org.biojava.bio.program.xff.FeatureHandler
FEATURE_HANDLER_FACTORY
-
-
Constructor Summary
Constructors Constructor Description StrandedFeatureHandler(XFFFeatureSetHandler xffenv)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Feature.Template
createFeatureTemplate()
Create a new template of the appropriate type.protected StrandedFeature.Template
getStrandedFeatureTemplate()
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 Detail
-
STRANDEDFEATURE_HANDLER_FACTORY
public static final XFFPartHandlerFactory STRANDEDFEATURE_HANDLER_FACTORY
-
-
Constructor Detail
-
StrandedFeatureHandler
public StrandedFeatureHandler(XFFFeatureSetHandler xffenv)
-
-
Method Detail
-
createFeatureTemplate
protected Feature.Template 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
protected StrandedFeature.Template 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
-
-