|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectSampleDataAccess
public class SampleDataAccess
Sample implementation of DataAccess
for testing. Create with
SampleDataAccessFactory
.
Constructor Summary | |
---|---|
SampleDataAccess()
|
Method Summary | |
---|---|
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. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SampleDataAccess()
Method Detail |
---|
public void createSchema(FeatureType featureType) throws IOException
createSchema
in interface DataAccess<FeatureType,Feature>
featureType
- FetureType to add to DataStore
IOException
- 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |