public class OGRDataExplorer extends AbstractDataServerExplorer implements DataServerExplorerProvider, ResourceConsumer
Modifier and Type | Field and Description |
---|---|
protected DataSource |
dataSource |
static String |
NAME |
protected OGRDataExplorerParameters |
parameters |
protected Boolean |
updateSupport |
MODE_ALL, MODE_FEATURE, MODE_GEOMETRY, MODE_RASTER
Constructor and Description |
---|
OGRDataExplorer(OGRDataExplorerParameters parameters,
DataServerExplorerProviderServices providerServices) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(String provider,
NewDataStoreParameters parameters,
boolean overwrite)
Creates a new DataStore in this server.
|
boolean |
canAdd()
Indicates whether this DataServerExplorer can create a new DataStore in the
server.
|
boolean |
canAdd(String storeName)
Indicates whether this DataServerExplorer can create a new DataStore in
the server, given the store name.
|
boolean |
closeResourceRequested(ResourceProvider resource) |
void |
doDispose()
Internal implementation for the
AbstractDisposable.dispose() method, to be
implemented by child classes. |
DataStoreParameters |
get(String name) |
NewDataStoreParameters |
getAddParameters(String storeName)
Given the store's name, returns its parameters for creation.
|
protected DataSource |
getDataSource() |
List |
getDataStoreProviderNames()
Return the list of provider names that this server allow.
|
protected List<Layer> |
getLayerList() |
DataServerExplorerParameters |
getParameters()
Returns this DataServerExplorer parameters
|
String |
getProviderName()
Returns the DataServerExplorer's name
|
DataServerExplorerProviderServices |
getServerExplorerProviderServices() |
List |
list()
Provides a list of available stores in the server.
|
List |
list(int mode)
Provides a list of available stores in the server of a type.
|
void |
remove(DataStoreParameters parameters)
Removes a store from the server given its DataStoreParameters.
|
void |
resourceChanged(ResourceProvider resource) |
getResourcePath
dispose, dispose
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResourcePath
dispose
public static final String NAME
protected OGRDataExplorerParameters parameters
protected DataSource dataSource
protected Boolean updateSupport
public OGRDataExplorer(OGRDataExplorerParameters parameters, DataServerExplorerProviderServices providerServices) throws InitializeException
parameters
- Parameters to open data explorer.providerServices
- Available servicesInitializeException
- If there is some error initializing this store providerprotected DataSource getDataSource() throws OGRUnsupportedFormatException
OGRUnsupportedFormatException
protected List<Layer> getLayerList()
public String getProviderName()
DataServerExplorer
getProviderName
in interface DataServerExplorer
public boolean canAdd()
DataServerExplorer
canAdd
in interface DataServerExplorer
public boolean canAdd(String storeName) throws DataException
DataServerExplorer
canAdd
in interface DataServerExplorer
storeName
- store name.DataException
public List list() throws DataException
DataServerExplorer
list
in interface DataServerExplorer
DataException
public List list(int mode) throws DataException
DataServerExplorer
list
in interface DataServerExplorer
mode
- , filter store from a type: DataServerExplorer.MODE_ALL
,
DataServerExplorer.MODE_FEATURE
, #MODE_FEATURE_GEOMETRY
,
DataServerExplorer.MODE_RASTER
DataException
public boolean add(String provider, NewDataStoreParameters parameters, boolean overwrite) throws DataException
DataServerExplorer
add
in interface DataServerExplorer
parameters
- , an instance of DataStoreParameters from
DataServerExplorer.getAddParameters(String)
that
describes the new DataStore.overwrite
- if the store already existsDataException
public void remove(DataStoreParameters parameters) throws DataException
DataServerExplorer
remove
in interface DataServerExplorer
DataException
public NewDataStoreParameters getAddParameters(String storeName) throws DataException
DataServerExplorer
getAddParameters
in interface DataServerExplorer
DataException
public DataServerExplorerParameters getParameters()
DataServerExplorer
getParameters
in interface DataServerExplorer
getParameters
in class AbstractDataServerExplorer
public List getDataStoreProviderNames()
DataServerExplorer
getDataStoreProviderNames
in interface DataServerExplorer
public void doDispose()
AbstractDisposable
AbstractDisposable.dispose()
method, to be
implemented by child classes.doDispose
in class AbstractDataServerExplorer
AbstractDisposable.dispose()
public DataServerExplorerProviderServices getServerExplorerProviderServices()
getServerExplorerProviderServices
in interface DataServerExplorerProvider
getServerExplorerProviderServices
in class AbstractDataServerExplorer
public boolean closeResourceRequested(ResourceProvider resource)
closeResourceRequested
in interface ResourceConsumer
public void resourceChanged(ResourceProvider resource)
resourceChanged
in interface ResourceConsumer
public DataStoreParameters get(String name) throws DataException
get
in interface DataServerExplorer
get
in class AbstractDataServerExplorer
DataException