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
StAX handler for parsing AnnotationTypes in FilterXML documents. Mainly
used internally by XMLFilterHandler.
- Since:
- 1.3
- Author:
- Thomas Down
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceHandler for an individualCollectionConstraintin an AnnotationType.static interfaceHandler Factory for aCollectionConstraintin an AnnotationType.static interfaceHandler for an individualPropertyConstraintin an AnnotationType.static interfaceHandler Factory for aPropertyConstraintin an AnnotationType. -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new XMLAnnotationTypeHandler which can parse the builtin PropertyConstraints. -
Method Summary
Modifier and TypeMethodDescriptionvoidendElement(String nsURI, String localName, String qName, StAXContentHandler delegate) Return the AnnotationType built by this handlervoidregisterCollectionHandlerFactory(String nsURI, String localName, XMLAnnotationTypeHandler.CollectionConstraintHandlerFactory factory) Register a factory used to create handlers for the specified tag in an XML AnnotationTypevoidregisterPropertyHandlerFactory(String nsURI, String localName, XMLAnnotationTypeHandler.PropertyConstraintHandlerFactory factory) Register a factory used to create handlers for the specified tag in an XML AnnotationTypevoidstartElement(String nsURI, String localName, String qName, Attributes attrs, DelegationManager dm) Methods inherited from class org.biojava.utils.stax.StAXContentHandlerBase
characters, endPrefixMapping, endTree, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, startTree
-
Constructor Details
-
XMLAnnotationTypeHandler
public XMLAnnotationTypeHandler()Construct a new XMLAnnotationTypeHandler which can parse the builtin PropertyConstraints.
-
-
Method Details
-
getAnnotationType
Return the AnnotationType built by this handler -
registerPropertyHandlerFactory
public void registerPropertyHandlerFactory(String nsURI, String localName, XMLAnnotationTypeHandler.PropertyConstraintHandlerFactory factory) Register a factory used to create handlers for the specified tag in an XML AnnotationType -
registerCollectionHandlerFactory
public void registerCollectionHandlerFactory(String nsURI, String localName, XMLAnnotationTypeHandler.CollectionConstraintHandlerFactory factory) Register a factory used to create handlers for the specified tag in an XML AnnotationType -
startElement
public void startElement(String nsURI, String localName, String qName, Attributes attrs, DelegationManager dm) throws SAXException - Specified by:
startElementin interfaceStAXContentHandler- Overrides:
startElementin classStAXContentHandlerBase- Throws:
SAXException
-
endElement
public void endElement(String nsURI, String localName, String qName, StAXContentHandler delegate) throws SAXException - Specified by:
endElementin interfaceStAXContentHandler- Overrides:
endElementin classStAXContentHandlerBase- Throws:
SAXException
-