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(java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName,
StAXContentHandler delegate) |
AnnotationType |
getAnnotationType()
Return the AnnotationType built by this handler
|
void |
registerCollectionHandlerFactory(java.lang.String nsURI,
java.lang.String localName,
XMLAnnotationTypeHandler.CollectionConstraintHandlerFactory factory)
Register a factory used to create handlers for the specified tag in an
XML AnnotationType
|
void |
registerPropertyHandlerFactory(java.lang.String nsURI,
java.lang.String localName,
XMLAnnotationTypeHandler.PropertyConstraintHandlerFactory factory)
Register a factory used to create handlers for the specified tag in an
XML AnnotationType
|
void |
startElement(java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attrs,
DelegationManager dm) |
characters, endPrefixMapping, endTree, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, startTreepublic XMLAnnotationTypeHandler()
public AnnotationType getAnnotationType()
public void registerPropertyHandlerFactory(java.lang.String nsURI,
java.lang.String localName,
XMLAnnotationTypeHandler.PropertyConstraintHandlerFactory factory)
public void registerCollectionHandlerFactory(java.lang.String nsURI,
java.lang.String localName,
XMLAnnotationTypeHandler.CollectionConstraintHandlerFactory factory)
public void startElement(java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attrs,
DelegationManager dm)
throws org.xml.sax.SAXException
startElement in interface StAXContentHandlerstartElement in class StAXContentHandlerBaseorg.xml.sax.SAXExceptionpublic void endElement(java.lang.String nsURI,
java.lang.String localName,
java.lang.String qName,
StAXContentHandler delegate)
throws org.xml.sax.SAXException
endElement in interface StAXContentHandlerendElement in class StAXContentHandlerBaseorg.xml.sax.SAXException