Package org.gvsig.catalog.impl
Class DefaultCatalogManager
java.lang.Object
org.gvsig.catalog.impl.DefaultCatalogManager
- All Implemented Interfaces:
CatalogManager
- Author:
- Jorge Piera
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayerLoader(String key, Class loader) voidAdds a new recordcreateRecord(URI uri, XMLNode node) Try to identify the XML format and return a recordIt is used to retrieve a driver that supports a concrete protocolgetLayerLoader(Resource resource) gets Map object to persist servers listvoidThis method is used to register a new catalog driver that manage a concrete protocolvoidsetServersPersistence(Map<String, org.gvsig.utils.swing.jcomboServer.ServerData> serversPersistence) sets Map object to persist servers list
-
Constructor Details
-
DefaultCatalogManager
public DefaultCatalogManager()
-
-
Method Details
-
getDriver
Description copied from interface:CatalogManagerIt is used to retrieve a driver that supports a concrete protocol- Specified by:
getDriverin interfaceCatalogManager- Parameters:
protocol- Catalog protocol- Returns:
- The concrete catalog service driver
-
getDrivers
- Specified by:
getDriversin interfaceCatalogManager- Returns:
- a list with all the catalog drivers
-
register
Description copied from interface:CatalogManagerThis method is used to register a new catalog driver that manage a concrete protocol- Specified by:
registerin interfaceCatalogManager- Parameters:
driver- Catalog driver to register
-
addRecord
Description copied from interface:CatalogManagerAdds a new record- Specified by:
addRecordin interfaceCatalogManager- Parameters:
record- New record to add
-
createRecord
Description copied from interface:CatalogManagerTry to identify the XML format and return a record- Specified by:
createRecordin interfaceCatalogManager- Parameters:
uri- Server URI (used to retrieve the images)node- XML node- Returns:
-
addLayerLoader
- Specified by:
addLayerLoaderin interfaceCatalogManager
-
getLayerLoader
public LayerLoader getLayerLoader(Resource resource) throws IllegalArgumentException, SecurityException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException - Specified by:
getLayerLoaderin interfaceCatalogManager- Throws:
IllegalArgumentExceptionSecurityExceptionInstantiationExceptionIllegalAccessExceptionInvocationTargetExceptionNoSuchMethodException
-
getServersPersistence
Description copied from interface:CatalogManagergets Map object to persist servers list- Specified by:
getServersPersistencein interfaceCatalogManager- Returns:
- Mapinvalid input: '<'String,ServerData>
-
setServersPersistence
public void setServersPersistence(Map<String, org.gvsig.utils.swing.jcomboServer.ServerData> serversPersistence) Description copied from interface:CatalogManagersets Map object to persist servers list- Specified by:
setServersPersistencein interfaceCatalogManager- Parameters:
serversPersistence-
-