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

org.deegree.enterprise.servlet
Class WFSRequestMapping

java.lang.Object
  extended by org.deegree.enterprise.servlet.WFSRequestMapping

public class WFSRequestMapping
extends java.lang.Object

This class respectively its method mapPropertyValue(Node) can be used by XSLT scripts to map a node value (key) to another, corresponding value (value). The mappings are taken from the properties file org.deegree.enterprise.servlet.wfsrequestmapping.properties. If no matching value for a key is defined in the properties file, the returned String is null.

The node reference passed to this method must point to an element that contains a single text node, e.g. <PropertyName>/MyProperty/value</PropertyName>

If a special behavior is needed by a deegree WFS instance and/or you do not want to edit the default properties and use your own one you should write a class that extends this or it as pattern.

Version:
$Revision: 21647 $, $Date: 2009-12-23 11:14:38 +0100 (Mi, 23 Dez 2009) $
Author:
Andreas Poth, last edited by: $Author: mschneider $
See Also:
mapPropertyValue(Node), Properties

Field Summary
protected static java.lang.String propertiesFile
          TODO why is this here and ununused?
 
Constructor Summary
WFSRequestMapping()
           
 
Method Summary
static java.lang.String mapPropertyValue(org.w3c.dom.Node node)
          This method can be used by XSLT scripts to map a node value (key) to another, corresponding value (value).
static java.lang.String mapPropertyValue(org.w3c.dom.Node node, java.lang.String typeName)
          This method can be used by XSLT scripts to map a node value (key) to another, corresponding value (value).
static java.lang.String mapPropertyValue(org.w3c.dom.Node node, java.lang.String typeName, java.lang.String nsp)
          This method can be used by XSLT scripts to map a node value (key) to another, corresponding value (value).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertiesFile

protected static java.lang.String propertiesFile
TODO why is this here and ununused?

Constructor Detail

WFSRequestMapping

public WFSRequestMapping()
Method Detail

mapPropertyValue

public static java.lang.String mapPropertyValue(org.w3c.dom.Node node)
This method can be used by XSLT scripts to map a node value (key) to another, corresponding value (value). The mappings are taken from the properties file org.deegree.enterprise.servlet.wfsrequestmapping.properties. If no matching value for a key is defined in the properties file, the returned String is null.

The node reference passed to this method must point to an element that contains a single text node, e.g. <PropertyName>/MyProperty/value</PropertyName>

Parameters:
node - node that will be mapped
Returns:
mapping for the node as an XPath, null if no mapping is defined

mapPropertyValue

public static java.lang.String mapPropertyValue(org.w3c.dom.Node node,
                                                java.lang.String typeName)
This method can be used by XSLT scripts to map a node value (key) to another, corresponding value (value). The mappings are taken from the properties file org.deegree.enterprise.servlet.wfsrequestmapping.properties. If no matching value for a key is defined in the properties file, the returned String is null.

The node reference passed to this method must point to an element that contains a single text node, e.g. <PropertyName>/MyProperty/value</PropertyName>

Parameters:
node - node that will be mapped
typeName - feature type name
Returns:
mapping for the node as an XPath, null if no mapping is defined

mapPropertyValue

public static java.lang.String mapPropertyValue(org.w3c.dom.Node node,
                                                java.lang.String typeName,
                                                java.lang.String nsp)
This method can be used by XSLT scripts to map a node value (key) to another, corresponding value (value). The mappings are taken from the properties file org.deegree.enterprise.servlet.wfsrequestmapping.properties. If no matching value for a key is defined in the properties file, the returned String is null.

The node reference passed to this method must point to an element that contains a single text node, e.g. <PropertyName>/MyProperty/value</PropertyName>

Parameters:
node - node that will be mapped
typeName - feature type name
nsp -
Returns:
mapping for the node as an XPath, null if no mapping is defined

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