| java.lang.Object org.geotools.xml.XMLElementHandler
All known Subclasses: org.geotools.xml.handlers.ComplexElementHandler, org.geotools.xml.handlers.DocumentHandler, org.geotools.xml.handlers.IgnoreHandler, org.geotools.xml.handlers.SimpleElementHandler,
XMLElementHandler | abstract public class XMLElementHandler implements Serializable(Code) | | XSIElementHandler purpose.
This abstract class is intended to act as both a definition of a generic
handler.
author: dzwiers, Refractions Research, Inc. http://www.refractions.net author: $Author:$ (last modification) version: $Id: XMLElementHandler.java 27862 2007-11-12 19:51:19Z desruisseaux $ |
Constructor Summary | |
protected | XMLElementHandler() Creates a new XSIElementHandler object. |
Method Summary | |
public void | characters(String text) This method throws a SAXNotSupportedException if it is called and not
overwritten. | abstract public void | endElement(URI namespaceURI, String localName, Map hints) handles SAX end Element events. | abstract public Element | getElement() This returns the Element specified. | abstract public XMLElementHandler | getHandler(URI namespaceURI, String localName, Map hints) This will find an appropriate XMLElementHandler for the specified child
if appropriate. | abstract public String | getName() This returns the name of the element being represented by this handler. | abstract public Object | getValue() This method will get the value of the element depending on it's type. | public static void | setLogLevel(Level l)
Sets the logger level for all XMLElementHandlers. | abstract public void | startElement(URI namespaceURI, String localName, Attributes attr) handles SAX start Element events. |
logger | final protected static Logger logger(Code) | | the logger -- should be used for debugging (assuming there are bugs LOL)
|
XMLElementHandler | protected XMLElementHandler()(Code) | | Creates a new XSIElementHandler object. Intended to limit creation to
the sub-packages
|
characters | public void characters(String text) throws SAXException(Code) | | This method throws a SAXNotSupportedException if it is called and not
overwritten. When overridding this method, you should be careful to
understand that it may be called more than once per element. Therefore
it would be advisable to log the text and handle the text's
interpretation at a later time (
Parameters: text - throws: SAXException - throws: SAXNotSupportedException - See Also: endElement(String,String)). |
endElement | abstract public void endElement(URI namespaceURI, String localName, Map hints) throws SAXException, OperationNotSupportedException(Code) | | handles SAX end Element events. This matches the end of the element
declaration in the document ... and responds to the event generated by
the SAX parser. This is an opportunity to complete some
post-processing.
Parameters: namespaceURI - Parameters: localName - Parameters: hints - DOCUMENT ME! throws: SAXException - throws: OperationNotSupportedException - See Also: SchemaContentHandler.endElement |
getElement | abstract public Element getElement()(Code) | | This returns the Element specified.
Element (may not be null) |
getHandler | abstract public XMLElementHandler getHandler(URI namespaceURI, String localName, Map hints) throws SAXException(Code) | | This will find an appropriate XMLElementHandler for the specified child
if appropriate. This method may return or throw an exception, depending
on the severity, if an error occurs. This method should be used to
complete a SAX parse of a document for which the Schema is known, and
parsed.
Parameters: namespaceURI - Parameters: localName - Parameters: hints - DOCUMENT ME! XMLElementHandler, or null throws: SAXException - |
getName | abstract public String getName()(Code) | | This returns the name of the element being represented by this handler.
This name matches the name specified in the Schema.
The Name (may not be null) |
getValue | abstract public Object getValue() throws SAXException(Code) | | This method will get the value of the element depending on it's type.
Object (may be null) throws: SAXException - See Also: Type.getValue |
setLogLevel | public static void setLogLevel(Level l)(Code) | |
Sets the logger level for all XMLElementHandlers.
Parameters: l - |
startElement | abstract public void startElement(URI namespaceURI, String localName, Attributes attr) throws SAXException(Code) | | handles SAX start Element events. This matches the start of the element
declaration in the document ... and responds to the event generated by
the SAX parser. This is an opportunity to complete some pre-processing.
Parameters: namespaceURI - Parameters: localName - Parameters: attr - throws: SAXException - See Also: SchemaContentHandler.startElement |
|
|