|
|||||||||||
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.XMLSAXHandler
XMLSAXHandler purpose.
This is a schema content 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.
XMLElementHandler
Field Summary | |
protected static java.util.logging.Level |
level
|
protected static java.util.logging.Logger |
logger
the logger -- should be used for debugging (assuming there are bugs LOL) |
Constructor Summary | |
XMLSAXHandler(java.util.Map hints)
This contructor is intended to create an XMLSAXHandler to be used when parsing an XML instance document. |
|
XMLSAXHandler(java.net.URI intendedDocument,
java.util.Map hints)
This contructor is intended to create an XMLSAXHandler to be used when parsing an XML instance document. |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Implementation of characters. |
void |
endDocument()
Implementation of endDocument. |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
Implementation of endElement. |
void |
endPrefixMapping(java.lang.String prefix)
|
void |
error(org.xml.sax.SAXParseException exception)
Implementation of error. |
void |
fatalError(org.xml.sax.SAXParseException exception)
Implementation of fatalError. |
java.lang.Object |
getDocument()
getDocument purpose. |
org.xml.sax.InputSource |
resolveEntity(java.lang.String pubId,
java.lang.String sysId)
TODO summary sentence for resolveEntity ... |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Stores the locator for future error reporting |
static void |
setLogLevel(java.util.logging.Level l)
Used to set the logger level for all XMLSAXHandlers |
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 prefix,
java.lang.String uri)
|
void |
warning(org.xml.sax.SAXParseException exception)
Implementation of warning. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
ignorableWhitespace, notationDecl, processingInstruction, 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 static java.util.logging.Level level
Constructor Detail |
public XMLSAXHandler(java.net.URI intendedDocument, java.util.Map hints)
This contructor is intended to create an XMLSAXHandler to be used when parsing an XML instance document. The instance document's uri is also be provided, as this will allow the parser to resolve relative uri's.
intendedDocument
- hints
- DOCUMENT ME!public XMLSAXHandler(java.util.Map hints)
This contructor is intended to create an XMLSAXHandler to be used when parsing an XML instance document. The instance document's uri is also be provided, as this will allow the parser to resolve relative uri's.
hints
- DOCUMENT ME!Method Detail |
public org.xml.sax.InputSource resolveEntity(java.lang.String pubId, java.lang.String sysId) throws org.xml.sax.SAXException
pubId
- sysId
-
org.xml.sax.SAXException
EntityResolver.resolveEntity(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)
Used to set the logger level for all XMLSAXHandlers
l
- public java.lang.Object getDocument() throws org.xml.sax.SAXException
Completes the post-processing phase, and returns the value from the parse ...
org.xml.sax.SAXException
DocumentHandler.getValue()
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)
public void endPrefixMapping(java.lang.String prefix)
ContentHandler.endPrefixMapping(java.lang.String)
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
ContentHandler.startPrefixMapping(java.lang.String,
java.lang.String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |