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 condition
injects - the list of transformations to apply if the condition is met
description - a description of the rejection rule
elaboration - 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 Details

    • RejectActionRule

      public RejectActionRule(com.jayway.jsonpath.JsonPath ifJsonPathFound, List<JsonContentAction.InjectJson> injects, String description, Map<String,Object> elaboration)
      Creates an instance of a RejectActionRule record class.
      Parameters:
      ifJsonPathFound - the value for the ifJsonPathFound record component
      injects - the value for the injects record component
      description - the value for the description record component
      elaboration - the value for the elaboration record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • ifJsonPathFound

      public com.jayway.jsonpath.JsonPath ifJsonPathFound()
      Returns the value of the ifJsonPathFound record component.
      Returns:
      the value of the ifJsonPathFound record component
    • injects

      Returns the value of the injects record component.
      Returns:
      the value of the injects record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • elaboration

      public Map<String,Object> elaboration()
      Returns the value of the elaboration record component.
      Returns:
      the value of the elaboration record component