org.geotools.data.complex.config
Class FeatureTypeRegistry

Object
  extended by 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

Constructor Summary
FeatureTypeRegistry(FeatureTypeFactory typeFactory, FeatureTypeRegistryHelper helper)
           
FeatureTypeRegistry(NamespaceSupport namespaces, FeatureTypeFactory typeFactory, FeatureTypeRegistryHelper helper)
           
FeatureTypeRegistry(NamespaceSupport namespaces, FeatureTypeFactory typeFactory, FeatureTypeRegistryHelper helper, boolean includeAttributes)
           
 
Method Summary
 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)
           
protected  void onCreateFoundationTypes()
           
 void register(AttributeType type)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
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)

onCreateFoundationTypes

protected void onCreateFoundationTypes()

importSchema

protected void importSchema(Schema schema)

getXmlAttributeType

public AttributeType getXmlAttributeType()


Copyright © 1996-2014 Geotools. All Rights Reserved.