public class XSDParserDelegate extends Object implements ParserDelegate
This is used to support the parsing of dynamically imported schemas, ie schemas that are included on the fly in an instance document but not referenced by the schema itself.
| Modifier and Type | Field and Description |
|---|---|
protected ParserHandler |
handler |
| Constructor and Description |
|---|
XSDParserDelegate(Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(QName elementName)
Determines if this delegate can handle the specified element name.
|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String name) |
void |
endPrefixMapping(String prefix) |
Object |
getParsedObject()
Gets the final parsed object from the delegate.
|
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
processingInstruction(String target,
String data) |
void |
setDocumentLocator(Locator locator) |
void |
skippedEntity(String name) |
void |
startDocument() |
void |
startElement(String uri,
String localName,
String name,
Attributes atts) |
void |
startPrefixMapping(String prefix,
String uri) |
protected ParserHandler handler
public XSDParserDelegate(Configuration configuration)
public boolean canHandle(QName elementName)
ParserDelegateA common check in this method would be to check the namespace of the element.
canHandle in interface ParserDelegateelementName - The name of the element to potentially handle.public void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlerpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlerSAXExceptionpublic void skippedEntity(String name) throws SAXException
skippedEntity in interface ContentHandlerSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerSAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerSAXExceptionpublic void startElement(String uri, String localName, String name, Attributes atts) throws SAXException
startElement in interface ContentHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlerSAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerSAXExceptionpublic void endElement(String uri, String localName, String name) throws SAXException
endElement in interface ContentHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXExceptionpublic Object getParsedObject()
ParserDelegateThis method is called after parsing control returns to the main parsing driver.
getParsedObject in interface ParserDelegateCopyright © 1996–2019 Geotools. All rights reserved.