|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.commons.xml.schema.XMLSchemaInfoSet org.deegree.gml.schema.GMLSchemaInfoSet
public class GMLSchemaInfoSet
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:
Field Summary |
---|
Fields inherited from class org.deegree.commons.xml.schema.XMLSchemaInfoSet |
---|
xsModel |
Constructor Summary | |
---|---|
GMLSchemaInfoSet(GMLVersion gmlVersion,
LSInput... inputs)
Creates a new GMLSchemaInfoSet instance for the given GML version and using the specified inputs. |
|
GMLSchemaInfoSet(GMLVersion version,
String... schemaUrls)
Creates a new GMLSchemaInfoSet instance for the given GML version and using the specified schemas. |
Method Summary | |
---|---|
static GMLVersion |
determineGMLVersion(XMLSchemaInfoSet xmlSchemaInfoSet)
Determines the GML version of the given XMLSchemaInfoSet heuristically. |
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. |
SortedSet<String> |
getAppNamespaces()
Returns all application namespaces that participate in this infoset. |
List<org.apache.xerces.xs.XSElementDeclaration> |
getCoverageElementDeclarations(String namespace,
boolean onlyConcrete)
|
List<org.apache.xerces.xs.XSElementDeclaration> |
getCRSElementDeclarations(String namespace,
boolean onlyConcrete)
|
List<org.apache.xerces.xs.XSElementDeclaration> |
getFeatureCollectionElementDeclarations(String namespace,
boolean onlyConcrete)
|
List<org.apache.xerces.xs.XSElementDeclaration> |
getFeatureElementDeclarations(String namespace,
boolean onlyConcrete)
|
List<org.apache.xerces.xs.XSTypeDefinition> |
getFeatureTypeDefinitions(String namespace,
boolean onlyConcrete)
|
org.apache.xerces.xs.XSElementDeclaration |
getGeometryElement(QName elName)
|
List<org.apache.xerces.xs.XSElementDeclaration> |
getGeometryElementDeclarations(String namespace,
boolean onlyConcrete)
|
List<org.apache.xerces.xs.XSElementDeclaration> |
getGmlElementDeclarations(String namespace,
boolean onlyConcrete)
|
ObjectPropertyType |
getGMLPropertyDecl(org.apache.xerces.xs.XSElementDeclaration elDecl,
QName ptName,
int minOccurs,
int maxOccurs,
List<PropertyType> ptSubstitutions)
Checks the given element declaration and returns a ObjectPropertyType if it defines a GML object property
or GML reference property. |
List<org.apache.xerces.xs.XSElementDeclaration> |
getObjectElementDeclarations(String namespace,
boolean onlyConcrete)
|
List<org.apache.xerces.xs.XSElementDeclaration> |
getStyleElementDeclarations(String namespace,
boolean onlyConcrete)
|
List<org.apache.xerces.xs.XSElementDeclaration> |
getTimeObjectElementDeclarations(String namespace,
boolean onlyConcrete)
|
List<org.apache.xerces.xs.XSElementDeclaration> |
getTopologyElementDeclarations(String namespace,
boolean onlyConcrete)
|
List<org.apache.xerces.xs.XSElementDeclaration> |
getValueElementDeclarations(String namespace,
boolean onlyConcrete)
|
GMLVersion |
getVersion()
Returns the GML version used for the infoset. |
static boolean |
isGMLNamespace(String ns)
Returns whether the given namespace is a GML core namespace. |
Methods inherited from class org.deegree.commons.xml.schema.XMLSchemaInfoSet |
---|
getComponentLocations, getElementDecl, getElementDecl, getNamespacePrefixes, getNamespaces, getSchemaNamespaces, getSubstitutions, getSubstitutions, getSubtypes, getTypeDef, getTypeDef, getXSModel, loadModel, loadModel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GMLSchemaInfoSet(GMLVersion version, String... schemaUrls) throws ClassCastException, ClassNotFoundException, InstantiationException, IllegalAccessException
GMLSchemaInfoSet
instance for the given GML version and using the specified schemas.
version
- gml version of the schema files, can be null (auto-detect GML version)schemaUrls
- URLs of the schema files to load, must not be null
ClassCastException
ClassNotFoundException
InstantiationException
IllegalAccessException
public GMLSchemaInfoSet(GMLVersion gmlVersion, LSInput... inputs) throws ClassCastException, ClassNotFoundException, InstantiationException, IllegalAccessException
GMLSchemaInfoSet
instance for the given GML version and using the specified inputs.
version
- gml version of the schema files, can be null (auto-detect GML version)inputs
- input objects forthe schema files to load, must not be null
ClassCastException
ClassNotFoundException
InstantiationException
IllegalAccessException
Method Detail |
---|
public static GMLVersion determineGMLVersion(XMLSchemaInfoSet xmlSchemaInfoSet) throws IllegalArgumentException
XMLSchemaInfoSet
heuristically.
xmlSchemaInfoSet
- XML schema, must not be null
null
IllegalArgumentException
- if the GML version cannot be determinedpublic GMLVersion getVersion()
null
public static boolean isGMLNamespace(String ns)
ns
- namespace to check, may be null
public SortedSet<String> getAppNamespaces()
This excludes all namespaces that are imported by the GML core schemas.
null
public org.apache.xerces.xs.XSElementDeclaration getAbstractObjectElementDeclaration()
{http://www.opengis.net/gml}_Object
(GML 3.0 to 3.1) or
{http://www.opengis.net/gml/3.2}AbstractObject
(GML 3.2).
null
(for GML 2)public org.apache.xerces.xs.XSElementDeclaration getAbstractGMLElementDeclaration()
{http://www.opengis.net/gml}_GML
(GML 3.0 to 3.1) or {http://www.opengis.net/gml/3.2}AbstractGML
(GML 3.2).
null
(for GML 2)public org.apache.xerces.xs.XSElementDeclaration getAbstractFeatureElementDeclaration()
{http://www.opengis.net/gml}_Feature
(GML 2 to 3.1) or
{http://www.opengis.net/gml/3.2}AbstractFeature
(GML 3.2).
public org.apache.xerces.xs.XSElementDeclaration getAbstractGeometryElementDeclaration()
{http://www.opengis.net/gml}_Geometry
(GML 2 to 3.1) or
{http://www.opengis.net/gml/3.2}AbstractGeometry
(GML 3.2).
public org.apache.xerces.xs.XSElementDeclaration getAbstractCurveSegmentElementDeclaration()
{http://www.opengis.net/gml}_CurveSegment
(GML 3 to 3.1) or
{http://www.opengis.net/gml/3.2}AbstractCurveSegment
(GML 3.2).
null
(for GML 2)public org.apache.xerces.xs.XSElementDeclaration getAbstractSurfacePatchElementDeclaration()
{http://www.opengis.net/gml}_SurfacePatch
(GML 3 to 3.1) or
{http://www.opengis.net/gml/3.2}AbstractSurfacePatch
(GML 3.2).
null
(for GML 2)public List<org.apache.xerces.xs.XSElementDeclaration> getObjectElementDeclarations(String namespace, boolean onlyConcrete)
public List<org.apache.xerces.xs.XSElementDeclaration> getGmlElementDeclarations(String namespace, boolean onlyConcrete)
public List<org.apache.xerces.xs.XSElementDeclaration> getFeatureElementDeclarations(String namespace, boolean onlyConcrete)
public List<org.apache.xerces.xs.XSTypeDefinition> getFeatureTypeDefinitions(String namespace, boolean onlyConcrete)
public List<org.apache.xerces.xs.XSElementDeclaration> getFeatureCollectionElementDeclarations(String namespace, boolean onlyConcrete)
public List<org.apache.xerces.xs.XSElementDeclaration> getGeometryElementDeclarations(String namespace, boolean onlyConcrete)
public List<org.apache.xerces.xs.XSElementDeclaration> getValueElementDeclarations(String namespace, boolean onlyConcrete)
public List<org.apache.xerces.xs.XSElementDeclaration> getTopologyElementDeclarations(String namespace, boolean onlyConcrete)
public List<org.apache.xerces.xs.XSElementDeclaration> getCRSElementDeclarations(String namespace, boolean onlyConcrete)
public List<org.apache.xerces.xs.XSElementDeclaration> getTimeObjectElementDeclarations(String namespace, boolean onlyConcrete)
public List<org.apache.xerces.xs.XSElementDeclaration> getCoverageElementDeclarations(String namespace, boolean onlyConcrete)
public List<org.apache.xerces.xs.XSElementDeclaration> getStyleElementDeclarations(String namespace, boolean onlyConcrete)
public org.apache.xerces.xs.XSElementDeclaration getGeometryElement(QName elName)
public ObjectPropertyType getGMLPropertyDecl(org.apache.xerces.xs.XSElementDeclaration elDecl, QName ptName, int minOccurs, int maxOccurs, List<PropertyType> ptSubstitutions)
ObjectPropertyType
if it defines a GML object property
or GML reference property.
elDecl
- ptName
- minOccurs
- maxOccurs
- ptSubstitutions
-
ObjectPropertyType
or null
if it's not a GML object property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |