public final class XMLInstance2SchemaHandler extends Object implements DocumentHandler, ErrorHandler
| Constructor and Description |
|---|
XMLInstance2SchemaHandler()
Creates a new XMLInstance2SchemaHandler
|
XMLInstance2SchemaHandler(Schema schema)
Creates a new XMLInstance2SchemaHandler
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
endElement(String name) |
void |
error(SAXParseException exception) |
void |
fatalError(SAXParseException exception) |
Schema |
getSchema()
Returns the XML Schema object that is being used by this handler
|
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
processingInstruction(String target,
String data) |
protected void |
setDefaultGroupOrder(Order order)
This method is used to set the default group type.
|
void |
setDocumentLocator(Locator locator) |
void |
startDocument() |
void |
startElement(String name,
AttributeList atts) |
void |
warning(SAXParseException exception) |
public XMLInstance2SchemaHandler()
public XMLInstance2SchemaHandler(Schema schema)
public Schema getSchema()
protected void setDefaultGroupOrder(Order order)
order - the default group order to use.public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface DocumentHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface DocumentHandlerSAXExceptionpublic void endElement(String name) throws SAXException
endElement in interface DocumentHandlerSAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface DocumentHandlerSAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface DocumentHandlerSAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface DocumentHandlerpublic void startDocument()
throws SAXException
startDocument in interface DocumentHandlerSAXExceptionpublic void startElement(String name, AttributeList atts) throws SAXException
startElement in interface DocumentHandlerSAXExceptionpublic void error(SAXParseException exception) throws SAXException
error in interface ErrorHandlerSAXExceptionpublic void fatalError(SAXParseException exception) throws SAXException
fatalError in interface ErrorHandlerSAXExceptionpublic void warning(SAXParseException exception) throws SAXException
warning in interface ErrorHandlerSAXExceptionCopyright © 2021. All rights reserved.