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(String nsURI, String localName, String qName, StAXContentHandler delegate)AnnotationTypegetAnnotationType()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 Detail
-
XMLAnnotationTypeHandler
public XMLAnnotationTypeHandler()
Construct a new XMLAnnotationTypeHandler which can parse the builtin PropertyConstraints.
-
-
Method Detail
-
getAnnotationType
public AnnotationType 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
-
-