Class 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 EmfComplexFeatureReader. See AppSchemaDataAccessConfigurator

    Usage:

     
     FeatureTypeRegistry registry = new FeatureTypeRegistry();
     EmfComplexFeatureReader schemaParser = EmfComplexFeatureReader.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 Detail

      • AppSchemaFeatureTypeRegistry

        public AppSchemaFeatureTypeRegistry()
      • AppSchemaFeatureTypeRegistry

        public AppSchemaFeatureTypeRegistry​(NamespaceSupport namespaces)