org.geotools.data.complex.config
Class AppSchemaFeatureTypeRegistry

Object
  extended by FeatureTypeRegistry
      extended by AppSchemaFeatureTypeRegistry

public class AppSchemaFeatureTypeRegistry
extends FeatureTypeRegistry

A registry of GeoTools AttributeType and AttributeDescriptor lazily parsed from the EMF XSDTypeDefinition and XSDElementDeclaration added through FeatureTypeRegistry.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);
 

Author:
Gabriel Roldan

Constructor Summary
AppSchemaFeatureTypeRegistry()
           
AppSchemaFeatureTypeRegistry(NamespaceSupport namespaces)
           
 
Method Summary
protected  void onCreateFoundationTypes()
           
 
Methods inherited from class FeatureTypeRegistry
addSchemas, disposeSchemaIndexes, getAttributeType, getAttributeType, getDescriptor, getXmlAttributeType, importSchema, register
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppSchemaFeatureTypeRegistry

public AppSchemaFeatureTypeRegistry()

AppSchemaFeatureTypeRegistry

public AppSchemaFeatureTypeRegistry(NamespaceSupport namespaces)
Method Detail

onCreateFoundationTypes

protected void onCreateFoundationTypes()
Overrides:
onCreateFoundationTypes in class FeatureTypeRegistry


Copyright © 1996-2014 Geotools. All Rights Reserved.