Class Value
- java.lang.Object
-
- org.wso2.carbon.mediator.calltemplate.util.Value
-
public class Value extends Object
Represents a Value Handling both static and dynamic(Xpath) keys. User can give Xpath expression as a key and derive real key based on message context
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNamespace(org.apache.axiom.om.OMNamespace ns)
org.apache.synapse.util.xpath.SynapseXPath
getExpression()
Retrieving dynamic keyString
getKeyValue()
Retrieving static keyboolean
hasExprTypeKey()
checks whether key returned by #getKeyValue() is a string of an expression type.void
setNamespaces(org.apache.axiom.om.OMElement elem)
String
toString()
-
-
-
Constructor Detail
-
Value
public Value(String staticKey)
Create a key instance using a static key- Parameters:
staticKey
- static key
-
Value
public Value(org.apache.synapse.util.xpath.SynapseXPath expression)
Create a key instance using a dynamic key (Xpath Expression)- Parameters:
expression
- SynapseXpath for dynamic key
-
-
Method Detail
-
getKeyValue
public String getKeyValue()
Retrieving static key- Returns:
- static key
-
getExpression
public org.apache.synapse.util.xpath.SynapseXPath getExpression()
Retrieving dynamic key- Returns:
- SynapseXpath
-
hasExprTypeKey
public boolean hasExprTypeKey()
checks whether key returned by #getKeyValue() is a string of an expression type.- Returns:
- if true if this is an expression
-
setNamespaces
public void setNamespaces(org.apache.axiom.om.OMElement elem)
-
addNamespace
public void addNamespace(org.apache.axiom.om.OMNamespace ns)
-
-