public class AppSchemaFeatureTypeRegistry extends FeatureTypeRegistry
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);
Constructor and Description |
---|
AppSchemaFeatureTypeRegistry() |
AppSchemaFeatureTypeRegistry(NamespaceSupport namespaces) |
addSchemas, disposeSchemaIndexes, getAttributeType, getAttributeType, getDescriptor, getXmlAttributeType, importSchema, register
public AppSchemaFeatureTypeRegistry()
public AppSchemaFeatureTypeRegistry(NamespaceSupport namespaces)
Copyright © 1996–2023 Geotools. All rights reserved.