| 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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(Element annotationElement,
                         String defaultTableName)
Extracts the "gml:id" information from the given "xs:annotation" element.  | 
protected  MappedComplexTypeDeclaration | 
parseComplexTypeDeclaration(Element element)
Parses the given Element as an annotated 'xs:complexType' declaration (with mapping information). | 
(package private)  ConstantContent | 
parseConstantContent(Element element)
Parses the given element as a "deegreewfs:Constant" element.  | 
protected  MappedElementDeclaration | 
parseElementDeclaration(Element element)
Parses the given Element as an annotated 'xs:element' declaration (with mapping information). | 
(package private)  FunctionParam | 
parseFunctionParam(Element element,
                                     String table)
Parses the given "deegreewfs:FunctionParam" element.  | 
 int | 
parseIdentityPart(Element annotationElement)
Returns the value of the "deegreewfs:IdentityPart" element.  | 
 boolean | 
parseIsDeletable(Element annotationElement)
Parses the 'deletable' status of the given feature type annotation element.  | 
 boolean | 
parseIsInsertable(Element annotationElement)
Parses the 'insertable' status of the given feature type annotation element.  | 
 boolean | 
parseIsUpdatable(Element annotationElement)
Parses the 'updatable' status of the given feature type annotation element.  | 
(package private)  MappedFeaturePropertyType | 
parseMappedFeaturePropertyType(Element element,
                                                             QualifiedName propertyName,
                                                             int minOccurs,
                                                             int maxOccurs,
                                                             boolean isIdentityPart,
                                                             String table,
                                                             boolean isReferenceType)
Extracts the mapping information for a feature property type from the given "xs:annotation" element.  | 
(package private)  MappedGeometryPropertyType | 
parseMappedGeometryPropertyType(Element element,
                                                               QualifiedName propertyName,
                                                               QualifiedName typeName,
                                                               int type,
                                                               int minOccurs,
                                                               int maxOccurs,
                                                               boolean isIdentityPart,
                                                               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(Element element,
                                                           QualifiedName propertyName,
                                                           int type,
                                                           int minOccurs,
                                                           int maxOccurs,
                                                           boolean isIdentityPart,
                                                           String table)
Extracts the mapping information for a simple property type from the given "xs:annotation" element.  | 
(package private)  SpecialContent | 
parseSpecialContent(Element element)
Parses the given "deegreewfs:SpecialContent" element.  | 
(package private)  SQLFunctionCall | 
parseSQLFunctionCall(Element element,
                                         String table)
Parses the given element as a "deegreewfs:SQLFunctionCall" element.  | 
 int | 
parseVisible(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, getElementDeclaration, 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(Element element)
                                                    throws XMLParsingException
Element as an annotated 'xs:element' declaration (with mapping information).
parseElementDeclaration in class XSDocumentelement - '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 class
protected MappedComplexTypeDeclaration parseComplexTypeDeclaration(Element element)
                                                            throws XMLParsingException
Element as an annotated 'xs:complexType' declaration (with mapping information).
parseComplexTypeDeclaration in class XSDocumentelement - '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 class
MappedGMLId extractGMLId(Element annotationElement,
                         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 found
MappedSimplePropertyType parseMappedSimplePropertyType(Element element,
                                                       QualifiedName propertyName,
                                                       int type,
                                                       int minOccurs,
                                                       int maxOccurs,
                                                       boolean isIdentityPart,
                                                       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 found
ConstantContent parseConstantContent(Element element)
                               throws XMLParsingException
element - "deegreewfs:Constant" element
XMLParsingException
SpecialContent parseSpecialContent(Element element)
                             throws XMLParsingException
element - "deegreewfs:SpecialContent" element
XMLParsingException
SQLFunctionCall parseSQLFunctionCall(Element element,
                                     String table)
                               throws XMLParsingException
element - "deegreewfs:SQLFunctionCall" elementtable - 
XMLParsingException
FunctionParam parseFunctionParam(Element element,
                                 String table)
                           throws XMLParsingException
Valid child elements:
element - "deegreewfs:FunctionParam" elementtable - 
XMLParsingException
MappedGeometryPropertyType parseMappedGeometryPropertyType(Element element,
                                                           QualifiedName propertyName,
                                                           QualifiedName typeName,
                                                           int type,
                                                           int minOccurs,
                                                           int maxOccurs,
                                                           boolean isIdentityPart,
                                                           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(Element element,
                                                         QualifiedName propertyName,
                                                         int minOccurs,
                                                         int maxOccurs,
                                                         boolean isIdentityPart,
                                                         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 found
public int parseVisible(Element annotationElement)
                 throws XMLParsingException
annotationElement - 
XMLParsingException
public boolean parseIsUpdatable(Element annotationElement)
                         throws XMLParsingException
annotationElement - 
XMLParsingException
public boolean parseIsDeletable(Element annotationElement)
                         throws XMLParsingException
annotationElement - 
XMLParsingException
public boolean parseIsInsertable(Element annotationElement)
                          throws XMLParsingException
annotationElement - 
XMLParsingException
public int parseIdentityPart(Element annotationElement)
                      throws XMLParsingException
annotationElement - 
XMLParsingException
  | 
deegree 2.1 (2007/11/08 09:57 build-328-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://deegree.sourceforge.net