Class FeatureTypeRegistry
Object
FeatureTypeRegistry
- Direct Known Subclasses:
AppSchemaFeatureTypeRegistry
A registry of GeoTools
AttributeType
and AttributeDescriptor
lazily parsed from the EMF
XSDTypeDefinition
and XSDElementDeclaration
added through addSchemas(SchemaIndex)
.
This class is meant to be used in conjunction with EmfComplexFeatureReader
.
- Author:
- Gabriel Roldan, Niels Charlier
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureTypeRegistry
(FeatureTypeFactory typeFactory, FeatureTypeRegistryConfiguration helper) FeatureTypeRegistry
(NamespaceSupport namespaces, FeatureTypeFactory typeFactory, FeatureTypeRegistryConfiguration helper) FeatureTypeRegistry
(NamespaceSupport namespaces, FeatureTypeFactory typeFactory, FeatureTypeRegistryConfiguration helper, boolean includeAttributes) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSchemas
(SchemaIndex schemaIndex) void
Destroy all schema Indexes.getAttributeType
(Name typeName) getAttributeType
(Name typeName, XSDTypeDefinition xsdType, CoordinateReferenceSystem crs) getDescriptor
(Name descriptorName, CoordinateReferenceSystem crs) protected void
importSchema
(Schema schema) void
register
(AttributeType type)
-
Constructor Details
-
FeatureTypeRegistry
-
FeatureTypeRegistry
public FeatureTypeRegistry(NamespaceSupport namespaces, FeatureTypeFactory typeFactory, FeatureTypeRegistryConfiguration helper) -
FeatureTypeRegistry
public FeatureTypeRegistry(NamespaceSupport namespaces, FeatureTypeFactory typeFactory, FeatureTypeRegistryConfiguration helper, boolean includeAttributes)
-
-
Method Details
-
addSchemas
-
disposeSchemaIndexes
public void disposeSchemaIndexes()Destroy all schema Indexes. VERY important to that this is called to avoid memory leaks, because schema indexes are kept alive otherwise by static schema's and in this way keep other schema's alive -
getDescriptor
-
getAttributeType
-
getAttributeType
public AttributeType getAttributeType(Name typeName, XSDTypeDefinition xsdType, CoordinateReferenceSystem crs) -
register
-
importSchema
-
getXmlAttributeType
-