Class ReplaceSubStringModifierMethod

java.lang.Object
de.fraunhofer.iese.mydata.pep.common.PrimitiveModifierMethod
de.fraunhofer.iese.mydata.pep.modifiers.string.ReplaceSubStringModifierMethod
All Implemented Interfaces:
ModifierMethod

public class ReplaceSubStringModifierMethod extends PrimitiveModifierMethod
This a default Modifiers method with Pep sdk which appends the prefix and suffix to string where event parameter is either a Json Object or string (primitive type)
  • Constructor Details

    • ReplaceSubStringModifierMethod

      public ReplaceSubStringModifierMethod()
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Returns:
      Display name
    • doModification

      public Object doModification(Object currentObject, ParameterList modifierMethodParameterList)
      Description copied from interface: ModifierMethod
      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.
    • replaceSubstring

      public String replaceSubstring(String currentString, String substring, String replacement, String mode)