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 interface
XMLAnnotationTypeHandler.CollectionConstraintHandler
Handler for an individualCollectionConstraint
in an AnnotationType.static interface
XMLAnnotationTypeHandler.CollectionConstraintHandlerFactory
Handler Factory for aCollectionConstraint
in an AnnotationType.static interface
XMLAnnotationTypeHandler.PropertyConstraintHandler
Handler for an individualPropertyConstraint
in an AnnotationType.static interface
XMLAnnotationTypeHandler.PropertyConstraintHandlerFactory
Handler Factory for aPropertyConstraint
in 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 void
endElement(String nsURI, String localName, String qName, StAXContentHandler delegate)
AnnotationType
getAnnotationType()
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 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:
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
-
-