public class GetPropertyFunction
extends java.lang.Object
implements org.jaxen.Function, javax.xml.xpath.XPathFunction
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NULL_STRING |
Constructor and Description |
---|
GetPropertyFunction(MessageContext synCtx) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
call(org.jaxen.Context context,
java.util.List args)
Returns the string value of the property which is get from the corresponding context to the provided scope .
|
java.lang.Object |
evaluate(java.util.List args)
Wraps jaxon xpath function as a javax.xml.xpath.XPathFunction
|
java.lang.Object |
evaluate(java.lang.Object scopeObject,
java.lang.Object keyObject,
java.lang.Object dateformat,
org.jaxen.Navigator navigator)
Returns the string value of the property using arg one as key and arg two as scope
|
MessageContext |
getSynCtx() |
public static final java.lang.String NULL_STRING
public GetPropertyFunction(MessageContext synCtx)
public MessageContext getSynCtx()
public java.lang.Object call(org.jaxen.Context context, java.util.List args) throws org.jaxen.FunctionCallException
call
in interface org.jaxen.Function
context
- the context at the point in the expression when the function is calledargs
- arguments of the functionsorg.jaxen.FunctionCallException
public java.lang.Object evaluate(java.lang.Object scopeObject, java.lang.Object keyObject, java.lang.Object dateformat, org.jaxen.Navigator navigator)
scopeObject
- scope will decide from where property will be picked up from
i.e. axis2, transport, default/synapsekeyObject
- the key of the propertynavigator
- object model which can be used for navigation arounddateformat
- The dateformat that need to convertpublic java.lang.Object evaluate(java.util.List args) throws javax.xml.xpath.XPathFunctionException
evaluate
in interface javax.xml.xpath.XPathFunction
args
- List of argument for custom xpath functionjavax.xml.xpath.XPathFunctionException
Copyright © 2005-2021 Apache Software Foundation. All Rights Reserved.