public class DocumentHandler extends XMLElementHandler
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_NAMESPACE_HINT_KEY
Supplied
Schema for parsing and validation |
logger
Constructor and Description |
---|
DocumentHandler(ElementHandlerFactory ehf)
Creates a new DocumentHandler object.
|
Modifier and Type | Method and Description |
---|---|
void |
endElement(URI namespaceURI,
String localName,
Map hints)
handles SAX end Element events.
|
Element |
getElement()
This returns the Element specified.
|
XMLElementHandler |
getHandler(URI namespaceURI,
String localName,
Map hints)
This will find an appropriate XMLElementHandler for the specified child if appropriate.
|
String |
getName()
This returns the name of the element being represented by this handler.
|
Object |
getValue()
This method will get the value of the element depending on it's type.
|
void |
startElement(URI namespaceURI,
String localName,
Attributes attr)
handles SAX start Element events.
|
characters, setLogLevel
public static final String DEFAULT_NAMESPACE_HINT_KEY
Schema
for parsing and validationpublic DocumentHandler(ElementHandlerFactory ehf)
ehf
- ElementHandlerFactorypublic Element getElement()
XMLElementHandler
getElement
in class XMLElementHandler
XMLElementHandler.getElement()
public void endElement(URI namespaceURI, String localName, Map hints)
XMLElementHandler
endElement
in class XMLElementHandler
hints
- DOCUMENT ME!org.geotools.xml.XMLElementHandler#endElement(java.lang.String, java.lang.String)
public XMLElementHandler getHandler(URI namespaceURI, String localName, Map hints) throws SAXException
XMLElementHandler
getHandler
in class XMLElementHandler
hints
- DOCUMENT ME!SAXException
org.geotools.xml.XMLElementHandler#getHandler(java.lang.String, java.lang.String)
public void startElement(URI namespaceURI, String localName, Attributes attr)
XMLElementHandler
startElement
in class XMLElementHandler
org.geotools.xml.XMLElementHandler#startElement(java.lang.String, java.lang.String,
org.xml.sax.Attributes)
public Object getValue() throws SAXException
XMLElementHandler
getValue
in class XMLElementHandler
SAXException
XMLElementHandler.getValue()
public String getName()
XMLElementHandler
getName
in class XMLElementHandler
XMLElementHandler.getName()
Copyright © 1996–2019 Geotools. All rights reserved.