Class PrimitiveModifierMethod

java.lang.Object
de.fraunhofer.iese.mydata.pep.common.PrimitiveModifierMethod
All Implemented Interfaces:
ModifierMethod
Direct Known Subclasses:
AddModifierMethod, AnagramModifierMethod, AppendModifierMethod, DivideModifierMethod, HashModifierMethod, MultiplyModifierMethod, PasswordModifierMethod, ReplaceModifierMethod, ReplaceSubStringModifierMethod, RoundModifierMethod, ShortenInitialModifierMethod, SignModifierMethod, SubStringModifierMethod

public abstract class PrimitiveModifierMethod extends Object implements ModifierMethod
Base class for modifiers that apply to single, primitive elements Implements a generic Json-doModification that handles JsonPrimitives and recursively handles JsonArrays Makes use of the Java-doModification, which must be implemented in specialist classes
  • Constructor Details

    • PrimitiveModifierMethod

      public PrimitiveModifierMethod()
  • Method Details

    • doModification

      public com.jayway.jsonpath.DocumentContext doModification(com.jayway.jsonpath.DocumentContext documentContext, String expression, ParameterList modifierMethodParameterList)
      Description copied from interface: ModifierMethod
      Modification for Complex Objects that are serialized using JsonPath.
      Specified by:
      doModification in interface ModifierMethod
      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
    • nameIsValid

      public boolean nameIsValid()
      Specified by:
      nameIsValid in interface ModifierMethod