Package org.jaxen

Examples of org.jaxen.Function


  private static FunctionContext getFunctionContext(
    Map<QName,Function> functions,
    SimpleFunctionContext context) {
    if (context == null) context = new SimpleFunctionContext();
    for (QName qname : functions.keySet()) {
      Function function = functions.get(qname);
      context.registerFunction(
        qname.getNamespaceURI(),
        qname.getLocalPart(),
        function);
    }
View Full Code Here


                SynapseXPathConstants.BASE64_ENCODE_FUNCTION.equals(localName)) {
            // create a base64Encode function and set it to the XPath
            return new Base64EncodeFunction();
        }
        //We check if custom Xpath extensions are available
        Function extensionFunction = XpathExtensionUtil.getFunctionContext(
                synCtx,namespaceURI,prefix, localName);
        if (extensionFunction != null) {
            return extensionFunction;
        }
        // if not the get-property function then try to get it from the parent context
View Full Code Here

    public Object evaluate(Context context) throws JaxenException
    {
        String namespaceURI =
            context.translateNamespacePrefixToUri( getPrefix() );

        Function func = context.getFunction( namespaceURI,
                                             getPrefix(),
                                             getFunctionName() );

        List paramExprs = getParameters();
        int  paramSize  = paramExprs.size();
       
        List paramValues = new ArrayList( paramSize );
        Expr eachParam   = null;
        Object eachValue = null;
       
        for ( int i = 0 ; i < paramSize ; ++i )
        {
            eachParam = (Expr) paramExprs.get( i );
           
            eachValue = eachParam.evaluate( context );
           
            paramValues.add( eachValue );
        }
       
        return func.call( context, paramValues );
    }
View Full Code Here

                OXPath10ExpressionBPEL20 oxpath20 = (OXPath10ExpressionBPEL20) _oxpath;
                if (fnQName.equals(oxpath20.qname_doXslTransform)) {
                    return _doXslTransform;
                }
            }
            Function f = (Function)_extensionFunctions.get(localName);

            if (f != null) {
                return f;
            }
        }
View Full Code Here

                OXPath10ExpressionBPEL20 oxpath20 = (OXPath10ExpressionBPEL20) _oxpath;
                if (fnQName.equals(oxpath20.qname_doXslTransform)) {
                    return _doXslTransform;
                }
            }
            Function f = (Function)_extensionFunctions.get(localName);

            if (f != null) {
                return f;
            }
        }
View Full Code Here

                OXPath10ExpressionBPEL20 oxpath20 = (OXPath10ExpressionBPEL20) _oxpath;
                if (fnQName.equals(oxpath20.qname_doXslTransform)) {
                    return _doXslTransform;
                }
            }
            Function f = (Function)_extensionFunctions.get(localName);

            if (f != null) {
                return f;
            }
        }
View Full Code Here

  private static FunctionContext getFunctionContext(
    Map<QName,Function> functions,
    SimpleFunctionContext context) {
    if (context == null) context = new SimpleFunctionContext();
    for (QName qname : functions.keySet()) {
      Function function = functions.get(qname);
      context.registerFunction(
        qname.getNamespaceURI(),
        qname.getLocalPart(),
        function);
    }
View Full Code Here

                OXPath10ExpressionBPEL20 oxpath20 = (OXPath10ExpressionBPEL20) _oxpath;
                if (fnQName.equals(oxpath20.qname_doXslTransform)) {
                    return _doXslTransform;
                }
            }
            Function f = (Function)_extensionFunctions.get(localName);

            if (f != null) {
                return f;
            }
        }
View Full Code Here

  private static FunctionContext getFunctionContext(
    Map<QName,Function> functions,
    SimpleFunctionContext context) {
    if (context == null) context = new SimpleFunctionContext();
    for (QName qname : functions.keySet()) {
      Function function = functions.get(qname);
      context.registerFunction(
        qname.getNamespaceURI(),
        qname.getLocalPart(),
        function);
    }
View Full Code Here

                OXPath10ExpressionBPEL20 oxpath20 = (OXPath10ExpressionBPEL20) _oxpath;
                if (fnQName.equals(oxpath20.qname_doXslTransform)) {
                    return _doXslTransform;
                }
            }
            Function f = (Function)_extensionFunctions.get(localName);

            if (f != null) {
                return f;
            }
        }
View Full Code Here

TOP

Related Classes of org.jaxen.Function

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.