org.deegree.gml.feature.schema
Class ApplicationSchemaXSDDecoder

java.lang.Object
  extended by org.deegree.gml.feature.schema.ApplicationSchemaXSDDecoder

public class ApplicationSchemaXSDDecoder
extends java.lang.Object

Provides access to the FeatureType hierarchy defined in a GML schema document.

Note that the generated ApplicationSchema 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 ApplicationSchema objects should not involve GML (and GML-version) specific details (such as the mentioned GML feature types).

Version:
$Revision: 27997 $, $Date: 2010-11-10 21:17:25 +0100 (Mi, 10. Nov 2010) $
Author:
Markus Schneider , last edited by: $Author: mschneider $
See Also:
ApplicationSchema

Constructor Summary
ApplicationSchemaXSDDecoder(GMLVersion gmlVersion, java.util.Map<java.lang.String,java.lang.String> namespaceHints, java.io.File schemaFile)
          Creates a new ApplicationSchemaXSDDecoder from the given schema file (which may be a directory).
ApplicationSchemaXSDDecoder(GMLVersion gmlVersion, java.util.Map<java.lang.String,java.lang.String> namespaceHints, java.lang.String... schemaUrls)
          Creates a new ApplicationSchemaXSDDecoder from the given schema URL(s).
 
Method Summary
 ApplicationSchema extractFeatureTypeSchema()
           
 java.util.Set<javax.xml.namespace.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

ApplicationSchemaXSDDecoder

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

Parameters:
gmlVersion -
namespaceHints - optional hints (key: prefix, value: namespaces) for generating 'nice' qualified feature type and property type names, may be null
schemaUrls -
Throws:
java.lang.ClassCastException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException

ApplicationSchemaXSDDecoder

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

Parameters:
gmlVersion -
namespaceHints -
schemaFile -
Throws:
java.lang.ClassCastException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.net.MalformedURLException
java.io.UnsupportedEncodingException
Method Detail

extractFeatureTypeSchema

public ApplicationSchema extractFeatureTypeSchema()

getAllEncounteredTypes

public java.util.Set<javax.xml.namespace.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.