|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.framework.xml.XMLFragment org.deegree.framework.xml.schema.XSDocument org.deegree.model.feature.schema.GMLSchemaDocument org.deegree.io.datastore.schema.MappedGMLSchemaDocument
public class MappedGMLSchemaDocument
Parser for GML schema documents which are annotated with mapping (persistence) information.
Field Summary |
---|
Fields inherited from class org.deegree.framework.xml.XMLFragment |
---|
DEFAULT_URL, nsContext, XLNNS |
Constructor Summary | |
---|---|
MappedGMLSchemaDocument()
|
Method Summary | |
---|---|
(package private) MappedGMLId |
extractGMLId(org.w3c.dom.Element annotationElement,
java.lang.String defaultTableName)
Extracts the "gml:id" information from the given "xs:annotation" element. |
protected MappedComplexTypeDeclaration |
parseComplexTypeDeclaration(org.w3c.dom.Element element)
Parses the given Element as an annotated 'xs:complexType' declaration (with mapping information). |
(package private) ConstantContent |
parseConstantContent(org.w3c.dom.Element element)
Parses the given element as a "deegreewfs:Constant" element. |
java.net.URI |
parseDefaultSRS(org.w3c.dom.Element annotationElement,
java.net.URI defaultValue)
Returns the value of the "deegreewfs:DefaultSRS" element. |
protected MappedElementDeclaration |
parseElementDeclaration(org.w3c.dom.Element element)
Parses the given Element as an annotated 'xs:element' declaration (with mapping information). |
(package private) FunctionParam |
parseFunctionParam(org.w3c.dom.Element element,
java.lang.String table)
Parses the given "deegreewfs:FunctionParam" element. |
java.util.LinkedList<Pair<PropertyType,QualifiedName>> |
parseGMLDefaultProps(org.w3c.dom.Element annotationElement,
java.lang.String table,
MappedGMLSchema schema)
|
int |
parseIdentityPart(org.w3c.dom.Element annotationElement)
Returns the value of the "deegreewfs:IdentityPart" element. |
boolean |
parseIsDeletable(org.w3c.dom.Element annotationElement)
Parses the 'deletable' status of the given feature type annotation element. |
boolean |
parseIsInsertable(org.w3c.dom.Element annotationElement)
Parses the 'insertable' status of the given feature type annotation element. |
boolean |
parseIsPseudoFeatureType(org.w3c.dom.Element annotationElement)
Parses the 'isPseudoFeatureType' element of the given feature type annotation element. |
boolean |
parseIsUpdatable(org.w3c.dom.Element annotationElement)
Parses the 'updatable' status of the given feature type annotation element. |
(package private) MappedFeaturePropertyType |
parseMappedFeaturePropertyType(org.w3c.dom.Element element,
QualifiedName propertyName,
int minOccurs,
int maxOccurs,
boolean isIdentityPart,
java.lang.String table,
boolean isReferenceType)
Extracts the mapping information for a feature property type from the given "xs:annotation" element. |
(package private) MappedGeometryPropertyType |
parseMappedGeometryPropertyType(org.w3c.dom.Element element,
QualifiedName propertyName,
QualifiedName typeName,
int type,
int minOccurs,
int maxOccurs,
boolean isIdentityPart,
java.lang.String table)
Extracts the mapping information for a geometry property type from the given "xs:annotation" element. |
MappedGMLSchema |
parseMappedGMLSchema()
Returns the class representation of the underlying mapped GML schema document. |
(package private) MappedSimplePropertyType |
parseMappedSimplePropertyType(org.w3c.dom.Element element,
QualifiedName propertyName,
int type,
int minOccurs,
int maxOccurs,
boolean isIdentityPart,
java.lang.String table)
Extracts the mapping information for a simple property type from the given "xs:annotation" element. |
java.net.URI[] |
parseOtherSRS(org.w3c.dom.Element annotationElement)
Returns the values of the "deegreewfs:OtherSRS" elements. |
(package private) SpecialContent |
parseSpecialContent(org.w3c.dom.Element element)
Parses the given "deegreewfs:SpecialContent" element. |
(package private) SQLFunctionCall |
parseSQLFunctionCall(org.w3c.dom.Element element,
java.lang.String table)
Parses the given element as a "deegreewfs:SQLFunctionCall" element. |
int |
parseVisible(org.w3c.dom.Element annotationElement)
Returns the value of the "deegreewfs:visible" element. |
Methods inherited from class org.deegree.model.feature.schema.GMLSchemaDocument |
---|
parseGMLSchema |
Methods inherited from class org.deegree.framework.xml.schema.XSDocument |
---|
extractComplexTypeDeclarations, extractElementDeclarations, extractSimpleTypeDeclarations, getComplexTypeDeclaration, getFullName, getTargetNamespace, parseSimpleTypeDeclaration, parseXMLSchema |
Methods inherited from class org.deegree.framework.xml.XMLFragment |
---|
getAsPrettyString, getAsString, getAttachedSchemas, getQualifiedName, getRootElement, getSystemId, hasSchema, load, load, load, parseQualifiedName, parseSimpleLink, prettyPrint, prettyPrint, resolve, setRootElement, setSystemId, setSystemId, toString, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MappedGMLSchemaDocument()
Method Detail |
---|
public MappedGMLSchema parseMappedGMLSchema() throws XMLParsingException, XMLSchemaException, UnknownCRSException
XMLParsingException
XMLSchemaException
UnknownCRSException
protected MappedElementDeclaration parseElementDeclaration(org.w3c.dom.Element element) throws XMLParsingException
Element
as an annotated 'xs:element' declaration (with mapping information).
parseElementDeclaration
in class XSDocument
element
- 'xs:element' declaration to be parsed
XMLParsingException
- if the document is not a valid XML Schema document or does not match the limitations of this classprotected MappedComplexTypeDeclaration parseComplexTypeDeclaration(org.w3c.dom.Element element) throws XMLParsingException
Element
as an annotated 'xs:complexType' declaration (with mapping information).
parseComplexTypeDeclaration
in class XSDocument
element
- 'xs:complexType' declaration to be parsed
XMLParsingException
- if the document is not a valid XML Schema document or does not match the limitations of this classMappedGMLId extractGMLId(org.w3c.dom.Element annotationElement, java.lang.String defaultTableName) throws XMLSchemaException
annotationElement
- "xs:annotation" elementdefaultTableName
- name for table if "deegreewfs:table"-element is missing
XMLSchemaException
- if a syntactic or semantic error is foundMappedSimplePropertyType parseMappedSimplePropertyType(org.w3c.dom.Element element, QualifiedName propertyName, int type, int minOccurs, int maxOccurs, boolean isIdentityPart, java.lang.String table) throws XMLSchemaException
element
- "xs:annotation" elementpropertyName
- name of the property (local part is used as default field name if it is not specified explicitly in
the "MappingField" element)type
- minOccurs
- maxOccurs
- isIdentityPart
- table
- name of the table that is associated with the feature type that this property belongs to
XMLSchemaException
- if a syntactic or semantic error is foundConstantContent parseConstantContent(org.w3c.dom.Element element) throws XMLParsingException
element
- "deegreewfs:Constant" element
XMLParsingException
SpecialContent parseSpecialContent(org.w3c.dom.Element element) throws XMLParsingException
element
- "deegreewfs:SpecialContent" element
XMLParsingException
SQLFunctionCall parseSQLFunctionCall(org.w3c.dom.Element element, java.lang.String table) throws XMLParsingException
element
- "deegreewfs:SQLFunctionCall" elementtable
-
XMLParsingException
FunctionParam parseFunctionParam(org.w3c.dom.Element element, java.lang.String table) throws XMLParsingException
Valid child elements:
element
- "deegreewfs:FunctionParam" elementtable
-
XMLParsingException
MappedGeometryPropertyType parseMappedGeometryPropertyType(org.w3c.dom.Element element, QualifiedName propertyName, QualifiedName typeName, int type, int minOccurs, int maxOccurs, boolean isIdentityPart, java.lang.String table) throws XMLSchemaException, UnknownCRSException
element
- "xs:annotation" elementpropertyName
- name of the property (local part is used as default field name if it is not specified explicitly in
the "MappingField" element)typeName
- type
- minOccurs
- maxOccurs
- isIdentityPart
- table
- name of the table that is associated with the feature type that this property belongs to
XMLSchemaException
- if a syntactic or semantic error is found
UnknownCRSException
MappedFeaturePropertyType parseMappedFeaturePropertyType(org.w3c.dom.Element element, QualifiedName propertyName, int minOccurs, int maxOccurs, boolean isIdentityPart, java.lang.String table, boolean isReferenceType) throws XMLSchemaException
element
- "xs:annotation" elementpropertyName
- name of the property (local part is used as default field name if it is not specified explicitly in
the "MappingField" element)minOccurs
- maxOccurs
- isIdentityPart
- table
- name of the table that is associated with the feature type that this property belongs toisReferenceType
- true, if this property is of type "gml:ReferenceType", false otherwise
XMLSchemaException
- if a syntactic or semantic error is foundpublic int parseVisible(org.w3c.dom.Element annotationElement) throws XMLParsingException
annotationElement
-
XMLParsingException
public boolean parseIsUpdatable(org.w3c.dom.Element annotationElement) throws XMLParsingException
annotationElement
-
XMLParsingException
public boolean parseIsDeletable(org.w3c.dom.Element annotationElement) throws XMLParsingException
annotationElement
-
XMLParsingException
public boolean parseIsInsertable(org.w3c.dom.Element annotationElement) throws XMLParsingException
annotationElement
-
XMLParsingException
public boolean parseIsPseudoFeatureType(org.w3c.dom.Element annotationElement) throws XMLParsingException
annotationElement
-
XMLParsingException
public int parseIdentityPart(org.w3c.dom.Element annotationElement) throws XMLParsingException
annotationElement
-
XMLParsingException
public java.net.URI parseDefaultSRS(org.w3c.dom.Element annotationElement, java.net.URI defaultValue) throws XMLParsingException
annotationElement
- defaultValue
-
XMLParsingException
public java.net.URI[] parseOtherSRS(org.w3c.dom.Element annotationElement) throws XMLParsingException
annotationElement
-
XMLParsingException
public java.util.LinkedList<Pair<PropertyType,QualifiedName>> parseGMLDefaultProps(org.w3c.dom.Element annotationElement, java.lang.String table, MappedGMLSchema schema) throws XMLParsingException
annotationElement
- table
- schema
-
XMLParsingException
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org