org.geotools.data.complex
Class AppSchemaDataAccessRegistry

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<DataAccess<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>>
              extended by org.geotools.data.complex.DataAccessRegistry
                  extended by org.geotools.data.complex.AppSchemaDataAccessRegistry
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<DataAccess<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>>, java.util.Collection<DataAccess<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>>, java.util.List<DataAccess<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>>, java.util.RandomAccess

public class AppSchemaDataAccessRegistry
extends DataAccessRegistry

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.geotools.data.complex.DataAccessRegistry
registry
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
AppSchemaDataAccessRegistry()
           
 
Method Summary
static FeatureTypeMapping getMappingByElement(org.opengis.feature.type.Name featureTypeName)
           
static FeatureTypeMapping getMappingByName(org.opengis.feature.type.Name featureTypeName)
          Get a feature type mapping from a registered app-schema data access.
static FeatureSource<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature> getSimpleFeatureSource(org.opengis.feature.type.Name featureTypeName)
          Get a feature source for simple features with supplied feature type name.
static boolean hasName(org.opengis.feature.type.Name featureTypeName)
          Return true if a type name is mapped in one of the registered app-schema data accesses.
static boolean hasTargetElement(org.opengis.feature.type.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 org.geotools.data.complex.DataAccessRegistry
getDataAccess, getFeatureSource, register, throwDataSourceException, unregister, unregisterAll
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode
 
Methods inherited from class java.util.AbstractCollection
containsAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode
 

Constructor Detail

AppSchemaDataAccessRegistry

public AppSchemaDataAccessRegistry()
Method Detail

getMappingByName

public static FeatureTypeMapping getMappingByName(org.opengis.feature.type.Name featureTypeName)
                                           throws java.io.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:
java.io.IOException

getMappingByElement

public static FeatureTypeMapping getMappingByElement(org.opengis.feature.type.Name featureTypeName)
                                              throws java.io.IOException
Throws:
java.io.IOException

getSimpleFeatureSource

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

Parameters:
featureTypeName -
Returns:
feature source
Throws:
java.io.IOException

hasName

public static boolean hasName(org.opengis.feature.type.Name featureTypeName)
                       throws java.io.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:
java.io.IOException

hasTargetElement

public static boolean hasTargetElement(org.opengis.feature.type.Name featureTypeName)
                                throws java.io.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:
java.io.IOException


Copyright © 1996-2010 Geotools. All Rights Reserved.