Package com.axelor.meta.headless
Record Class ActionChain.Check
java.lang.Object
java.lang.Record
com.axelor.meta.headless.ActionChain.Check
- Record Components:
kind-alert,error,info,notify, orfieldfor a condition's field errormessage- the untranslated messagecondition- when it applies, or null for alwaysaction- the action an alert or error runs (on No, or before stopping), or nullfield- the field a condition checks, or null
- Enclosing class:
ActionChain
public static record ActionChain.Check(String kind, String message, String condition, String action, String field)
extends Record
A check of a validation or condition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.Returns the value of theconditionrecord component.final booleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Check
Creates an instance of aCheckrecord class.
-
-
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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
condition
Returns the value of theconditionrecord component.- Returns:
- the value of the
conditionrecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-