org.geotools.data.complex.config
Class EmfComplexFeatureReader

Object
  extended by EmfComplexFeatureReader
Direct Known Subclasses:
EmfAppSchemaReader

public class EmfComplexFeatureReader
extends Object

Parses an application schema given by a gtxml Configuration into a set of AttributeTypes and AttributeDescriptors.

All the XSD schema locations that comprise the application schema are obtained from the main Configuration and its dependencies.

Of particular interest might be the ApplicationSchemaConfiguration object, which allows to provide the location of the root xsd schema for a given application schema.

Since:
2.4
Author:
Gabriel Roldan

Constructor Summary
protected EmfComplexFeatureReader()
           
 
Method Summary
 String findSchemaNamespace(URL location)
          Finds out the targetNamespace of the xsd schema referenced by location
 SchemaResolver getResolver()
           
static EmfComplexFeatureReader newInstance()
           
 SchemaIndex parse(Configuration configuration)
          Parses the GML schema represented by the configuration's schema location into a SchemaIndex.
 SchemaIndex parse(String nameSpace, String schemaLocation)
          Parses the schema referenced by location into a SchemaIndex
 SchemaIndex parse(URL location)
          Parses the gml schema referenced by location into a SchemaIndex
 void setResolver(SchemaResolver resolver)
           
 void setResolver(URL catalogLocation)
          Set resolver based on catalog.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmfComplexFeatureReader

protected EmfComplexFeatureReader()
Method Detail

getResolver

public SchemaResolver getResolver()

setResolver

public void setResolver(SchemaResolver resolver)

setResolver

public void setResolver(URL catalogLocation)
Set resolver based on catalog. Use this for testing only, because it does not support cached downloads.

Parameters:
catalogLocation -

parse

public SchemaIndex parse(Configuration configuration)
                  throws IOException
Parses the GML schema represented by the configuration's schema location into a SchemaIndex.

Parameters:
configuration - configuration object used to access the XSDSchema to parse. This configuration object might contain Bindings
Throws:
IOException

parse

public SchemaIndex parse(String nameSpace,
                         String schemaLocation)
                  throws IOException
Parses the schema referenced by location into a SchemaIndex

Parameters:
nameSpace - the location namespace
location - the physical location of the root xsd schema that comprises the application schema to parse.
Throws:
IOException - if any non recoverable problem occurs while parsing the application schema pointed out by location or one of its dependencies.

parse

public SchemaIndex parse(URL location)
                  throws IOException
Parses the gml schema referenced by location into a SchemaIndex

Parameters:
location - the physical location of the root xsd schema that comprises the application schema to parse.
Throws:
IOException - if any non recoverable problem occurs while parsing the application schema pointed out by location or one of its dependencies.

findSchemaNamespace

public String findSchemaNamespace(URL location)
                           throws IOException
Finds out the targetNamespace of the xsd schema referenced by location

Parameters:
location -
Returns:
Throws:
IOException

newInstance

public static EmfComplexFeatureReader newInstance()


Copyright © 1996-2014 Geotools. All Rights Reserved.