Class ReplaceModifierMethod
java.lang.Object
de.fraunhofer.iese.mydata.pep.common.PrimitiveModifierMethod
de.fraunhofer.iese.mydata.pep.modifiers.basic.ReplaceModifierMethod
- All Implemented Interfaces:
ModifierMethod
This a default Modifiers method with Pep sdk which replaces a string with
another one where event parameter is either a Json Object or string
(primitive type)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondoModification
(Object currentObject, 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 StringMethods inherited from class de.fraunhofer.iese.mydata.pep.common.PrimitiveModifierMethod
doModification, nameIsValid
-
Constructor Details
-
ReplaceModifierMethod
public ReplaceModifierMethod()
-
-
Method Details
-
doModification
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.
-
replace
-
getDisplayName
- Returns:
- Display name
-