org.geotools.data.complex.config
Class FeatureTypeRegistry
java.lang.Object
org.geotools.data.complex.config.FeatureTypeRegistry
public class FeatureTypeRegistry
- extends java.lang.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 EmfAppSchemaReader
. See
AppSchemaDataAccessConfigurator
Usage:
FeatureTypeRegistry registry = new FeatureTypeRegistry();
EmfAppSchemaReader schemaParser = EmfAppSchemaReader.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);
- Version:
- $Id: FeatureTypeRegistry.java 35576 2010-05-25 05:47:07Z bencaradocdavies $
- Author:
- Gabriel Roldan
Method Summary |
void |
addSchemas(SchemaIndex schemaIndex)
|
org.opengis.feature.type.AttributeType |
getAttributeType(org.opengis.feature.type.Name typeName)
|
org.opengis.feature.type.AttributeType |
getAttributeType(org.opengis.feature.type.Name typeName,
org.opengis.feature.type.GeometryType geomType,
java.util.List<AttributeMapping> attMappings)
|
org.opengis.feature.type.AttributeDescriptor |
getDescriptor(org.opengis.feature.type.Name descriptorName)
|
org.opengis.feature.type.AttributeDescriptor |
getDescriptor(org.opengis.feature.type.Name descriptorName,
org.opengis.feature.type.GeometryType geomType,
java.util.List<AttributeMapping> attMappings)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FeatureTypeRegistry
public FeatureTypeRegistry()
FeatureTypeRegistry
public FeatureTypeRegistry(org.xml.sax.helpers.NamespaceSupport namespaces)
addSchemas
public void addSchemas(SchemaIndex schemaIndex)
getDescriptor
public org.opengis.feature.type.AttributeDescriptor getDescriptor(org.opengis.feature.type.Name descriptorName,
org.opengis.feature.type.GeometryType geomType,
java.util.List<AttributeMapping> attMappings)
getDescriptor
public org.opengis.feature.type.AttributeDescriptor getDescriptor(org.opengis.feature.type.Name descriptorName)
getAttributeType
public org.opengis.feature.type.AttributeType getAttributeType(org.opengis.feature.type.Name typeName)
getAttributeType
public org.opengis.feature.type.AttributeType getAttributeType(org.opengis.feature.type.Name typeName,
org.opengis.feature.type.GeometryType geomType,
java.util.List<AttributeMapping> attMappings)
Copyright © 1996-2010 Geotools. All Rights Reserved.