org.geotools.data.complex
Class AppSchemaDataAccessRegistry

Object
  extended by DataAccessRegistry
      extended by 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
AppSchemaDataAccessRegistry()
           
 
Method Summary
static void clearAppSchemaProperties()
          Clean-up properties, mainly used for cleaning up after tests
static InterpolationProperties getAppSchemaProperties()
          Get App-schema properties
static FeatureTypeMapping getMappingByElement(Name featureTypeName)
           
static FeatureTypeMapping getMappingByName(Name featureTypeName)
          Get a feature type mapping from a registered app-schema data access.
static FeatureSource<FeatureType,Feature> getSimpleFeatureSource(Name featureTypeName)
          Get a feature source for simple features with supplied feature type name.
static boolean hasName(Name featureTypeName)
          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, unregisterAll, unregisterAndDisposeAll
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppSchemaDataAccessRegistry

public AppSchemaDataAccessRegistry()
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
Returns:
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.

Parameters:
featureTypeName -
Returns:
feature type mapping
Throws:
IOException

getMappingByElement

public static FeatureTypeMapping getMappingByElement(Name featureTypeName)
                                              throws IOException
Throws:
IOException

getSimpleFeatureSource

public static FeatureSource<FeatureType,Feature> getSimpleFeatureSource(Name featureTypeName)
                                                                 throws IOException
Get a feature source for simple features with supplied feature type name.

Parameters:
featureTypeName -
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.

Parameters:
featureTypeName -
Returns:
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



Copyright © 1996-2014 Geotools. All Rights Reserved.