Package org.geotools.xml.handlers
Class ElementHandlerFactory
Object
ElementHandlerFactory
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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateElementHandler
(URI namespaceURI, String localName) Creates an element handler for the element specified by name and namespace.Creates an element handler based on the element provided.void
endPrefixMapping
(String prefix) 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 Details
-
KEY
Used to store ElementHandlerFactory- See Also:
-
defaultNS
-
-
Constructor Details
-
ElementHandlerFactory
Creates a new ElementHandlerFactory object.- Parameters:
l
- Logger
-
-
Method Details
-
endPrefixMapping
-
startPrefixMapping
-
startPrefixMapping
-
startPrefixMapping
-
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
Creates an element handler based on the element provided.- Parameters:
eth
- Element- Throws:
SAXException
-
getNamespace
-