Package org.geotools.xml.handlers
Class IgnoreHandler
- Object
-
- XMLElementHandler
-
- IgnoreHandler
-
- All Implemented Interfaces:
Serializable
public class IgnoreHandler extends XMLElementHandler
This is a default Handler which is used in case a handler cannot be created for an arbitry element. Note: this handler does not perform and parsing on the current element or it's children.- Author:
- dzwiers, Refractions Research, Inc. http://www.refractions.net, $Author:$ (last modification)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAME-
Fields inherited from class XMLElementHandler
logger
-
-
Constructor Summary
Constructors Constructor Description IgnoreHandler()IgnoreHandler(Element igElem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(String text)This method throws a SAXNotSupportedException if it is called and not overwritten.voidendElement(URI namespaceURI, String localName, Map<String,Object> hints)handles SAX end Element events.ElementgetElement()This returns the Element specified.XMLElementHandlergetHandler(URI namespaceURI, String localName, Map<String,Object> hints)This will find an appropriate XMLElementHandler for the specified child if appropriate.StringgetName()This returns the name of the element being represented by this handler.ObjectgetValue()This method will get the value of the element depending on it's type.voidstartElement(URI namespaceURI, String localName, Attributes attr)handles SAX start Element events.-
Methods inherited from class XMLElementHandler
setLogLevel
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IgnoreHandler
public IgnoreHandler()
-
IgnoreHandler
public IgnoreHandler(Element igElem)
-
-
Method Detail
-
getElement
public Element getElement()
Description copied from class:XMLElementHandlerThis returns the Element specified.- Specified by:
getElementin classXMLElementHandler- Returns:
- Element (may not be null)
- See Also:
XMLElementHandler.getElement()
-
characters
public void characters(String text)
Description copied from class:XMLElementHandlerThis 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 (- Overrides:
charactersin classXMLElementHandler- See Also:
XMLElementHandler.characters(java.lang.String)
-
getHandler
public XMLElementHandler getHandler(URI namespaceURI, String localName, Map<String,Object> hints)
Description copied from class:XMLElementHandlerThis 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.- Specified by:
getHandlerin classXMLElementHandler- Returns:
- XMLElementHandler, or null
- See Also:
schema.XSIElementHandler#getHandler(java.lang.String, java.lang.String)
-
getValue
public Object getValue()
Description copied from class:XMLElementHandlerThis method will get the value of the element depending on it's type.- Specified by:
getValuein classXMLElementHandler- Returns:
- Object (may be null)
- See Also:
XMLElementHandler.getValue()
-
getName
public String getName()
Description copied from class:XMLElementHandlerThis returns the name of the element being represented by this handler. This name matches the name specified in the Schema.- Specified by:
getNamein classXMLElementHandler- Returns:
- The Name (may not be null)
- See Also:
XMLElementHandler.getName()
-
endElement
public void endElement(URI namespaceURI, String localName, Map<String,Object> hints)
Description copied from class:XMLElementHandlerhandles 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.- Specified by:
endElementin classXMLElementHandler- See Also:
org.geotools.xml.XMLElementHandler#endElement(java.lang.String, java.lang.String)
-
startElement
public void startElement(URI namespaceURI, String localName, Attributes attr)
Description copied from class:XMLElementHandlerhandles 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.- Specified by:
startElementin classXMLElementHandler- See Also:
org.geotools.xml.XMLElementHandler#startElement(java.lang.String, java.lang.String, org.xml.sax.Attributes)
-
-