Package org.geotools.data.complex.util
Class EmfComplexFeatureReader
- Object
- 
- EmfComplexFeatureReader
 
- 
 public class EmfComplexFeatureReader extends Object Parses an application schema given by a gtxmlConfigurationinto a set ofAttributeTypes andAttributeDescriptors.All the XSD schema locations that comprise the application schema are obtained from the main Configurationand its dependencies.Of particular interest might be the ApplicationSchemaConfigurationobject, which allows to provide the location of the root xsd schema for a given application schema.- Since:
- 2.4
- Author:
- Gabriel Roldan
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedEmfComplexFeatureReader()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringfindSchemaNamespace(URL location)Finds out the targetNamespace of the xsd schema referenced bylocationSchemaResolvergetResolver()static EmfComplexFeatureReadernewInstance()SchemaIndexparse(String nameSpace, String schemaLocation)Parses the schema referenced bylocationinto aSchemaIndexSchemaIndexparse(URL location)Parses the gml schema referenced bylocationinto aSchemaIndexSchemaIndexparse(Configuration configuration)voidsetResolver(URL catalogLocation)Set resolver based on catalog.voidsetResolver(SchemaResolver resolver)
 
- 
- 
- 
Method Detail- 
getResolverpublic SchemaResolver getResolver() 
 - 
setResolverpublic void setResolver(SchemaResolver resolver) 
 - 
setResolverpublic void setResolver(URL catalogLocation) Set resolver based on catalog. Use this for testing only, because it does not support cached downloads.
 - 
parsepublic SchemaIndex parse(Configuration configuration) throws IOException - Parameters:
- configuration- configuration object used to access the XSDSchema to parse. This configuration object might contain- Bindings
- Throws:
- IOException
 
 - 
parsepublic SchemaIndex parse(String nameSpace, String schemaLocation) throws IOException Parses the schema referenced bylocationinto aSchemaIndex- Parameters:
- nameSpace- the location namespace
- schemaLocation- 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- locationor one of its dependencies.
 
 - 
parsepublic SchemaIndex parse(URL location) throws IOException Parses the gml schema referenced bylocationinto aSchemaIndex- 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- locationor one of its dependencies.
 
 - 
findSchemaNamespacepublic String findSchemaNamespace(URL location) throws IOException Finds out the targetNamespace of the xsd schema referenced bylocation- Throws:
- IOException
 
 - 
newInstancepublic static EmfComplexFeatureReader newInstance() 
 
- 
 
-