|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.gml.schema.GMLAppSchemaReader
public class GMLAppSchemaReader
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).
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 LSInput s. |
|
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 |
---|
public GMLAppSchemaReader(GMLVersion gmlVersion, Map<String,String> namespaceHints, String... schemaUrls) throws ClassCastException, ClassNotFoundException, InstantiationException, IllegalAccessException
GMLAppSchemaReader
from the given schema URL(s).
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 nullschemaUrls
-
ClassCastException
ClassNotFoundException
InstantiationException
IllegalAccessException
public GMLAppSchemaReader(GMLVersion gmlVersion, Map<String,String> namespaceHints, LSInput... inputs) throws ClassCastException, ClassNotFoundException, InstantiationException, IllegalAccessException
GMLAppSchemaReader
from the given LSInput
s.
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 nullinputs
-
ClassCastException
ClassNotFoundException
InstantiationException
IllegalAccessException
public GMLAppSchemaReader(GMLVersion gmlVersion, Map<String,String> namespaceHints, File schemaFile) throws ClassCastException, ClassNotFoundException, InstantiationException, IllegalAccessException, MalformedURLException, UnsupportedEncodingException
GMLAppSchemaReader
from the given schema file (which may be a directory).
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 nullschemaFile
-
ClassCastException
ClassNotFoundException
InstantiationException
IllegalAccessException
MalformedURLException
UnsupportedEncodingException
Method Detail |
---|
public AppSchema extractAppSchema()
public Set<QName> getAllEncounteredTypes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |