Package com.axelor.meta.headless
Record Class FormStep.Add
java.lang.Object
java.lang.Record
com.axelor.meta.headless.FormStep.Add
- Record Components:
node- the node holding the collectioncollection- the collection fieldseed- values written afteronNew, without theironChange
- All Implemented Interfaces:
FormStep
- Enclosing interface:
FormStep
public static record FormStep.Add(FormPath node, String collection, Map<String,Object> seed)
extends Record
implements FormStep
Adds a line: the line's defaults, its
onNew in the line's context, then the seed. The
line gets the session's next cid, -1, -2...: the order lines are added in, rows
that actions add counted too.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.axelor.meta.headless.FormStep
FormStep.Add, FormStep.Click, FormStep.Commit, FormStep.Remove, FormStep.Run, FormStep.Save, FormStep.Set -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecollectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.node()Returns the value of thenoderecord component.seed()Returns the value of theseedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Add
Creates an instance of aAddrecord class.- Parameters:
node- the value for thenoderecord componentcollection- the value for thecollectionrecord componentseed- the value for theseedrecord 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). -
node
Returns the value of thenoderecord component.- Returns:
- the value of the
noderecord component
-
collection
Returns the value of thecollectionrecord component.- Returns:
- the value of the
collectionrecord component
-
seed
Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord component
-