org.geotools.xml.handlers
Class ElementHandlerFactory
java.lang.Object
org.geotools.xml.handlers.ElementHandlerFactory
- public class ElementHandlerFactory
- extends java.lang.Object
This class is used to create handlers for child elements based on the
currently defined namespaces. This class is called by the XMLSAXHandler to
help act as a library of prefix -> Schema mappings.
- Author:
- dzwiers www.refractions.net
- See Also:
XMLSAXHandler
,
Schema
Field Summary |
protected java.net.URI |
defaultNS
|
static java.lang.String |
KEY
|
Constructor Summary |
ElementHandlerFactory(java.util.logging.Logger l)
Creates a new ElementHandlerFactory object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY
public static final java.lang.String KEY
- See Also:
- Constant Field Values
defaultNS
protected java.net.URI defaultNS
ElementHandlerFactory
public ElementHandlerFactory(java.util.logging.Logger l)
- Creates a new ElementHandlerFactory object.
- Parameters:
l
- Logger
endPrefixMapping
public void endPrefixMapping(java.lang.String prefix)
- See Also:
ContentHandler.endPrefixMapping(java.lang.String)
startPrefixMapping
public void startPrefixMapping(java.lang.String prefix,
java.lang.String targ,
java.net.URI uri)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
- See Also:
ContentHandler.startPrefixMapping(java.lang.String,
java.lang.String)
startPrefixMapping
public void startPrefixMapping(java.lang.String prefix,
java.lang.String targ)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
- See Also:
ContentHandler.startPrefixMapping(java.lang.String,
java.lang.String)
startPrefixMapping
protected void startPrefixMapping(java.lang.String prefix,
Schema targ)
- See Also:
ContentHandler.startPrefixMapping(java.lang.String,
java.lang.String)
createElementHandler
public XMLElementHandler createElementHandler(java.net.URI namespaceURI,
java.lang.String localName)
throws org.xml.sax.SAXException
- Creates an element handler for the element specified by name and
namespace. Will return null if a suitable handler is not found.
- Parameters:
namespaceURI
- localName
-
- Returns:
-
- Throws:
org.xml.sax.SAXException
- See Also:
createElementHandler(Element)
createElementHandler
public XMLElementHandler createElementHandler(Element eth)
throws org.xml.sax.SAXException
- Creates an element handler based on the element provided.
- Parameters:
eth
- Element
- Returns:
-
- Throws:
org.xml.sax.SAXException
getNamespace
public java.net.URI getNamespace(java.lang.String prefix)
Copyright © GeoTools. All Rights Reserved.