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 DocumentHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface DocumentHandler
SAXException
public void endElement(String name) throws SAXException
endElement
in interface DocumentHandler
SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ignorableWhitespace
in interface DocumentHandler
SAXException
public void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface DocumentHandler
SAXException
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface DocumentHandler
public void startDocument() throws SAXException
startDocument
in interface DocumentHandler
SAXException
public void startElement(String name, AttributeList atts) throws SAXException
startElement
in interface DocumentHandler
SAXException
public void error(SAXParseException exception) throws SAXException
error
in interface ErrorHandler
SAXException
public void fatalError(SAXParseException exception) throws SAXException
fatalError
in interface ErrorHandler
SAXException
public void warning(SAXParseException exception) throws SAXException
warning
in interface ErrorHandler
SAXException
Copyright © 2014. All rights reserved.