public class XMLAnnotationTypeHandler extends StAXContentHandlerBase
Modifier and Type | Class and Description |
---|---|
static interface |
XMLAnnotationTypeHandler.CollectionConstraintHandler
Handler for an individual
CollectionConstraint in an AnnotationType. |
static interface |
XMLAnnotationTypeHandler.CollectionConstraintHandlerFactory
Handler Factory for a
CollectionConstraint in an AnnotationType. |
static interface |
XMLAnnotationTypeHandler.PropertyConstraintHandler
Handler for an individual
PropertyConstraint in an AnnotationType. |
static interface |
XMLAnnotationTypeHandler.PropertyConstraintHandlerFactory
Handler Factory for a
PropertyConstraint in an AnnotationType. |
Constructor and Description |
---|
XMLAnnotationTypeHandler()
Construct a new XMLAnnotationTypeHandler which can parse the builtin PropertyConstraints.
|
Modifier and Type | Method and Description |
---|---|
void |
endElement(String nsURI,
String localName,
String qName,
StAXContentHandler delegate) |
AnnotationType |
getAnnotationType()
Return the AnnotationType built by this handler
|
void |
registerCollectionHandlerFactory(String nsURI,
String localName,
XMLAnnotationTypeHandler.CollectionConstraintHandlerFactory factory)
Register a factory used to create handlers for the specified tag in an
XML AnnotationType
|
void |
registerPropertyHandlerFactory(String nsURI,
String localName,
XMLAnnotationTypeHandler.PropertyConstraintHandlerFactory factory)
Register a factory used to create handlers for the specified tag in an
XML AnnotationType
|
void |
startElement(String nsURI,
String localName,
String qName,
Attributes attrs,
DelegationManager dm) |
characters, endPrefixMapping, endTree, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, startTree
public XMLAnnotationTypeHandler()
public AnnotationType getAnnotationType()
public void registerPropertyHandlerFactory(String nsURI, String localName, XMLAnnotationTypeHandler.PropertyConstraintHandlerFactory factory)
public void registerCollectionHandlerFactory(String nsURI, String localName, XMLAnnotationTypeHandler.CollectionConstraintHandlerFactory factory)
public void startElement(String nsURI, String localName, String qName, Attributes attrs, DelegationManager dm) throws SAXException
startElement
in interface StAXContentHandler
startElement
in class StAXContentHandlerBase
SAXException
public void endElement(String nsURI, String localName, String qName, StAXContentHandler delegate) throws SAXException
endElement
in interface StAXContentHandler
endElement
in class StAXContentHandlerBase
SAXException
Copyright © 2020 BioJava. All rights reserved.