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 TypeMethodDescriptionbooleancanHandle(QName elementName, Attributes attributes, Handler handler, Handler parent) Determines if this delegate can handle the specified element name.voidcharacters(char[] ch, int start, int length) voidvoidendElement(String uri, String localName, String name) voidendPrefixMapping(String prefix) Gets the final parsed object from the delegate.voidignorableWhitespace(char[] ch, int start, int length) voidprocessingInstruction(String target, String data) voidsetDocumentLocator(Locator locator) voidskippedEntity(String name) voidvoidstartElement(String uri, String localName, String name, Attributes atts) voidstartPrefixMapping(String prefix, String uri) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentHandler
declaration
-
Field Details
-
handler
-
-
Constructor Details
-
XSDParserDelegate
-
-
Method Details
-
canHandle
Description copied from interface:ParserDelegateDetermines 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:
canHandlein 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, possiblynullparent- 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:
setDocumentLocatorin interfaceContentHandler
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException
-
skippedEntity
- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String name, Attributes atts) throws SAXException - Specified by:
startElementin interfaceContentHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Throws:
SAXException
-
endDocument
- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
getParsedObject
Description copied from interface:ParserDelegateGets the final parsed object from the delegate.This method is called after parsing control returns to the main parsing driver.
- Specified by:
getParsedObjectin interfaceParserDelegate
-