deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.io.datastore.schema
Class MappedGMLSchema

java.lang.Object
  extended by org.deegree.framework.xml.schema.XMLSchema
      extended by org.deegree.model.feature.schema.GMLSchema
          extended by org.deegree.io.datastore.schema.MappedGMLSchema

public class MappedGMLSchema
extends GMLSchema

Represents a GML application schema document which is annotated with mapping (persistence) information.

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Markus Schneider , last edited by: $Author: mschneider $

Field Summary
 
Fields inherited from class org.deegree.model.feature.schema.GMLSchema
featureTypeMap, substitutionMap
 
Constructor Summary
MappedGMLSchema(java.net.URI targetNamespace, SimpleTypeDeclaration[] simpleTypes, ComplexTypeDeclaration[] complexTypes, ElementDeclaration[] elementDeclarations, java.lang.String namespacePrefix, java.net.URI defaultSRS, DatastoreConfiguration backendConfiguration, boolean suppressXLinkOutput, MappedGMLSchemaDocument doc)
          Creates a new MappedGMLSchema instance from the given parameters.
 
Method Summary
protected  MappedFeatureType buildFeatureType(ElementDeclaration element)
          Builds a MappedFeatureType from the given element declaration.
protected  PropertyType buildPropertyTypeRealName(MappedElementDeclaration element, java.lang.String table, QualifiedName propertyName)
           
 Datastore getDatastore()
          Returns the Datastore instance that handles this schema.
 CoordinateSystem getDefaultCS()
          Returns the default CoordinateSystem for all geometry properties in the schema.
 java.net.URI getDefaultSRS()
          Returns the default SRS for all geometry properties in the schema.
 MappedGMLSchemaDocument getDocument()
          Returns the underlying GML Application Schema document.
 MappedFeatureType getFeatureType(QualifiedName qName)
          Looks up the FeatureType with the given QualifiedName.
 MappedFeatureType getFeatureType(java.lang.String localName)
          Looks up the FeatureType with the given name.
 MappedFeatureType[] getSubstitutions(FeatureType ft)
          Returns all non-abstract implementations of a given feature type that are defined in this schema.
 boolean suppressXLinkOutput()
          Returns whether GML output (of the associated datastore) will not use any XLinks.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class org.deegree.model.feature.schema.GMLSchema
buildFeatureTypeMap, buildPropertyType, buildSubstitutionMap, determinePropertyType, getFeatureTypes, getSubstitutables, hasSeveralImplementations, isValidSubstitution
 
Methods inherited from class org.deegree.framework.xml.schema.XMLSchema
getComplexTypeDeclaration, getComplexTypeDeclaration, getComplexTypeDeclarations, getElementDeclaration, getElementDeclaration, getElementDeclarations, getSimpleTypeDeclaration, getSimpleTypeDeclaration, getSimpleTypeDeclarations, getTargetNamespace, getTypeDeclaration, getTypeDeclaration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MappedGMLSchema

MappedGMLSchema(java.net.URI targetNamespace,
                SimpleTypeDeclaration[] simpleTypes,
                ComplexTypeDeclaration[] complexTypes,
                ElementDeclaration[] elementDeclarations,
                java.lang.String namespacePrefix,
                java.net.URI defaultSRS,
                DatastoreConfiguration backendConfiguration,
                boolean suppressXLinkOutput,
                MappedGMLSchemaDocument doc)
          throws XMLParsingException,
                 UnknownCRSException
Creates a new MappedGMLSchema instance from the given parameters.

Parameters:
targetNamespace -
simpleTypes -
complexTypes -
elementDeclarations -
namespacePrefix -
defaultSRS -
backendConfiguration -
suppressXLinkOutput -
doc -
Throws:
XMLParsingException
UnknownCRSException
XMLSchemaException
Method Detail

getDocument

public MappedGMLSchemaDocument getDocument()
Returns the underlying GML Application Schema document.

Returns:
the underlying GML Application Schema document

getDatastore

public Datastore getDatastore()
Returns the Datastore instance that handles this schema.

Returns:
the Datastore instance that handles this schema

suppressXLinkOutput

public boolean suppressXLinkOutput()
Returns whether GML output (of the associated datastore) will not use any XLinks.

Returns:
true, if the GML output will not use XLinks, false otherwise

getDefaultSRS

public java.net.URI getDefaultSRS()
Returns the default SRS for all geometry properties in the schema.

Returns:
the default SRS for all geometry properties in the schema

getDefaultCS

public CoordinateSystem getDefaultCS()
Returns the default CoordinateSystem for all geometry properties in the schema.

Returns:
the default CoordinateSystem for all geometry properties in the schema

getFeatureType

public MappedFeatureType getFeatureType(QualifiedName qName)
Looks up the FeatureType with the given QualifiedName.

Overrides:
getFeatureType in class GMLSchema
Parameters:
qName - the QualifiedName to look up
Returns:
the FeatureType, if it is defined in the document, null otherwise

getFeatureType

public MappedFeatureType getFeatureType(java.lang.String localName)
Looks up the FeatureType with the given name.

Overrides:
getFeatureType in class GMLSchema
Parameters:
localName - the name to look up
Returns:
the FeatureType, if it is defined in the document, null otherwise

buildFeatureType

protected MappedFeatureType buildFeatureType(ElementDeclaration element)
                                      throws XMLParsingException,
                                             UnknownCRSException
Builds a MappedFeatureType from the given element declaration.

Overrides:
buildFeatureType in class GMLSchema
Parameters:
element -
Returns:
feature type with persistence information
Throws:
XMLParsingException
UnknownCRSException

buildPropertyTypeRealName

protected PropertyType buildPropertyTypeRealName(MappedElementDeclaration element,
                                                 java.lang.String table,
                                                 QualifiedName propertyName)
                                          throws XMLParsingException,
                                                 UnknownCRSException
Throws:
XMLParsingException
UnknownCRSException

getSubstitutions

public MappedFeatureType[] getSubstitutions(FeatureType ft)
Returns all non-abstract implementations of a given feature type that are defined in this schema.

Overrides:
getSubstitutions in class GMLSchema
Parameters:
ft - must be a MappedFeatureType
Returns:
all non-abstract implementations of the feature type

toString

public java.lang.String toString()
Description copied from class: GMLSchema
Returns a string representation of the object.

Overrides:
toString in class GMLSchema
Returns:
a string representation of the object

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org