Class Append

  • All Implemented Interfaces:
    PathFunction

    public class Append
    extends java.lang.Object
    implements PathFunction
    Appends JSON structure to the current document so that you can utilize the JSON added thru another function call. If there are multiple parameters then this function call will add each element that is json to the structure Created by mgreenwood on 12/14/15.
    • Constructor Summary

      Constructors 
      Constructor Description
      Append()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object invoke​(java.lang.String currentPath, PathRef parent, java.lang.Object model, EvaluationContext ctx, java.util.List<Parameter> parameters)
      Invoke the function and output a JSON object (or scalar) value which will be the result of executing the path
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Append

        public Append()
    • Method Detail

      • invoke

        public java.lang.Object invoke​(java.lang.String currentPath,
                                       PathRef parent,
                                       java.lang.Object model,
                                       EvaluationContext ctx,
                                       java.util.List<Parameter> parameters)
        Description copied from interface: PathFunction
        Invoke the function and output a JSON object (or scalar) value which will be the result of executing the path
        Specified by:
        invoke in interface PathFunction
        Parameters:
        currentPath - The current path location inclusive of the function name
        parent - The path location above the current function
        model - The JSON model as input to this particular function
        ctx - Eval context, state bag used as the path is traversed, maintains the result of executing
        Returns:
        result