Package org.geotools.xsd
Class XSDParserDelegate
Object
XSDParserDelegate
- All Implemented Interfaces:
ParserDelegate
,ContentHandler
- Direct Known Subclasses:
FESParserDelegate
,FilterParserDelegate
,GMLParserDelegate
,GMLParserDelegate
,InterpolationParserDelegate
,RangeSubsetParserDelegate
,ScalingParserDelegate
,WFSParserDelegate
Parser delegate which which uses the xsd framework to parse.
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.
- Since:
- 2.6
- Author:
- Justin Deoliveira, OpenGEO
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canHandle
(QName elementName, Attributes attributes, Handler handler, Handler parent) Determines if this delegate can handle the specified element name.void
characters
(char[] ch, int start, int length) void
void
endElement
(String uri, String localName, String name) void
endPrefixMapping
(String prefix) 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
void
startElement
(String uri, String localName, String name, Attributes atts) void
startPrefixMapping
(String prefix, String uri) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ContentHandler
declaration
-
Field Details
-
handler
-
-
Constructor Details
-
XSDParserDelegate
-
-
Method Details
-
canHandle
Description copied from interface:ParserDelegate
Determines if this delegate can handle the specified element name.A common check in this method would be to check the namespace of the element.
- Specified by:
canHandle
in interfaceParserDelegate
- Parameters:
elementName
- The name of the element to potentially handle.attributes
- The attributes of the element to potentially handlehandler
- The parse handler that would normally handle the element, possiblynull
parent
- The parse handler for the parent element, possiblynull
.- Returns:
- True if this delegate handles elements of the specified name and should take over parsing.
-
setDocumentLocator
- Specified by:
setDocumentLocator
in interfaceContentHandler
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstruction
in interfaceContentHandler
- Throws:
SAXException
-
skippedEntity
- Specified by:
skippedEntity
in interfaceContentHandler
- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String name, Attributes atts) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Throws:
SAXException
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Throws:
SAXException
-
getParsedObject
Description copied from interface:ParserDelegate
Gets the final parsed object from the delegate.This method is called after parsing control returns to the main parsing driver.
- Specified by:
getParsedObject
in interfaceParserDelegate
-