|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectXMLElementHandler
SimpleElementHandler
public class SimpleElementHandler
This class is intended to handle parsing an xml element from an instance document for elements who's type is both known and simple. This handler is used within the XMLSAXHandler to handle sax events generated by the SAX parser.
SimpleType
,
XMLElementHandler
,
Serialized Form
modules/library/xml (gt-xml.jar)
Field Summary |
---|
Fields inherited from class XMLElementHandler |
---|
logger |
Constructor Summary | |
---|---|
SimpleElementHandler(Element st)
Creates a new SimpleElementHandler object. |
Method Summary | |
---|---|
void |
characters(String text1)
This method throws a SAXNotSupportedException if it is called and not overwritten. |
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 attr1)
handles SAX start Element events. |
Methods inherited from class XMLElementHandler |
---|
setLogLevel |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleElementHandler(Element st)
st
- Element the simple element which we will parseMethod Detail |
---|
public Element getElement()
XMLElementHandler
getElement
in class XMLElementHandler
XMLElementHandler.getElement()
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 Object getValue()
XMLElementHandler
getValue
in class XMLElementHandler
XMLElementHandler.getValue()
public String getName()
XMLElementHandler
getName
in class XMLElementHandler
XMLElementHandler.getName()
public void characters(String text1)
XMLElementHandler
characters
in class XMLElementHandler
XMLElementHandler.characters(java.lang.String)
public void endElement(URI namespaceURI, String localName, Map hints) throws OperationNotSupportedException, SAXException
XMLElementHandler
endElement
in class XMLElementHandler
hints
- DOCUMENT ME!
SAXException
OperationNotSupportedException
org.geotools.xml.XMLElementHandler#endElement(java.lang.String,
java.lang.String)
public void startElement(URI namespaceURI, String localName, Attributes attr1)
XMLElementHandler
startElement
in class XMLElementHandler
org.geotools.xml.XMLElementHandler#startElement(java.lang.String,
java.lang.String, org.xml.sax.Attributes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |