| java.lang.Object org.geoserver.wfs.xml.NameSpaceTranslatorFactory
NameSpaceTranslatorFactory | public class NameSpaceTranslatorFactory (Code) | | NameSpaceTranslatorFactory purpose.
Follows the factory pattern. Creates and stores a list of name space translators.
See Also: NameSpaceTranslator author: dzwiers, Refractions Research, Inc. author: $Author: dmzwiers $ (last modification) version: $Id: NameSpaceTranslatorFactory.java 6177 2007-02-19 10:11:27Z aaime $ |
addNameSpaceTranslator | public void addNameSpaceTranslator(String prefix, String namespace)(Code) | | addNameSpaceTranslator purpose.
Adds a new translator for the namespace specified if a
NameSpaceTranslator was registered for that namespace.
Some the magic for creating instances using the classloader occurs here
(ie. the translators are not loaded lazily)
Parameters: prefix - The desired namespace prefix Parameters: namespace - The desired namespace. |
getInstance | public static NameSpaceTranslatorFactory getInstance()(Code) | | getInstance purpose.
Completes the singleton pattern of this factory class.
NameSpaceTranslatorFactory The instance. |
getNameSpaceTranslator | public NameSpaceTranslator getNameSpaceTranslator(String prefix)(Code) | | getNameSpaceTranslator purpose.
Description ...
Parameters: prefix - the prefix of the translator to get. the translator, or null if it was not found |
registerNameSpaceTranslator | public void registerNameSpaceTranslator(String namespace, Class nameSpaceTranslator)(Code) | | registerNameSpaceTranslator purpose.
Registers a namespace and it's translator with the factory. good for adding additional namespaces :)
Parameters: namespace - The namespace. Parameters: nameSpaceTranslator - The translator class for this namespace. |
|
|