Package 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
-
-
Constructor Summary
Constructors Constructor Description ElementHandlerFactory(Logger l)
Creates a new ElementHandlerFactory object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLElementHandler
createElementHandler(URI namespaceURI, String localName)
Creates an element handler for the element specified by name and namespace.XMLElementHandler
createElementHandler(Element eth)
Creates an element handler based on the element provided.void
endPrefixMapping(String prefix)
URI
getNamespace(String prefix)
void
startPrefixMapping(String prefix, String targ)
void
startPrefixMapping(String prefix, String targ, URI uri)
protected void
startPrefixMapping(String prefix, Schema targ)
-
-
-
Field Detail
-
KEY
public static final String KEY
Used to store ElementHandlerFactory- See Also:
- Constant Field Values
-
defaultNS
protected URI defaultNS
-
-
Constructor Detail
-
ElementHandlerFactory
public ElementHandlerFactory(Logger l)
Creates a new ElementHandlerFactory object.- Parameters:
l
- Logger
-
-
Method Detail
-
endPrefixMapping
public void endPrefixMapping(String prefix)
-
startPrefixMapping
public void startPrefixMapping(String prefix, String targ, URI uri) throws SAXException
-
startPrefixMapping
public void startPrefixMapping(String prefix, String targ) throws SAXException
-
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.- 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
-
-