public class SampleDataAccess extends Object implements DataAccess<FeatureType,Feature>
DataAccess
for testing. Create with SampleDataAccessFactory
.Constructor and Description |
---|
SampleDataAccess() |
Modifier and Type | Method and Description |
---|---|
void |
createSchema(FeatureType featureType)
Unsupported operation.
|
void |
dispose()
Nothing to dispose.
|
FeatureSource<FeatureType,Feature> |
getFeatureSource(Name typeName)
Access to the named resource.
|
ServiceInfo |
getInfo()
Unsupported operation.
|
List<Name> |
getNames()
Get the feature type names provided by this
DataAccess . |
FeatureType |
getSchema(Name name)
Return the feature type for supported type name.
|
void |
removeSchema(Name typeName)
Unsupported operation.
|
void |
updateSchema(Name typeName,
FeatureType featureType)
Unsupported operation.
|
public void createSchema(FeatureType featureType) throws IOException
createSchema
in interface DataAccess<FeatureType,Feature>
featureType
- FetureType to add to DataStoreIOException
- If featureType cannot be createdDataAccess.createSchema(org.opengis.feature.type.FeatureType)
public void dispose()
dispose
in interface DataAccess<FeatureType,Feature>
DataAccess.dispose()
public FeatureSource<FeatureType,Feature> getFeatureSource(Name typeName) throws IOException
DataAccess
The level of access is represented by the instance of the FeatureSource being returned.
Formally:
getFeatureSource
in interface DataAccess<FeatureType,Feature>
IOException
DataAccess.getFeatureSource(org.opengis.feature.type.Name)
public ServiceInfo getInfo()
getInfo
in interface DataAccess<FeatureType,Feature>
DataAccess.getInfo()
public List<Name> getNames() throws IOException
DataAccess
. Only SampleDataAccessData.MAPPEDFEATURE_TYPE_NAME
is supported.getNames
in interface DataAccess<FeatureType,Feature>
IOException
DataAccess.getNames()
public FeatureType getSchema(Name name) throws IOException
SampleDataAccessData.MAPPEDFEATURE_TYPE_NAME
is supported.getSchema
in interface DataAccess<FeatureType,Feature>
name
- Type name a the resource from getNames()IOException
DataAccess.getSchema(org.opengis.feature.type.Name)
public void updateSchema(Name typeName, FeatureType featureType) throws IOException
updateSchema
in interface DataAccess<FeatureType,Feature>
IOException
- if the operation failedDataAccess.updateSchema(org.opengis.feature.type.Name,
org.opengis.feature.type.FeatureType)
public void removeSchema(Name typeName) throws IOException
removeSchema
in interface DataAccess<FeatureType,Feature>
IOException
- if the operation failedDataAccess.removeSchema(org.opengis.feature.type.Name)
Copyright © 1996–2019 Geotools. All rights reserved.