public class PatternMatcherModifierMethod extends Object implements ModifierMethod
| Constructor and Description |
|---|
PatternMatcherModifierMethod() |
| Modifier and Type | Method and Description |
|---|---|
com.jayway.jsonpath.DocumentContext |
doModification(com.jayway.jsonpath.DocumentContext documentContext,
String expression,
de.fraunhofer.iese.ind2uce.api.policy.parameter.ParameterList modifierMethodParameterList)
Modification for Complex Objects that are serialized using
JsonPath. |
Object |
doModification(Object currentObject,
de.fraunhofer.iese.ind2uce.api.policy.parameter.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 String
|
String |
getDisplayName() |
boolean |
nameIsValid() |
com.jayway.jsonpath.DocumentContext |
patternMatcher(Object tuples,
String amountExpression,
Number percentage,
com.jayway.jsonpath.DocumentContext documentContext,
String expression,
String method,
Boolean resetList)
Domodify.
|
protected String |
scramble(String inputString,
int count) |
public com.jayway.jsonpath.DocumentContext doModification(com.jayway.jsonpath.DocumentContext documentContext,
String expression,
de.fraunhofer.iese.ind2uce.api.policy.parameter.ParameterList modifierMethodParameterList)
ModifierMethodJsonPath.doModification in interface ModifierMethoddocumentContext - Serialized Object Structure with
JsonPathexpression - JsonPath Expression to adress
a specific element/attribute in the json.modifierMethodParameterList - Values used for modification.DocumentContextpublic Object doModification(Object currentObject, de.fraunhofer.iese.ind2uce.api.policy.parameter.ParameterList modifierMethodParameterList)
ModifierMethoddoModification in interface ModifierMethodcurrentObject - The primitive value for modification.modifierMethodParameterList - List of parameters that should be used
for modificationpublic com.jayway.jsonpath.DocumentContext patternMatcher(Object tuples, String amountExpression, Number percentage, com.jayway.jsonpath.DocumentContext documentContext, String expression, String method, Boolean resetList)
tuples - the tuplesamountExpression - the json amount expressionpercentage - the percentage for the anagramdocumentContext - the document contextexpression - the expression to blurmethod - the method to applyprotected String scramble(String inputString, int count)
inputString - string to scramblecount - countpublic String getDisplayName()
getDisplayName in interface ModifierMethodpublic boolean nameIsValid()
nameIsValid in interface ModifierMethodCopyright © 2018. All rights reserved.