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
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.jayway.jsonpath.DocumentContext
doModification
(com.jayway.jsonpath.DocumentContext documentContext, String expression, ParameterList modifierMethodParameterList) Modification for Complex Objects that are serialized usingJsonPath
.boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.fraunhofer.iese.mydata.pep.common.ModifierMethod
doModification, getDisplayName
-
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 usingJsonPath
.- Specified by:
doModification
in interfaceModifierMethod
- Parameters:
documentContext
- Serialized Object Structure withJsonPath
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 interfaceModifierMethod
-