public abstract class XMLElementHandler extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
logger
the logger -- should be used for debugging (assuming there are bugs LOL)
|
| Modifier | Constructor and Description |
|---|---|
protected |
XMLElementHandler()
Creates a new XSIElementHandler object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(String text)
This method throws a SAXNotSupportedException if it is called and not overwritten.
|
abstract void |
endElement(URI namespaceURI,
String localName,
Map hints)
handles SAX end Element events.
|
abstract Element |
getElement()
This returns the Element specified.
|
abstract XMLElementHandler |
getHandler(URI namespaceURI,
String localName,
Map hints)
This will find an appropriate XMLElementHandler for the specified child if appropriate.
|
abstract String |
getName()
This returns the name of the element being represented by this handler.
|
abstract Object |
getValue()
This method will get the value of the element depending on it's type.
|
static void |
setLogLevel(Level l)
Sets the logger level for all XMLElementHandlers.
|
abstract void |
startElement(URI namespaceURI,
String localName,
Attributes attr)
handles SAX start Element events.
|
protected static final Logger logger
protected XMLElementHandler()
public void characters(String text) throws SAXException
text - SAXExceptionSAXNotSupportedExceptionendElement(String,String)).public abstract void endElement(URI namespaceURI, String localName, Map hints) throws SAXException, OperationNotSupportedException
namespaceURI - localName - hints - DOCUMENT ME!SAXExceptionOperationNotSupportedExceptionSchemaContentHandler#endElementpublic abstract void startElement(URI namespaceURI, String localName, Attributes attr) throws SAXException
namespaceURI - localName - attr - SAXExceptionSchemaContentHandler#startElementpublic abstract XMLElementHandler getHandler(URI namespaceURI, String localName, Map hints) throws SAXException
namespaceURI - localName - hints - DOCUMENT ME!SAXExceptionpublic abstract Object getValue() throws SAXException
SAXExceptionType#getValuepublic abstract String getName()
public abstract Element getElement()
public static void setLogLevel(Level l)
l - Copyright © 1996–2019 Geotools. All rights reserved.