org.geotools.xml.handlers
Class ElementHandlerFactory
Object
ElementHandlerFactory
public class ElementHandlerFactory
- extends 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
- Module:
modules/library/xml (gt-xml.jar)
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY
public static final String KEY
- See Also:
- Constant Field Values
defaultNS
protected URI defaultNS
ElementHandlerFactory
public ElementHandlerFactory(Logger l)
- Creates a new ElementHandlerFactory object.
- Parameters:
l
- Logger
endPrefixMapping
public void endPrefixMapping(String prefix)
- See Also:
ContentHandler.endPrefixMapping(java.lang.String)
startPrefixMapping
public void startPrefixMapping(String prefix,
String targ,
URI uri)
throws SAXException
- Throws:
SAXException
- See Also:
ContentHandler.startPrefixMapping(java.lang.String,
java.lang.String)
startPrefixMapping
public void startPrefixMapping(String prefix,
String targ)
throws SAXException
- Throws:
SAXException
- See Also:
ContentHandler.startPrefixMapping(java.lang.String,
java.lang.String)
startPrefixMapping
protected void startPrefixMapping(String prefix,
Schema targ)
- See Also:
ContentHandler.startPrefixMapping(java.lang.String,
java.lang.String)
createElementHandler
public XMLElementHandler createElementHandler(URI namespaceURI,
String localName)
throws 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
-
- Throws:
SAXException
- See Also:
createElementHandler(Element)
createElementHandler
public XMLElementHandler createElementHandler(Element eth)
throws SAXException
- Creates an element handler based on the element provided.
- Parameters:
eth
- Element
- Throws:
SAXException
getNamespace
public URI getNamespace(String prefix)
Copyright © 1996-2010 Geotools. All Rights Reserved.