Class FeatureTypeRegistry
- Object
-
- FeatureTypeRegistry
-
- Direct Known Subclasses:
AppSchemaFeatureTypeRegistry
public class FeatureTypeRegistry extends Object
A registry of GeoToolsAttributeType
andAttributeDescriptor
lazily parsed from the EMFXSDTypeDefinition
andXSDElementDeclaration
added throughaddSchemas(SchemaIndex)
.This class is meant to be used in conjunction with
EmfComplexFeatureReader
.- Author:
- Gabriel Roldan, Niels Charlier
-
-
Constructor Summary
Constructors Constructor Description FeatureTypeRegistry(FeatureTypeFactory typeFactory, FeatureTypeRegistryConfiguration helper)
FeatureTypeRegistry(NamespaceSupport namespaces, FeatureTypeFactory typeFactory, FeatureTypeRegistryConfiguration helper)
FeatureTypeRegistry(NamespaceSupport namespaces, FeatureTypeFactory typeFactory, FeatureTypeRegistryConfiguration helper, boolean includeAttributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSchemas(SchemaIndex schemaIndex)
void
disposeSchemaIndexes()
Destroy all schema Indexes.AttributeType
getAttributeType(Name typeName)
AttributeType
getAttributeType(Name typeName, XSDTypeDefinition xsdType, CoordinateReferenceSystem crs)
AttributeDescriptor
getDescriptor(Name descriptorName, CoordinateReferenceSystem crs)
AttributeType
getXmlAttributeType()
protected void
importSchema(Schema schema)
void
register(AttributeType type)
-
-
-
Constructor Detail
-
FeatureTypeRegistry
public FeatureTypeRegistry(FeatureTypeFactory typeFactory, FeatureTypeRegistryConfiguration helper)
-
FeatureTypeRegistry
public FeatureTypeRegistry(NamespaceSupport namespaces, FeatureTypeFactory typeFactory, FeatureTypeRegistryConfiguration helper)
-
FeatureTypeRegistry
public FeatureTypeRegistry(NamespaceSupport namespaces, FeatureTypeFactory typeFactory, FeatureTypeRegistryConfiguration helper, boolean includeAttributes)
-
-
Method Detail
-
addSchemas
public void addSchemas(SchemaIndex schemaIndex)
-
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
public AttributeDescriptor getDescriptor(Name descriptorName, CoordinateReferenceSystem crs)
-
getAttributeType
public AttributeType getAttributeType(Name typeName)
-
getAttributeType
public AttributeType getAttributeType(Name typeName, XSDTypeDefinition xsdType, CoordinateReferenceSystem crs)
-
register
public void register(AttributeType type)
-
importSchema
protected void importSchema(Schema schema)
-
getXmlAttributeType
public AttributeType getXmlAttributeType()
-
-