Package org.biojava.bio.seq.io.filterxml
Class XMLAnnotationTypeHandler
- java.lang.Object
-
- org.biojava.utils.stax.StAXContentHandlerBase
-
- org.biojava.bio.seq.io.filterxml.XMLAnnotationTypeHandler
-
- All Implemented Interfaces:
StAXContentHandler
public class XMLAnnotationTypeHandler extends StAXContentHandlerBase
StAX handler for parsing AnnotationTypes in FilterXML documents. Mainly used internally by XMLFilterHandler.- Since:
- 1.3
- Author:
- Thomas Down
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceXMLAnnotationTypeHandler.CollectionConstraintHandlerHandler for an individualCollectionConstraintin an AnnotationType.static interfaceXMLAnnotationTypeHandler.CollectionConstraintHandlerFactoryHandler Factory for aCollectionConstraintin an AnnotationType.static interfaceXMLAnnotationTypeHandler.PropertyConstraintHandlerHandler for an individualPropertyConstraintin an AnnotationType.static interfaceXMLAnnotationTypeHandler.PropertyConstraintHandlerFactoryHandler Factory for aPropertyConstraintin an AnnotationType.
-
Constructor Summary
Constructors Constructor Description XMLAnnotationTypeHandler()Construct a new XMLAnnotationTypeHandler which can parse the builtin PropertyConstraints.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendElement(java.lang.String nsURI, java.lang.String localName, java.lang.String qName, StAXContentHandler delegate)AnnotationTypegetAnnotationType()Return the AnnotationType built by this handlervoidregisterCollectionHandlerFactory(java.lang.String nsURI, java.lang.String localName, XMLAnnotationTypeHandler.CollectionConstraintHandlerFactory factory)Register a factory used to create handlers for the specified tag in an XML AnnotationTypevoidregisterPropertyHandlerFactory(java.lang.String nsURI, java.lang.String localName, XMLAnnotationTypeHandler.PropertyConstraintHandlerFactory factory)Register a factory used to create handlers for the specified tag in an XML AnnotationTypevoidstartElement(java.lang.String nsURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attrs, DelegationManager dm)-
Methods inherited from class org.biojava.utils.stax.StAXContentHandlerBase
characters, endPrefixMapping, endTree, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, startTree
-
-
-
-
Method Detail
-
getAnnotationType
public AnnotationType getAnnotationType()
Return the AnnotationType built by this handler
-
registerPropertyHandlerFactory
public void registerPropertyHandlerFactory(java.lang.String nsURI, java.lang.String localName, XMLAnnotationTypeHandler.PropertyConstraintHandlerFactory factory)Register a factory used to create handlers for the specified tag in an XML AnnotationType
-
registerCollectionHandlerFactory
public void registerCollectionHandlerFactory(java.lang.String nsURI, java.lang.String localName, XMLAnnotationTypeHandler.CollectionConstraintHandlerFactory factory)Register a factory used to create handlers for the specified tag in an XML AnnotationType
-
startElement
public void startElement(java.lang.String nsURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attrs, DelegationManager dm) throws org.xml.sax.SAXException- Specified by:
startElementin interfaceStAXContentHandler- Overrides:
startElementin classStAXContentHandlerBase- Throws:
org.xml.sax.SAXException
-
endElement
public void endElement(java.lang.String nsURI, java.lang.String localName, java.lang.String qName, StAXContentHandler delegate) throws org.xml.sax.SAXException- Specified by:
endElementin interfaceStAXContentHandler- Overrides:
endElementin classStAXContentHandlerBase- Throws:
org.xml.sax.SAXException
-
-