Package org.geotools.xml
Class XSISAXHandler
- Object
- 
- DefaultHandler
- 
- XSISAXHandler
 
 
- 
- All Implemented Interfaces:
- ContentHandler,- DTDHandler,- EntityResolver,- ErrorHandler
 
 public class XSISAXHandler extends DefaultHandler 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:
- XSIElementHandler
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected static Loggerloggerprotected RootHandlerrootHandler
 - 
Constructor SummaryConstructors Constructor Description XSISAXHandler(URI uri)Stores the uri being parsed to help resolve relative uris within the document.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] ch, int start, int length)Implementation of characters. push StringvoidendDocument()Implementation 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.SchemagetSchema()getSchema purpose.voidsetDocumentLocator(Locator locator)static voidsetLogLevel(Level l)Sets the logging level for all the XSISAXHandlers.voidstartDocument()Implementation 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 DefaultHandlerendPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, unparsedEntityDecl
 
- 
 
- 
- 
- 
Field Detail- 
loggerprotected static final Logger logger 
 - 
rootHandlerprotected RootHandler rootHandler 
 
- 
 - 
Constructor Detail- 
XSISAXHandlerpublic XSISAXHandler(URI uri) Stores the uri being parsed to help resolve relative uris within the document.
 
- 
 - 
Method Detail- 
startPrefixMappingpublic void startPrefixMapping(String arg0, String arg1) - Specified by:
- startPrefixMappingin interface- ContentHandler
- Overrides:
- startPrefixMappingin class- DefaultHandler
- See Also:
- ContentHandler.startPrefixMapping(java.lang.String, java.lang.String)
 
 - 
endDocumentpublic void endDocument() Implementation of endDocument.- Specified by:
- endDocumentin interface- ContentHandler
- Overrides:
- endDocumentin class- DefaultHandler
- See Also:
- ContentHandler.endDocument()
 
 - 
startDocumentpublic void startDocument() Implementation of startDocument.- Specified by:
- startDocumentin interface- ContentHandler
- Overrides:
- startDocumentin class- DefaultHandler
- See Also:
- ContentHandler.startDocument()
 
 - 
characterspublic void characters(char[] ch, int start, int length) throws SAXExceptionImplementation of characters. push String- Specified by:
- charactersin interface- ContentHandler
- Overrides:
- charactersin class- DefaultHandler
- Throws:
- SAXException
- See Also:
- ContentHandler.characters(char[], int, int)
 
 - 
endElementpublic void endElement(String namespaceURI, String localName, String qName) throws SAXException Implementation of endElement. push NS,Name- Specified by:
- endElementin interface- ContentHandler
- Overrides:
- endElementin class- DefaultHandler
- Throws:
- SAXException
- See Also:
- ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
 
 - 
startElementpublic void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException Implementation of startElement.- Specified by:
- startElementin interface- ContentHandler
- Overrides:
- startElementin class- DefaultHandler
- Throws:
- SAXException
- See Also:
- ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
 
 - 
setLogLevelpublic static void setLogLevel(Level l) Sets the logging level for all the XSISAXHandlers.
 - 
getSchemapublic Schema getSchema() throws SAXException 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
 
 - 
errorpublic void error(SAXParseException exception) Implementation of error.- Specified by:
- errorin interface- ErrorHandler
- Overrides:
- errorin class- DefaultHandler
- See Also:
- ErrorHandler.error(org.xml.sax.SAXParseException)
 
 - 
fatalErrorpublic void fatalError(SAXParseException exception) throws SAXException Implementation of fatalError.- Specified by:
- fatalErrorin interface- ErrorHandler
- Overrides:
- fatalErrorin class- DefaultHandler
- Throws:
- SAXException
- See Also:
- ErrorHandler.fatalError(org.xml.sax.SAXParseException)
 
 - 
warningpublic void warning(SAXParseException exception) Implementation of warning.- Specified by:
- warningin interface- ErrorHandler
- Overrides:
- warningin class- DefaultHandler
- See Also:
- ErrorHandler.warning(org.xml.sax.SAXParseException)
 
 - 
setDocumentLocatorpublic void setDocumentLocator(Locator locator) - Specified by:
- setDocumentLocatorin interface- ContentHandler
- Overrides:
- setDocumentLocatorin class- DefaultHandler
- See Also:
- ContentHandler.setDocumentLocator(org.xml.sax.Locator)
 
 
- 
 
-