|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.xml.XMLElementHandler org.geotools.xml.handlers.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 FormField Summary |
Fields inherited from class org.geotools.xml.XMLElementHandler |
logger |
Constructor Summary | |
SimpleElementHandler(Element st)
Creates a new SimpleElementHandler object. |
Method Summary | |
void |
characters(java.lang.String text1)
This method throws a SAXNotSupportedException if it is called and not overwritten. |
void |
endElement(java.net.URI namespaceURI,
java.lang.String localName,
java.util.Map hints)
handles SAX end Element events. |
Element |
getElement()
This returns the Element specified. |
XMLElementHandler |
getHandler(java.net.URI namespaceURI,
java.lang.String localName,
java.util.Map hints)
This will find an appropriate XMLElementHandler for the specified child if appropriate. |
java.lang.String |
getName()
This returns the name of the element being represented by this handler. |
java.lang.Object |
getValue()
This method will get the value of the element depending on it's type. |
void |
startElement(java.net.URI namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes attr1)
handles SAX start Element events. |
Methods inherited from class org.geotools.xml.XMLElementHandler |
setLogLevel |
Methods inherited from class java.lang.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(java.net.URI namespaceURI, java.lang.String localName, java.util.Map hints) throws org.xml.sax.SAXException
XMLElementHandler
getHandler
in class XMLElementHandler
namespaceURI
- localName
- hints
- DOCUMENT ME!
org.xml.sax.SAXException
org.geotools.xml.XMLElementHandler#getHandler(java.lang.String,
java.lang.String)
public java.lang.Object getValue()
XMLElementHandler
getValue
in class XMLElementHandler
XMLElementHandler.getValue()
public java.lang.String getName()
XMLElementHandler
getName
in class XMLElementHandler
XMLElementHandler.getName()
public void characters(java.lang.String text1)
XMLElementHandler
characters
in class XMLElementHandler
text1
- XMLElementHandler.characters(java.lang.String)
public void endElement(java.net.URI namespaceURI, java.lang.String localName, java.util.Map hints) throws javax.naming.OperationNotSupportedException, org.xml.sax.SAXException
XMLElementHandler
endElement
in class XMLElementHandler
namespaceURI
- localName
- hints
- DOCUMENT ME!
org.xml.sax.SAXException
javax.naming.OperationNotSupportedException
org.geotools.xml.XMLElementHandler#endElement(java.lang.String,
java.lang.String)
public void startElement(java.net.URI namespaceURI, java.lang.String localName, org.xml.sax.Attributes attr1)
XMLElementHandler
startElement
in class XMLElementHandler
namespaceURI
- localName
- attr1
- 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 |