deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.enterprise.servlet
Class WFSRequestMapping

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

public class WFSRequestMapping
extends 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: 21632 $, $Date: 2009-12-23 10:31:16 +0100 (Mi, 23. Dez 2009) $
Author:
Andreas Poth, last edited by: $Author: mschneider $
See Also:
mapPropertyValue(Node), Properties

Field Summary
protected static String propertiesFile
          TODO why is this here and ununused?
 
Constructor Summary
WFSRequestMapping()
           
 
Method Summary
static String mapPropertyValue(Node node)
          This method can be used by XSLT scripts to map a node value (key) to another, corresponding value (value).
static String mapPropertyValue(Node node, String typeName)
          This method can be used by XSLT scripts to map a node value (key) to another, corresponding value (value).
static String mapPropertyValue(Node node, String typeName, 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 String propertiesFile
TODO why is this here and ununused?

Constructor Detail

WFSRequestMapping

public WFSRequestMapping()
Method Detail

mapPropertyValue

public static String mapPropertyValue(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 String mapPropertyValue(Node node,
                                      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 String mapPropertyValue(Node node,
                                      String typeName,
                                      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.3 (2010/04/09 10:10 build-4-official)

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