org.deegree.gml.schema
Class GMLSchemaInfoSet

java.lang.Object
  extended by org.deegree.commons.xml.schema.XMLSchemaInfoSet
      extended by org.deegree.gml.schema.GMLSchemaInfoSet

public class GMLSchemaInfoSet
extends XMLSchemaInfoSet

Provides access to the object element declarations of a GML schema (both application and GML core schema objects).

An element declaration is an object element declaration, if it is in one or more of GML's object substitution groups. In the latest version of GML (3.2.1), eight (?) classes of GML objects exist:

Version:
$Revision:$, $Date:$
Author:
Markus Schneider , last edited by: $Author:$

Field Summary
 
Fields inherited from class org.deegree.commons.xml.schema.XMLSchemaInfoSet
xmlSchema
 
Constructor Summary
GMLSchemaInfoSet(GMLVersion version, java.lang.String... schemaUrls)
          Creates a new GMLSchemaInfoSet instance for the given GML version and using the specified schemas.
 
Method Summary
 org.apache.xerces.xs.XSElementDeclaration getAbstractCurveSegmentElementDeclaration()
          Returns the element declaration of the abstract curve segment element, i.e.
 org.apache.xerces.xs.XSElementDeclaration getAbstractFeatureElementDeclaration()
          Returns the element declaration of the abstract feature element, i.e.
 org.apache.xerces.xs.XSElementDeclaration getAbstractGeometryElementDeclaration()
          Returns the element declaration of the abstract geometry element, i.e.
 org.apache.xerces.xs.XSElementDeclaration getAbstractGMLElementDeclaration()
          Returns the element declaration of the abstract GML element, i.e.
 org.apache.xerces.xs.XSElementDeclaration getAbstractObjectElementDeclaration()
          Returns the element declaration of the abstract object element, i.e.
 org.apache.xerces.xs.XSElementDeclaration getAbstractSurfacePatchElementDeclaration()
          Returns the element declaration of the abstract surface patch element, i.e.
 java.util.SortedSet<java.lang.String> getAppNamespaces()
          Returns all application namespaces that participate in this infoset.
 java.util.List<org.apache.xerces.xs.XSElementDeclaration> getCoverageElementDeclarations(java.lang.String namespace, boolean onlyConcrete)
           
 java.util.List<org.apache.xerces.xs.XSElementDeclaration> getCRSElementDeclarations(java.lang.String namespace, boolean onlyConcrete)
           
 java.util.List<org.apache.xerces.xs.XSElementDeclaration> getFeatureCollectionElementDeclarations(java.lang.String namespace, boolean onlyConcrete)
           
 java.util.List<org.apache.xerces.xs.XSElementDeclaration> getFeatureElementDeclarations(java.lang.String namespace, boolean onlyConcrete)
           
 java.util.List<org.apache.xerces.xs.XSTypeDefinition> getFeatureTypeDefinitions(java.lang.String namespace, boolean onlyConcrete)
           
 org.apache.xerces.xs.XSElementDeclaration getGeometryElement(javax.xml.namespace.QName elName)
           
 java.util.List<org.apache.xerces.xs.XSElementDeclaration> getGeometryElementDeclarations(java.lang.String namespace, boolean onlyConcrete)
           
 java.util.List<org.apache.xerces.xs.XSElementDeclaration> getGmlElementDeclarations(java.lang.String namespace, boolean onlyConcrete)
           
 GMLObjectPropertyType getGMLPropertyDecl(org.apache.xerces.xs.XSElementDeclaration elDecl, javax.xml.namespace.QName ptName, int minOccurs, int maxOccurs, java.util.List<PropertyType> ptSubstitutions)
          Checks the given element declaration and returns a GMLObjectPropertyType if it defines a GML object property or GML reference property.
 java.util.List<org.apache.xerces.xs.XSElementDeclaration> getObjectElementDeclarations(java.lang.String namespace, boolean onlyConcrete)
           
 java.util.List<org.apache.xerces.xs.XSElementDeclaration> getStyleElementDeclarations(java.lang.String namespace, boolean onlyConcrete)
           
 java.util.List<org.apache.xerces.xs.XSElementDeclaration> getTimeObjectElementDeclarations(java.lang.String namespace, boolean onlyConcrete)
           
 java.util.List<org.apache.xerces.xs.XSElementDeclaration> getTopologyElementDeclarations(java.lang.String namespace, boolean onlyConcrete)
           
 java.util.List<org.apache.xerces.xs.XSElementDeclaration> getValueElementDeclarations(java.lang.String namespace, boolean onlyConcrete)
           
 GMLVersion getVersion()
          Returns the GML version used for the infoset.
