Class GetPropertyFunction

  • All Implemented Interfaces:
    XPathFunction, org.jaxen.Function

    public class GetPropertyFunction
    extends Object
    implements org.jaxen.Function, XPathFunction
    Implements the XPath extension function synapse:get-property(scope,prop-name)
    • Constructor Detail

      • GetPropertyFunction

        public GetPropertyFunction​(MessageContext synCtx)
    • Method Detail

      • call

        public Object call​(org.jaxen.Context context,
                           List args)
                    throws org.jaxen.FunctionCallException
        Returns the string value of the property which is get from the corresponding context to the provided scope . The default scope is used to get property from the synapse message context
        Specified by:
        call in interface org.jaxen.Function
        Parameters:
        context - the context at the point in the expression when the function is called
        args - arguments of the functions
        Returns:
        The string value of a property
        Throws:
        org.jaxen.FunctionCallException
      • evaluate

        public Object evaluate​(Object scopeObject,
                               Object keyObject,
                               Object dateformat,
                               org.jaxen.Navigator navigator)
        Returns the string value of the property using arg one as key and arg two as scope
        Parameters:
        scopeObject - scope will decide from where property will be picked up from i.e. axis2, transport, default/synapse
        keyObject - the key of the property
        navigator - object model which can be used for navigation around
        dateformat - The dateformat that need to convert
        Returns:
        The String value of property using arg one as key and arg two as scope