public class XSISAXHandler extends DefaultHandler
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.
XSIElementHandler
Modifier and Type | Field and Description |
---|---|
protected static Logger |
logger |
protected RootHandler |
rootHandler |
Constructor and Description |
---|
XSISAXHandler(URI uri)
Stores the uri being parsed to help resolve relative uris within the document.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length)
Implementation of characters. push String
|
void |
endDocument()
Implementation of endDocument.
|
void |
endElement(String namespaceURI,
String localName,
String qName)
Implementation of endElement. push NS,Name
|
void |
error(SAXParseException exception)
Implementation of error.
|
void |
fatalError(SAXParseException exception)
Implementation of fatalError.
|
Schema |
getSchema()
getSchema purpose.
|
void |
setDocumentLocator(Locator locator) |
static void |
setLogLevel(Level l)
Sets the logging level for all the XSISAXHandlers.
|
void |
startDocument()
Implementation of startDocument.
|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
Implementation of startElement.
|
void |
startPrefixMapping(String arg0,
String arg1) |
void |
warning(SAXParseException exception)
Implementation of warning.
|
endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, unparsedEntityDecl
protected static final Logger logger
protected RootHandler rootHandler
public XSISAXHandler(URI uri)
uri
- public void startPrefixMapping(String arg0, String arg1)
startPrefixMapping
in interface ContentHandler
startPrefixMapping
in class DefaultHandler
ContentHandler.startPrefixMapping(java.lang.String, java.lang.String)
public void endDocument()
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
ContentHandler.endDocument()
public void startDocument()
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
ContentHandler.startDocument()
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
ch
- start
- length
- SAXException
ContentHandler.characters(char[], int, int)
public void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
namespaceURI
- localName
- qName
- SAXException
ContentHandler.endElement(java.lang.String, java.lang.String,
java.lang.String)
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
namespaceURI
- localName
- qName
- atts
- SAXException
ContentHandler.startElement(java.lang.String, java.lang.String,
java.lang.String, org.xml.sax.Attributes)
public static void setLogLevel(Level l)
l
- public Schema getSchema() throws SAXException
This method should be called only after the parse has been completed. This method will then return a compressed schema instance.
SAXException
public void error(SAXParseException exception)
error
in interface ErrorHandler
error
in class DefaultHandler
exception
- ErrorHandler.error(org.xml.sax.SAXParseException)
public void fatalError(SAXParseException exception) throws SAXException
fatalError
in interface ErrorHandler
fatalError
in class DefaultHandler
exception
- SAXException
ErrorHandler.fatalError(org.xml.sax.SAXParseException)
public void warning(SAXParseException exception)
warning
in interface ErrorHandler
warning
in class DefaultHandler
exception
- ErrorHandler.warning(org.xml.sax.SAXParseException)
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
setDocumentLocator
in class DefaultHandler
ContentHandler.setDocumentLocator(org.xml.sax.Locator)
Copyright © 1996–2019 Geotools. All rights reserved.