Class 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)
    • 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
        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