|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.SampleDataAccess
public class SampleDataAccess
Sample implementation of DataAccess
for testing. Create with
SampleDataAccessFactory
.
Constructor Summary | |
---|---|
SampleDataAccess()
|
Method Summary | |
---|---|
void |
createSchema(org.opengis.feature.type.FeatureType featureType)
Unsupported operation. |
void |
dispose()
Nothing to dispose. |
FeatureSource<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature> |
getFeatureSource(org.opengis.feature.type.Name typeName)
Access to the named resource. |
ServiceInfo |
getInfo()
Unsupported operation. |
java.util.List<org.opengis.feature.type.Name> |
getNames()
Get the feature type names provided by this DataAccess . |
org.opengis.feature.type.FeatureType |
getSchema(org.opengis.feature.type.Name name)
Return the feature type for supported type name. |
void |
updateSchema(org.opengis.feature.type.Name typeName,
org.opengis.feature.type.FeatureType featureType)
Unsupported operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SampleDataAccess()
Method Detail |
---|
public void createSchema(org.opengis.feature.type.FeatureType featureType) throws java.io.IOException
createSchema
in interface DataAccess<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
featureType
- FetureType to add to DataStore
java.io.IOException
- If featureType cannot be createdDataAccess.createSchema(org.opengis.feature.type.FeatureType)
public void dispose()
dispose
in interface DataAccess<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
DataAccess.dispose()
public FeatureSource<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature> getFeatureSource(org.opengis.feature.type.Name typeName) throws java.io.IOException
DataAccess
The level of access is represented by the instance of the FeatureSource being returned.
Formally:
getFeatureSource
in interface DataAccess<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
java.io.IOException
DataAccess.getFeatureSource(org.opengis.feature.type.Name)
public ServiceInfo getInfo()
getInfo
in interface DataAccess<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
DataAccess.getInfo()
public java.util.List<org.opengis.feature.type.Name> getNames() throws java.io.IOException
DataAccess
. Only
SampleDataAccessData.MAPPEDFEATURE_TYPE_NAME
is supported.
getNames
in interface DataAccess<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
java.io.IOException
DataAccess.getNames()
public org.opengis.feature.type.FeatureType getSchema(org.opengis.feature.type.Name name) throws java.io.IOException
SampleDataAccessData.MAPPEDFEATURE_TYPE_NAME
is supported.
getSchema
in interface DataAccess<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
name
- Type name a the resource from getNames()
java.io.IOException
DataAccess.getSchema(org.opengis.feature.type.Name)
public void updateSchema(org.opengis.feature.type.Name typeName, org.opengis.feature.type.FeatureType featureType) throws java.io.IOException
updateSchema
in interface DataAccess<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
java.io.IOException
- if the operation failedDataAccess.updateSchema(org.opengis.feature.type.Name,
org.opengis.feature.type.FeatureType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |