Package org.geotools.xml
Class XSISAXHandler
Object
DefaultHandler
XSISAXHandler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
This is a schema handler. Code here has been modified from code written by Ian Schneider.
This class contains one stack used to store part of the parse tree. The ElementHandlers found on the stack have direct next handlers placed on the stack. So here's the warning, be careful to read how you may be affecting (or forgetting to affect) the stack.
- Author:
- dzwiers, Refractions Research, Inc. http://www.refractions.net, $Author:$ (last modification)
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXSISAXHandler(URI uri) Stores the uri being parsed to help resolve relative uris within the document. -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) Implementation of characters. push StringvoidImplementation of endDocument.voidendElement(String namespaceURI, String localName, String qName) Implementation of endElement. push NS,Namevoiderror(SAXParseException exception) Implementation of error.voidfatalError(SAXParseException exception) Implementation of fatalError.getSchema purpose.voidsetDocumentLocator(Locator locator) static voidsetLogLevel(Level l) Sets the logging level for all the XSISAXHandlers.voidImplementation of startDocument.voidstartElement(String namespaceURI, String localName, String qName, Attributes atts) Implementation of startElement.voidstartPrefixMapping(String arg0, String arg1) voidwarning(SAXParseException exception) Implementation of warning.Methods inherited from class DefaultHandler
endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, unparsedEntityDeclMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentHandler
declaration
-
Field Details
-
logger
-
rootHandler
-
-
Constructor Details
-
XSISAXHandler
Stores the uri being parsed to help resolve relative uris within the document.
-
-
Method Details
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Overrides:
startPrefixMappingin classDefaultHandler- See Also:
-
endDocument
public void endDocument()Implementation of endDocument.- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classDefaultHandler- See Also:
-
startDocument
public void startDocument()Implementation of startDocument.- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classDefaultHandler- See Also:
-
characters
Implementation of characters. push String- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException- See Also:
-
endElement
Implementation of endElement. push NS,Name- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException- See Also:
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException Implementation of startElement.- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException- See Also:
-
setLogLevel
Sets the logging level for all the XSISAXHandlers. -
getSchema
getSchema purpose.This method should be called only after the parse has been completed. This method will then return a compressed schema instance.
- Returns:
- schema
- Throws:
SAXException
-
error
Implementation of error.- Specified by:
errorin interfaceErrorHandler- Overrides:
errorin classDefaultHandler- See Also:
-
fatalError
Implementation of fatalError.- Specified by:
fatalErrorin interfaceErrorHandler- Overrides:
fatalErrorin classDefaultHandler- Throws:
SAXException- See Also:
-
warning
Implementation of warning.- Specified by:
warningin interfaceErrorHandler- Overrides:
warningin classDefaultHandler- See Also:
-
setDocumentLocator
- Specified by:
setDocumentLocatorin interfaceContentHandler- Overrides:
setDocumentLocatorin classDefaultHandler- See Also:
-