Record Class FormLimit

java.lang.Object
java.lang.Record
com.axelor.meta.headless.FormLimit
Record Components:
widget - the field or button it concerns
kind - what is not run
detail - what the definition says: the attribute and its expression, the action, the widget

public record FormLimit(String widget, FormLimit.Kind kind, String detail) extends Record
Something a browser would do with a form that a session does not, found from the definitions alone. The session runs past the first four kinds — the server accepts what it accepts — and a FormLimit.Kind.WIDGET limit refuses a step that needs it.
  • Constructor Details

    • FormLimit

      public FormLimit(String widget, FormLimit.Kind kind, String detail)
      Creates an instance of a FormLimit record class.
      Parameters:
      widget - the value for the widget record component
      kind - the value for the kind record component
      detail - the value for the detail 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.
    • widget

      public String widget()
      Returns the value of the widget record component.
      Returns:
      the value of the widget record component
    • kind

      public FormLimit.Kind kind()
      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • detail

      public String detail()
      Returns the value of the detail record component.
      Returns:
      the value of the detail record component