Interface ModifierMethod

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.jayway.jsonpath.DocumentContext doModification​(com.jayway.jsonpath.DocumentContext documentContext, String expression, de.fraunhofer.iese.mydata.policy.parameter.ParameterList modifierMethodParameterList)
      Modification for Complex Objects that are serialized using JsonPath.
      Object doModification​(Object currentObject, de.fraunhofer.iese.mydata.policy.parameter.ParameterList modifierMethodParameterList)
      This method to be overridden when modifier wants to handle primitive type like Integer(int), Float(float), Boolean(boolean), Long(long), Short(short), Byte(byte) and Double(double) and String
      String getDisplayName()  
      boolean nameIsValid()  
    • Method Detail

      • doModification

        com.jayway.jsonpath.DocumentContext doModification​(com.jayway.jsonpath.DocumentContext documentContext,
                                                           String expression,
                                                           de.fraunhofer.iese.mydata.policy.parameter.ParameterList modifierMethodParameterList)
        Modification for Complex Objects that are serialized using JsonPath.
        Parameters:
        documentContext - Serialized Object Structure with JsonPath
        expression - JsonPath Expression to adress a specific element/attribute in the json.
        modifierMethodParameterList - Values used for modification.
        Returns:
        DocumentContext
      • doModification

        Object doModification​(Object currentObject,
                              de.fraunhofer.iese.mydata.policy.parameter.ParameterList modifierMethodParameterList)
        This method to be overridden when modifier wants to handle primitive type like Integer(int), Float(float), Boolean(boolean), Long(long), Short(short), Byte(byte) and Double(double) and String
        Parameters:
        currentObject - The primitive value for modification.
        modifierMethodParameterList - List of parameters that should be used for modification
        Returns:
        This default implementation is returning the object without modification.
      • getDisplayName

        String getDisplayName()
        Returns:
        Display name
      • nameIsValid

        boolean nameIsValid()