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 interface
Handler for an individualCollectionConstraint
in an AnnotationType.static interface
Handler Factory for aCollectionConstraint
in an AnnotationType.static interface
Handler for an individualPropertyConstraint
in an AnnotationType.static interface
Handler Factory for aPropertyConstraint
in an AnnotationType. -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new XMLAnnotationTypeHandler which can parse the builtin PropertyConstraints. -
Method Summary
Modifier and TypeMethodDescriptionvoid
endElement
(String nsURI, String localName, String qName, StAXContentHandler delegate) Return the AnnotationType built by this handlervoid
registerCollectionHandlerFactory
(String nsURI, String localName, XMLAnnotationTypeHandler.CollectionConstraintHandlerFactory factory) Register a factory used to create handlers for the specified tag in an XML AnnotationTypevoid
registerPropertyHandlerFactory
(String nsURI, String localName, XMLAnnotationTypeHandler.PropertyConstraintHandlerFactory factory) Register a factory used to create handlers for the specified tag in an XML AnnotationTypevoid
startElement
(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:
startElement
in interfaceStAXContentHandler
- Overrides:
startElement
in classStAXContentHandlerBase
- Throws:
SAXException
-
endElement
public void endElement(String nsURI, String localName, String qName, StAXContentHandler delegate) throws SAXException - Specified by:
endElement
in interfaceStAXContentHandler
- Overrides:
endElement
in classStAXContentHandlerBase
- Throws:
SAXException
-