static boolean isGMLNamespace(java.lang.String ns)
          Returns whether the given namespace is a GML core namespace.
 
Methods inherited from class org.deegree.commons.xml.schema.XMLSchemaInfoSet
getComponentLocations, getNamespacePrefixes, getNamespaces, getSchemaNamespaces, getSubstitutions, getSubstitutions, getSubtypes, getXSModel, loadModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMLSchemaInfoSet

public GMLSchemaInfoSet(GMLVersion version,
                        java.lang.String... schemaUrls)
                 throws java.lang.ClassCastException,
                        java.lang.ClassNotFoundException,
                        java.lang.InstantiationException,
                        java.lang.IllegalAccessException
Creates a new GMLSchemaInfoSet instance for the given GML version and using the specified schemas.

Parameters:
version -
schemaUrls -
Throws:
java.lang.ClassCastException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
Method Detail

getVersion

public GMLVersion getVersion()
Returns the GML version used for the infoset.

Returns:
the GML version used for the infoset, never null

isGMLNamespace

public static boolean isGMLNamespace(java.lang.String ns)
Returns whether the given namespace is a GML core namespace.

Parameters:
ns - namespace to check, may be null
Returns:
true, if it is a GML core namespace, false otherwise

getAppNamespaces

public java.util.SortedSet<java.lang.String> getAppNamespaces()
Returns all application namespaces that participate in this infoset.

This excludes all namespaces that are imported by the GML core schemas.

Returns:
all application namespaces, never null

getAbstractObjectElementDeclaration

