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

org.deegree.ogcwebservices.csw.iso_profile.ebrim
Class EBRIM_Mapping

java.lang.Object
  extended by org.deegree.ogcwebservices.csw.iso_profile.ebrim.EBRIM_Mapping

public class EBRIM_Mapping
extends java.lang.Object

Maps valid ebrim propertypaths including variables (aka aliases) e.g. $o1 to the according wfs-propertyPaths.

Since:
2.0
Version:
$Revision: 1.8 $, 1.0. $Revision: 1.8 $, $Date: 2007-06-21 13:53:57 $
Author:
Rutger Bezema, last edited by: $Author: bezema $

Constructor Summary
EBRIM_Mapping()
          The constructor parses the configuration file 'adv_catalog.properties' containing the propertypath mappings from ebrim to gml.
 
Method Summary
 org.w3c.dom.NodeList mapElementSetName(org.w3c.dom.Node elementSetNameNode)
          This method take an elementSetName node and conerts it's content into a list of wfs:PropertyName nodes.
 java.lang.String mapPropertyPath(org.w3c.dom.Node node)
          maps a property name of GetRecords, Delete and Update request from the catalogue schema to the underlying WFS schema
 java.lang.String mapTypeNameElement(org.w3c.dom.Node typeNameElement)
          Maps the typename of the given Element if the targetNamespace attribute of the given Node equals the rimNS.
 java.lang.String mapTypeNames(org.w3c.dom.Node node)
          maps the property names of given typenames in the typeNames attribute of a GetRecords request to the catalogue schema of the underlying WFS schema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EBRIM_Mapping

public EBRIM_Mapping()
The constructor parses the configuration file 'adv_catalog.properties' containing the propertypath mappings from ebrim to gml.

Method Detail

mapPropertyPath

public java.lang.String mapPropertyPath(org.w3c.dom.Node node)
                                 throws XMLParsingException
maps a property name of GetRecords, Delete and Update request from the catalogue schema to the underlying WFS schema

Parameters:
node - containing the propertyPath
Returns:
the mapped propertypath
Throws:
XMLParsingException

mapTypeNames

public java.lang.String mapTypeNames(org.w3c.dom.Node node)
                              throws XMLParsingException
maps the property names of given typenames in the typeNames attribute of a GetRecords request to the catalogue schema of the underlying WFS schema

Parameters:
node - the GetRecords request Node
Returns:
the mapped propertypath
Throws:
XMLParsingException

mapElementSetName

public org.w3c.dom.NodeList mapElementSetName(org.w3c.dom.Node elementSetNameNode)
This method take an elementSetName node and conerts it's content into a list of wfs:PropertyName nodes. Depending on the (String) value of the elementSetNameNode (brief, summary, full) the propertyNames will have different values. For this method to work a temporal document is builded from which one element is created, this element will hold all child elements.

Parameters:
elementSetNameNode - the ElementSetName Node of the incoming GetRecords request.
Returns:
a Nodelist containing nodes.

mapTypeNameElement

public java.lang.String mapTypeNameElement(org.w3c.dom.Node typeNameElement)
Maps the typename of the given Element if the targetNamespace attribute of the given Node equals the rimNS.

Parameters:
typeNameElement - the TypeName Element inside a DescribeRecord request.
Returns:
the mapping of the featureType requested or an empty string (e.g. "").

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