public interface ModifierMethod
getDisplayName(). The Method
doModification(DocumentContext, String, ParameterList) is used for
modification of complex objects that are serialized to a JSON Structure.
doModification(Object, ParameterList) should be overriden if the
Modifier also supports modification of primitive values including wrapper
Types as well as String and Date.| 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 doModification(com.jayway.jsonpath.DocumentContext documentContext,
String expression,
de.fraunhofer.iese.ind2uce.api.policy.parameter.ParameterList modifierMethodParameterList)
JsonPath.documentContext - Serialized Object Structure with
JsonPathexpression - JsonPath Expression to adress
a specific element/attribute in the json.modifierMethodParameterList - Values used for modification.DocumentContextObject doModification(Object currentObject, de.fraunhofer.iese.ind2uce.api.policy.parameter.ParameterList modifierMethodParameterList)
currentObject - The primitive value for modification.modifierMethodParameterList - List of parameters that should be used
for modificationString getDisplayName()
boolean nameIsValid()
Copyright © 2018. All rights reserved.