Package org.geotools.data.complex.config
Class AppSchemaFeatureTypeRegistry
- Object
-
- FeatureTypeRegistry
-
- AppSchemaFeatureTypeRegistry
-
public class AppSchemaFeatureTypeRegistry extends FeatureTypeRegistry
A registry of GeoToolsAttributeType
andAttributeDescriptor
lazily parsed from the EMFXSDTypeDefinition
andXSDElementDeclaration
added throughFeatureTypeRegistry.addSchemas(SchemaIndex)
.This class is meant to be used in conjunction with
EmfComplexFeatureReader
. SeeAppSchemaDataAccessConfigurator
Usage:
FeatureTypeRegistry registry = new FeatureTypeRegistry(); EmfComplexFeatureReader schemaParser = EmfComplexFeatureReader.newInstance(); URL schemaLocation1 = ... SchemaIndex schemas = schemaParser.parse(schemaLocation1, null); registry.addSchemas(schemas); URL schemaLocation2 = ... schemas = schemaParser.parse(schemaLocation1, null); registry.addSchemas(schemas); Name typeName = ... FeatureType ft = (FeatureType)registry.getAttributeType(typeName);
- Author:
- Gabriel Roldan
-
-
Constructor Summary
Constructors Constructor Description AppSchemaFeatureTypeRegistry()
AppSchemaFeatureTypeRegistry(NamespaceSupport namespaces)
-
Method Summary
-
Methods inherited from class FeatureTypeRegistry
addSchemas, disposeSchemaIndexes, getAttributeType, getAttributeType, getDescriptor, getXmlAttributeType, importSchema, register
-
-
-
-
Constructor Detail
-
AppSchemaFeatureTypeRegistry
public AppSchemaFeatureTypeRegistry()
-
AppSchemaFeatureTypeRegistry
public AppSchemaFeatureTypeRegistry(NamespaceSupport namespaces)
-
-