Package org.geotools.data.complex.config
Class AppSchemaFeatureTypeRegistry
Object
FeatureTypeRegistry
AppSchemaFeatureTypeRegistry
A registry of GeoTools
AttributeType and AttributeDescriptor lazily parsed from the EMF
XSDTypeDefinition and XSDElementDeclaration added through FeatureTypeRegistry.addSchemas(SchemaIndex).
This class is meant to be used in conjunction with EmfComplexFeatureReader. See
AppSchemaDataAccessConfigurator
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 -
Method Summary
Methods inherited from class FeatureTypeRegistry
addSchemas, disposeSchemaIndexes, getAttributeType, getAttributeType, getDescriptor, getXmlAttributeType, importSchema, register
-
Constructor Details
-
AppSchemaFeatureTypeRegistry
public AppSchemaFeatureTypeRegistry() -
AppSchemaFeatureTypeRegistry
-