org.deegree.gml.schema
Class GMLAppSchemaReader

java.lang.Object
  extended by org.deegree.gml.schema.GMLAppSchemaReader

public class GMLAppSchemaReader
extends Object

Provides access to the AppSchema defined in one or more GML schema documents.

Note that the generated AppSchema only contains user-defined feature types, i.e. all feature base types from the GML namespace (e.g. gml:_Feature or gml:FeatureCollection) are ignored. This follows the idea that working with AppSchema objects should not involve GML (and GML-version) specific details (such as the mentioned GML feature types).

Version:
$Revision: 31896 $, $Date: 2011-09-15 15:12:23 +0200 (Thu, 15 Sep 2011) $
Author:
Markus Schneider , last edited by: $Author: mschneider $
See Also:
AppSchema

Constructor Summary
GMLAppSchemaReader(GMLVersion gmlVersion, Map<String,String> namespaceHints, File schemaFile)
          Creates a new GMLAppSchemaReader from the given schema file (which may be a directory).
GMLAppSchemaReader(GMLVersion gmlVersion, Map<String,String> namespaceHints, LSInput... inputs)
          Creates a new GMLAppSchemaReader from the given LSInputs.
GMLAppSchemaReader(GMLVersion gmlVersion, Map<String,String> namespaceHints, String... schemaUrls)
          Creates a new GMLAppSchemaReader from the given schema URL(s).
 
Method Summary
 AppSchema extractAppSchema()
           
 Set<QName> getAllEncounteredTypes()
          After parsing, this method can be called to find out all referenced types that have been encountered (for debugging).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMLAppSchemaReader

public GMLAppSchemaReader(GMLVersion gmlVersion,
                          Map<String,String> namespaceHints,
                          String... schemaUrls)
                   throws ClassCastException,
                          ClassNotFoundException,
                          InstantiationException,
                          IllegalAccessException
Creates a new GMLAppSchemaReader from the given schema URL(s).

Parameters:
gmlVersion - gml version of the schema files, can be null (auto-detect GML version)
namespaceHints - optional hints (key: prefix, value: namespaces) for generating 'nice' qualified feature type and property type names, may be null
schemaUrls -
Throws:
ClassCastException
ClassNotFoundException
InstantiationException
IllegalAccessException

GMLAppSchemaReader

public GMLAppSchemaReader(GMLVersion gmlVersion,
                          Map<String,String> namespaceHints,
                          LSInput... inputs)
                   throws ClassCastException,
                          ClassNotFoundException,
                          InstantiationException,
                          IllegalAccessException
Creates a new GMLAppSchemaReader from the given LSInputs.

Parameters:
gmlVersion - gml version of the schema files, can be null (auto-detect GML version)
namespaceHints - optional hints (key: prefix, value: namespaces) for generating 'nice' qualified feature type and property type names, may be null
inputs -
Throws:
ClassCastException
ClassNotFoundException
InstantiationException
IllegalAccessException

GMLAppSchemaReader

public GMLAppSchemaReader(GMLVersion gmlVersion,
                          Map<String,String> namespaceHints,
                          File schemaFile)
                   throws ClassCastException,
                          ClassNotFoundException,
                          InstantiationException,
                          IllegalAccessException,
                          MalformedURLException,
                          UnsupportedEncodingException
Creates a new GMLAppSchemaReader from the given schema file (which may be a directory).

Parameters:
gmlVersion - gml version of the schema files, can be null (auto-detect GML version)
namespaceHints - optional hints (key: prefix, value: namespaces) for generating 'nice' qualified feature type and property type names, may be null
schemaFile -
Throws:
ClassCastException
ClassNotFoundException
InstantiationException
IllegalAccessException
MalformedURLException
UnsupportedEncodingException
Method Detail

extractAppSchema

public AppSchema extractAppSchema()

getAllEncounteredTypes

public Set<QName> getAllEncounteredTypes()
After parsing, this method can be called to find out all referenced types that have been encountered (for debugging).

Returns:


Copyright © 2011. All Rights Reserved.