Package org.gvsig.xml2db.lib.api
Class Xml2dbLocator
java.lang.Object
org.gvsig.tools.locator.AbstractLocator
org.gvsig.tools.locator.BaseLocator
org.gvsig.xml2db.lib.api.Xml2dbLocator
- All Implemented Interfaces:
org.gvsig.tools.locator.Locator,org.gvsig.tools.locator.Locator_withExists
public class Xml2dbLocator
extends org.gvsig.tools.locator.BaseLocator
This locator is the entry point for the XML library, providing
access to all XML services through the
Xml2dbManager-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Xml2dbLocatorReturns the singleton instance.Returns the Locator's namestatic Xml2dbManagerReturn a reference to XMLLocator.static Xml2dbManagerstatic voidregisterDefaultXMLManager(Class clazz) Registers the default Class implementing the XMLLocator interfacestatic voidregisterXMLManager(Class clazz) Registers the Class implementing the XMLLocator interface.Methods inherited from class org.gvsig.tools.locator.AbstractLocator
exists, get, getNames, register, register, register, register, registerDefault, registerDefault, toString
-
Field Details
-
MANAGER_NAME
XML manager name- See Also:
-
-
Constructor Details
-
Xml2dbLocator
public Xml2dbLocator()
-
-
Method Details
-
getInstance
Returns the singleton instance.- Returns:
- the singleton instance
-
getLocatorName
Returns the Locator's name- Specified by:
getLocatorNamein interfaceorg.gvsig.tools.locator.Locator- Overrides:
getLocatorNamein classorg.gvsig.tools.locator.BaseLocator- Returns:
- a String with the Locator's name
-
getManager
Return a reference to XMLLocator.- Returns:
- a reference to XMLLocator
- Throws:
org.gvsig.tools.locator.LocatorException- if there is no access to the class or the class cannot be instantiated- See Also:
-
getXml2dbManager
- Throws:
org.gvsig.tools.locator.LocatorException
-
registerXMLManager
Registers the Class implementing the XMLLocator interface.- Parameters:
clazz- implementing the XMLLocator interface
-
registerDefaultXMLManager
Registers the default Class implementing the XMLLocator interface- Parameters:
clazz- implementing the XMLLocator interface
-