org.geotools.data.complex.config
Class FeatureTypeRegistry
Object
FeatureTypeRegistry
- Direct Known Subclasses:
- AppSchemaFeatureTypeRegistry
public class FeatureTypeRegistry
- extends Object
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
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FeatureTypeRegistry
public FeatureTypeRegistry(FeatureTypeFactory typeFactory,
FeatureTypeRegistryHelper helper)
FeatureTypeRegistry
public FeatureTypeRegistry(NamespaceSupport namespaces,
FeatureTypeFactory typeFactory,
FeatureTypeRegistryHelper helper)
FeatureTypeRegistry
public FeatureTypeRegistry(NamespaceSupport namespaces,
FeatureTypeFactory typeFactory,
FeatureTypeRegistryHelper helper,
boolean includeAttributes)
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)
onCreateFoundationTypes
protected void onCreateFoundationTypes()
importSchema
protected void importSchema(Schema schema)
getXmlAttributeType
public AttributeType getXmlAttributeType()
Copyright © 1996-2014 Geotools. All Rights Reserved.