Package org.geotools.data.complex
Class AppSchemaDataAccessRegistry
- Object
-
- DataAccessRegistry
-
- AppSchemaDataAccessRegistry
-
- All Implemented Interfaces:
Repository
public class AppSchemaDataAccessRegistry extends DataAccessRegistry
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 Constructor Description AppSchemaDataAccessRegistry()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclearAppSchemaProperties()Clean-up properties, mainly used for cleaning up after testsstatic InterpolationPropertiesgetAppSchemaProperties()Get App-schema propertiesstatic FeatureTypeMappinggetMappingByElement(Name featureTypeName)static FeatureTypeMappinggetMappingByName(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 booleanhasName(Name featureTypeName)Return true if a type name is mapped in one of the registered app-schema data accesses.static booleanhasTargetElement(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
-
-
-
-
Method Detail
-
hasName
public static boolean hasName(Name featureTypeName) throws IOException
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
public static FeatureTypeMapping getMappingByName(Name featureTypeName) throws IOException
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
public static FeatureTypeMapping getMappingByElement(Name featureTypeName) throws IOException
- 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
public static boolean hasTargetElement(Name featureTypeName) throws IOException
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
public static InterpolationProperties getAppSchemaProperties()
Get App-schema properties- Returns:
- app-schema properties
-
clearAppSchemaProperties
public static void clearAppSchemaProperties()
Clean-up properties, mainly used for cleaning up after tests
-
-