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)
ParserDelegate
A common check in this method would be to check the namespace of the element.
canHandle
in interface ParserDelegate
elementName
- The name of the element to potentially handle.public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
SAXException
public void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface ContentHandler
SAXException
public void skippedEntity(String name) throws SAXException
skippedEntity
in interface ContentHandler
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
SAXException
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
SAXException
public void startElement(String uri, String localName, String name, Attributes atts) throws SAXException
startElement
in interface ContentHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ignorableWhitespace
in interface ContentHandler
SAXException
public void endElement(String uri, String localName, String name) throws SAXException
endElement
in interface ContentHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
SAXException
public Object getParsedObject()
ParserDelegate
This method is called after parsing control returns to the main parsing driver.
getParsedObject
in interface ParserDelegate
Copyright © 1996–2019 Geotools. All rights reserved.