|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.data.mif.MIFDataStoreFactory
Builds a MIFDataStore. Required parameters are:
For a full description of creation parameters, see MIFDataStore().
MIFDataStore#MIFDataStore(String, HashMap);
Nested Class Summary |
Nested classes inherited from class org.geotools.data.DataStoreFactorySpi |
DataStoreFactorySpi.Param |
Field Summary | |
static DataStoreFactorySpi.Param |
PARAM_CHARSET
|
static DataStoreFactorySpi.Param |
PARAM_COORDSYS
|
static DataStoreFactorySpi.Param |
PARAM_DBTYPE
|
static DataStoreFactorySpi.Param |
PARAM_DELIMITER
|
static DataStoreFactorySpi.Param |
PARAM_FIELDCASE
|
static DataStoreFactorySpi.Param |
PARAM_GEOMFACTORY
|
static DataStoreFactorySpi.Param |
PARAM_GEOMNAME
|
static DataStoreFactorySpi.Param |
PARAM_GEOMTYPE
|
static DataStoreFactorySpi.Param |
PARAM_INDEX
|
static DataStoreFactorySpi.Param |
PARAM_NAMESPACE
|
static DataStoreFactorySpi.Param |
PARAM_PATH
|
static DataStoreFactorySpi.Param |
PARAM_SRID
|
static DataStoreFactorySpi.Param |
PARAM_TRANSFORM
|
static DataStoreFactorySpi.Param |
PARAM_UNIQUE
|
static DataStoreFactorySpi.Param |
PARAM_VERSION
|
Constructor Summary | |
MIFDataStoreFactory()
Creates a new MIFDataStoreFactory object. |
Method Summary | |
boolean |
canProcess(java.util.Map params)
Test to see if this factory is suitable for processing the data pointed to by the params map. |
DataStore |
createDataStore(java.util.Map params)
Construct a live data source using the params specifed. |
DataStore |
createNewDataStore(java.util.Map params)
As the creation of new MIF files is simply achieved by createSchema() calls, this method simply calls createDataStore(). |
java.lang.String |
getDescription()
Describe the nature of the datasource constructed by this factory. |
java.lang.String |
getDisplayName()
Name suitable for display to end user. |
java.util.Map |
getImplementationHints()
Always return Collections#EMPTY_MAP, because no hints are available for now. |
DataStoreFactorySpi.Param[] |
getParametersInfo()
MetaData about the required Parameters (for createDataStore). |
boolean |
isAvailable()
This method always returns true, because no specific libraries are required by MIFDataStore. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final DataStoreFactorySpi.Param PARAM_DBTYPE
public static final DataStoreFactorySpi.Param PARAM_PATH
public static final DataStoreFactorySpi.Param PARAM_NAMESPACE
public static final DataStoreFactorySpi.Param PARAM_FIELDCASE
public static final DataStoreFactorySpi.Param PARAM_GEOMNAME
public static final DataStoreFactorySpi.Param PARAM_GEOMFACTORY
public static final DataStoreFactorySpi.Param PARAM_GEOMTYPE
public static final DataStoreFactorySpi.Param PARAM_SRID
public static final DataStoreFactorySpi.Param PARAM_COORDSYS
public static final DataStoreFactorySpi.Param PARAM_CHARSET
public static final DataStoreFactorySpi.Param PARAM_DELIMITER
public static final DataStoreFactorySpi.Param PARAM_INDEX
public static final DataStoreFactorySpi.Param PARAM_TRANSFORM
public static final DataStoreFactorySpi.Param PARAM_UNIQUE
public static final DataStoreFactorySpi.Param PARAM_VERSION
Constructor Detail |
public MIFDataStoreFactory()
Method Detail |
public java.lang.String getDisplayName()
DataStoreFactorySpi
A non localized display name for this data store type.
getDisplayName
in interface DataStoreFactorySpi
public DataStore createDataStore(java.util.Map params) throws java.io.IOException
DataStoreFactorySpi
You can think of this as setting up a connection to the back end data source.
Magic Params: the following params are magic and are honoured by convention by the GeoServer and uDig application.
createDataStore
in interface DataStoreFactorySpi
params
- The full set of information needed to construct a live
data store. Typical key values for the map include: url -
location of a resource, used by file reading datasources. dbtype
- the type of the database to connect to, e.g. postgis, mysql
java.io.IOException
public DataStore createNewDataStore(java.util.Map params) throws java.io.IOException
As the creation of new MIF files is simply achieved by createSchema() calls, this method simply calls createDataStore().
createNewDataStore
in interface DataStoreFactorySpi
params
- The parameter map
java.io.IOException
createDataStore(Map);
public java.lang.String getDescription()
DataStoreFactorySpi
A non localized description of this data store type.
getDescription
in interface DataStoreFactorySpi
DataStoreFactorySpi.getDescription()
public DataStoreFactorySpi.Param[] getParametersInfo()
DataStoreFactorySpi
Interpretation of FeatureDescriptor values:
This should be the same as:
Object params = factory.getParameters();
BeanInfo info = getBeanInfo( params );
return info.getPropertyDescriptors();
getParametersInfo
in interface DataStoreFactorySpi
DataStoreFactorySpi.getParametersInfo()
public boolean canProcess(java.util.Map params)
DataStoreFactorySpi
If this datasource requires a number of parameters then this mehtod should check that they are all present and that they are all valid. If the datasource is a file reading data source then the extentions or mime types of any files specified should be checked. For example, a Shapefile datasource should check that the url param ends with shp, such tests should be case insensative.
canProcess
in interface DataStoreFactorySpi
params
- The full set of information needed to construct a live
data source.
DataStoreFactorySpi.canProcess(java.util.Map)
public boolean isAvailable()
This method always returns true, because no specific libraries are required by MIFDataStore.
isAvailable
in interface DataStoreFactorySpi
DataStoreFactorySpi.isAvailable()
public java.util.Map getImplementationHints()
Always return Collections#EMPTY_MAP, because no hints are available for now.
getImplementationHints
in interface Factory
Factory.getImplementationHints()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |