|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler org.geotools.xml.XSISAXHandler
XSISAXHandler purpose.
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.
XSIElementHandler
Field Summary | |
protected static java.util.logging.Logger |
logger
|
protected RootHandler |
rootHandler
|
Constructor Summary | |
XSISAXHandler(java.net.URI uri)
Stores the uri being parsed to help resolve relative uris within the document. |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Implementation of characters. push String |
void |
endDocument()
Implementation of endDocument. |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
Implementation of endElement. push NS,Name |
void |
error(org.xml.sax.SAXParseException exception)
Implementation of error. |
void |
fatalError(org.xml.sax.SAXParseException exception)
Implementation of fatalError. |
Schema |
getSchema()
getSchema purpose. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
|
static void |
setLogLevel(java.util.logging.Level l)
Sets the logging level for all the XSISAXHandlers. |
void |
startDocument()
Implementation of startDocument. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Implementation of startElement. |
void |
startPrefixMapping(java.lang.String arg0,
java.lang.String arg1)
|
void |
warning(org.xml.sax.SAXParseException exception)
Implementation of warning. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.util.logging.Logger logger
protected RootHandler rootHandler
Constructor Detail |
public XSISAXHandler(java.net.URI uri)
uri
- Method Detail |
public void startPrefixMapping(java.lang.String arg0, java.lang.String arg1)
ContentHandler.startPrefixMapping(java.lang.String,
java.lang.String)
public void endDocument()
ContentHandler.endDocument()
public void startDocument()
ContentHandler.startDocument()
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
ch
- start
- length
-
org.xml.sax.SAXException
ContentHandler.characters(char[], int, int)
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
namespaceURI
- localName
- qName
-
org.xml.sax.SAXException
ContentHandler.endElement(java.lang.String,
java.lang.String, java.lang.String)
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
namespaceURI
- localName
- qName
- atts
-
org.xml.sax.SAXException
ContentHandler.startElement(java.lang.String,
java.lang.String, java.lang.String, org.xml.sax.Attributes)
public static void setLogLevel(java.util.logging.Level l)
Sets the logging level for all the XSISAXHandlers.
l
- public Schema getSchema() throws org.xml.sax.SAXException
This method should be called only after the parse has been completed. This method will then return a compressed schema instance.
org.xml.sax.SAXException
public void error(org.xml.sax.SAXParseException exception)
exception
- ErrorHandler.error(org.xml.sax.SAXParseException)
public void fatalError(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
exception
-
org.xml.sax.SAXException
ErrorHandler.fatalError(org.xml.sax.SAXParseException)
public void warning(org.xml.sax.SAXParseException exception)
exception
- ErrorHandler.warning(org.xml.sax.SAXParseException)
public void setDocumentLocator(org.xml.sax.Locator locator)
ContentHandler.setDocumentLocator(org.xml.sax.Locator)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |