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 Summary
Constructors Constructor Description PrimitiveModifierMethod()
-
Method Summary
All Methods Instance Methods Concrete 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 usingJsonPath
.boolean
nameIsValid()
-
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
-
-
-
-
Method Detail
-
doModification
public com.jayway.jsonpath.DocumentContext doModification(com.jayway.jsonpath.DocumentContext documentContext, String expression, de.fraunhofer.iese.mydata.policy.parameter.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
-
-