public org.apache.xerces.xs.XSElementDeclaration getAbstractObjectElementDeclaration()
Returns the element declaration of the abstract object element, i.e. {http://www.opengis.net/gml}_Object (GML 3.0 to 3.1) or {http://www.opengis.net/gml/3.2}AbstractObject (GML 3.2).

Returns:
declaration object of the abstract object element, may be null (for GML 2)

getAbstractGMLElementDeclaration

public org.apache.xerces.xs.XSElementDeclaration getAbstractGMLElementDeclaration()
Returns the element declaration of the abstract GML element, i.e. {http://www.opengis.net/gml}_GML (GML 3.0 to 3.1) or {http://www.opengis.net/gml/3.2}AbstractGML (GML 3.2).

Returns:
declaration object of the abstract GML element, may be null (for GML 2)

getAbstractFeatureElementDeclaration

public org.apache.xerces.xs.XSElementDeclaration getAbstractFeatureElementDeclaration()
Returns the element declaration of the abstract feature element, i.e. {http://www.opengis.net/gml}_Feature (GML 2 to 3.1) or {http://www.opengis.net/gml/3.2}AbstractFeature (GML 3.2).

Returns:
declaration object of the abstract feature element

getAbstractGeometryElementDeclaration

public org.apache.xerces.xs.XSElementDeclaration getAbstractGeometryElementDeclaration()
Returns the element declaration of the abstract geometry element, i.e. {http://www.opengis.net/gml}_Geometry (GML 2 to 3.1) or {http://www.opengis.net/gml/3.2}AbstractGeometry (GML 3.2).

Returns:
declaration object of the abstract geometry element

getAbstractCurveSegmentElementDeclaration

public org.apache.xerces.xs.XSElementDeclaration getAbstractCurveSegmentElementDeclaration()
Returns the element declaration of the abstract curve segment element, i.e. {http://www.opengis.net/gml}_CurveSegment (GML 3 to 3.1) or {http://www.opengis.net/gml/3.2}AbstractCurveSegment (GML 3.2).

Returns:
declaration object of the abstract curve segment element, may be null (for GML 2)

getAbstractSurfacePatchElementDeclaration

public org.apache.xerces.xs.XSElementDeclaration getAbstractSurfacePatchElementDeclaration()
Returns the element declaration of the abstract surface patch element, i.e. {http://www.opengis.net/gml}_SurfacePatch (GML 3 to 3.1) or {http://www.opengis.net/gml/3.2}AbstractSurfacePatch (GML 3.2).

Returns:
element declaration object of the abstract geometry element, may be null (for GML 2)

getObjectElementDeclarations

public java.util.List<org.apache.xerces.xs.XSElementDeclaration> getObjectElementDeclarations(java.lang.String namespace,
                                                                                              boolean onlyConcrete)

getGmlElementDeclarations

public java.util.List<org.apache.xerces.xs.XSElementDeclaration> getGmlElementDeclarations(java.lang.String namespace,
                                                                                           boolean onlyConcrete)

getFeatureElementDeclarations

public java.util.List<org.apache.xerces.xs.XSElementDeclaration> getFeatureElementDeclarations(java.lang.String namespace,
                                                                                               boolean onlyConcrete)

getFeatureTypeDefinitions

public java.util.List<org.apache.xerces.xs.XSTypeDefinition> getFeatureTypeDefinitions(java.lang.String namespace,
                                                                                       boolean onlyConcrete)

getFeatureCollectionElementDeclarations

public java.util.List<org.apache.xerces.xs.XSElementDeclaration> getFeatureCollectionElementDeclarations(java.lang.String namespace,
                                                                                                         boolean onlyConcrete)

getGeometryElementDeclarations

public java.util.List<org.apache.xerces.xs.XSElementDeclaration> getGeometryElementDeclarations(java.lang.String namespace,
                                                                                                boolean onlyConcrete)

getValueElementDeclarations

public java.util.List<org.apache.xerces.xs.XSElementDeclaration> getValueElementDeclarations(java.lang.String namespace,
                                                                                             boolean onlyConcrete)

getTopologyElementDeclarations

public java.util.List<org.apache.xerces.xs.XSElementDeclaration> getTopologyElementDeclarations(java.lang.String namespace,
                                                                                                boolean onlyConcrete)

getCRSElementDeclarations

public java.util.List<org.apache.xerces.xs.XSElementDeclaration> getCRSElementDeclarations(java.lang.String namespace,
                                                                                           boolean onlyConcrete)

getTimeObjectElementDeclarations

public java.util.List<org.apache.xerces.xs.XSElementDeclaration> getTimeObjectElementDeclarations(java.lang.String namespace,
                                                                                                  boolean onlyConcrete)

getCoverageElementDeclarations

public java.util.List<org.apache.xerces.xs.XSElementDeclaration> getCoverageElementDeclarations(java.lang.String namespace,
                                                                                                boolean onlyConcrete)

getStyleElementDeclarations

public java.util.List<org.apache.xerces.xs.XSElementDeclaration> getStyleElementDeclarations(java.lang.String namespace,
                                                                                             boolean onlyConcrete)

getGeometryElement

public org.apache.xerces.xs.XSElementDeclaration getGeometryElement(javax.xml.namespace.QName elName)

getGMLPropertyDecl

public GMLObjectPropertyType getGMLPropertyDecl(org.apache.xerces.xs.XSElementDeclaration elDecl,
                                                javax.xml.namespace.QName ptName,
                                                int minOccurs,
                                                int maxOccurs,
                                                java.util.List<PropertyType> ptSubstitutions)
Checks the given element declaration and returns a GMLObjectPropertyType if it defines a GML object property or GML reference property.

Parameters:
elDecl -
ptName -
minOccurs -
maxOccurs -
ptSubstitutions -
Returns:
corresponding GMLObjectPropertyType or null if it's not a GML object property


Copyright © 2011. All Rights Reserved.