Package com.axelor.meta.headless
Record Class ActionChain.Field
java.lang.Object
java.lang.Record
com.axelor.meta.headless.ActionChain.Field
- Record Components:
name- the fieldattribute- for anaction-attrs, the attribute (value,readonly...)expression- the value's expressioncondition- when it applies, or nullrecord- for anaction:namevalue naming anaction-record, that record written out — what the field gets, as a line of a collection — or null
- Enclosing class:
ActionChain
public static record ActionChain.Field(String name, String attribute, String expression, String condition, ActionChain.Assign record)
extends Record
A field an
action-record sets, or an attribute an action-attrs sets.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributerecord component.Returns the value of theconditionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpressionrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.record()Returns the value of therecordrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Field
public Field(String name, String attribute, String expression, String condition, ActionChain.Assign record) Creates an instance of aFieldrecord class.- Parameters:
name- the value for thenamerecord componentattribute- the value for theattributerecord componentexpression- the value for theexpressionrecord componentcondition- the value for theconditionrecord componentrecord- the value for therecordrecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
attribute
Returns the value of theattributerecord component.- Returns:
- the value of the
attributerecord component
-
expression
Returns the value of theexpressionrecord component.- Returns:
- the value of the
expressionrecord component
-
condition
Returns the value of theconditionrecord component.- Returns:
- the value of the
conditionrecord component
-
record
Returns the value of therecordrecord component.- Returns:
- the value of the
recordrecord component
-