Package lib.aide
Record Class JsonContentAction.RejectActionRule
java.lang.Object
java.lang.Record
lib.aide.JsonContentAction.RejectActionRule
- Record Components:
ifJsonPathFound
- the JSONPath expression to find the matching conditioninjects
- the list of transformations to apply if the condition is metdescription
- a description of the rejection ruleelaboration
- additional details or context for the rule
- All Implemented Interfaces:
JsonContentAction.ActionRule
- Enclosing class:
JsonContentAction
public static record JsonContentAction.RejectActionRule(com.jayway.jsonpath.JsonPath ifJsonPathFound, List<JsonContentAction.InjectJson> injects, String description, Map<String,Object> elaboration)
extends Record
implements JsonContentAction.ActionRule
RejectActionRule defines a rejection rule with a JSONPath condition and a list of
transformations to apply if the condition is met.
-
Constructor Summary
ConstructorDescriptionRejectActionRule
(com.jayway.jsonpath.JsonPath ifJsonPathFound, List<JsonContentAction.InjectJson> injects, String description, Map<String, Object> elaboration) Creates an instance of aRejectActionRule
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescription
record component.Returns the value of theelaboration
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.com.jayway.jsonpath.JsonPath
Returns the value of theifJsonPathFound
record component.injects()
Returns the value of theinjects
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RejectActionRule
public RejectActionRule(com.jayway.jsonpath.JsonPath ifJsonPathFound, List<JsonContentAction.InjectJson> injects, String description, Map<String, Object> elaboration) Creates an instance of aRejectActionRule
record class.- Parameters:
ifJsonPathFound
- the value for theifJsonPathFound
record componentinjects
- the value for theinjects
record componentdescription
- the value for thedescription
record componentelaboration
- the value for theelaboration
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
ifJsonPathFound
public com.jayway.jsonpath.JsonPath ifJsonPathFound()Returns the value of theifJsonPathFound
record component.- Returns:
- the value of the
ifJsonPathFound
record component
-
injects
Returns the value of theinjects
record component.- Returns:
- the value of the
injects
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
elaboration
Returns the value of theelaboration
record component.- Returns:
- the value of the
elaboration
record component
-