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 thestrandattribute.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 XFFPartHandlerFactorySTRANDEDFEATURE_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.TemplatecreateFeatureTemplate()Create a new template of the appropriate type.protected StrandedFeature.TemplategetStrandedFeatureTemplate()voidstartElement(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:FeatureHandlerCreate a new template of the appropriate type. Override this method if you wish to use a template type other than Feature.Template.- Overrides:
createFeatureTemplatein 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:FeatureHandlerStAX callback for element starts. Wrap this method to handle extra elements within your own feature types.- Specified by:
startElementin interfaceStAXContentHandler- Overrides:
startElementin classFeatureHandler- Throws:
SAXException
-
-