Package org.geotools.data.complex
Class AppSchemaDataAccessRegistry
Object
DataAccessRegistry
AppSchemaDataAccessRegistry
- All Implemented Interfaces:
Repository
A registry that stores all app schema data access instances per application. This allows mappings from different data
accesses to be accessed globally.
- Author:
- Rini Angreani (CSIRO Earth Science and Resource Engineering)
-
Field Summary
Fields inherited from class DataAccessRegistry
properties, registry, theRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Clean-up properties, mainly used for cleaning up after testsstatic InterpolationProperties
Get App-schema propertiesstatic FeatureTypeMapping
getMappingByElement
(Name featureTypeName) static FeatureTypeMapping
getMappingByName
(Name featureTypeName) Get a feature type mapping from a registered app-schema data access.static FeatureSource<? extends FeatureType,
? extends Feature> getSimpleFeatureSource
(Name featureTypeName) Get a feature source for simple features with supplied feature type name.static boolean
Return true if a type name is mapped in one of the registered app-schema data accesses.static boolean
hasTargetElement
(Name featureTypeName) Return true if a type name is mapped in one of the registered app-schema data accesses as targetElementName, regardless whether or not mappingName exists.Methods inherited from class DataAccessRegistry
access, clearProperties, dataStore, disposeAndUnregisterAll, featureSource, findFeature, getDataAccess, getDataStores, getFeatureSource, getInstance, getProperties, hasAccessName, hasAppSchemaAccessName, hasAppSchemaTargetElement, mappingByElement, mappingByName, register, registerAccess, throwDataSourceException, unregister, unregisterAccess, unregisterAndDisposeAll
-
Constructor Details
-
AppSchemaDataAccessRegistry
public AppSchemaDataAccessRegistry()
-
-
Method Details
-
hasName
Return true if a type name is mapped in one of the registered app-schema data accesses. If the type mapping has mappingName, then it will be the key that is matched in the search. If it doesn't, then it will match the targetElementName.- Parameters:
featureTypeName
- Feature type name- Throws:
IOException
-
getMappingByName
Get a feature type mapping from a registered app-schema data access. Please note that this is only possible for app-schema data access instances.- Returns:
- feature type mapping
- Throws:
IOException
-
getMappingByElement
- Throws:
IOException
-
getSimpleFeatureSource
public static FeatureSource<? extends FeatureType,? extends Feature> getSimpleFeatureSource(Name featureTypeName) throws IOException Get a feature source for simple features with supplied feature type name.- Returns:
- feature source
- Throws:
IOException
-
hasTargetElement
Return true if a type name is mapped in one of the registered app-schema data accesses as targetElementName, regardless whether or not mappingName exists.- Throws:
IOException
-
getAppSchemaProperties
Get App-schema properties- Returns:
- app-schema properties
-
clearAppSchemaProperties
public static void clearAppSchemaProperties()Clean-up properties, mainly used for cleaning up after tests
-