Record Class LinkEditorDialog.Result

java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.ui.dialogs.LinkEditorDialog.Result
Record Components:
name - name value to read, write, or display
lineColor - color value to use
fromClassId - id of the element to read or modify
toClassId - id of the element to read or modify
fromFieldId - id of the element to read or modify
toFieldId - id of the element to read or modify
cardinalityFrom - cardinality from value used by the operation
cardinalityTo - cardinality to value used by the operation
associationClassId - id of the element to read or modify
labelFrom - text value for label from
labelTo - text value for label to
Enclosing class:
LinkEditorDialog

public static record LinkEditorDialog.Result(String name, Color lineColor, String fromClassId, String toClassId, String fromFieldId, String toFieldId, Cardinality cardinalityFrom, Cardinality cardinalityTo, String associationClassId, String labelFrom, String labelTo) extends Record
Immutable value object for result data.
  • Constructor Details

    • Result

      public Result(String name, Color lineColor, String fromClassId, String toClassId, String fromFieldId, String toFieldId, Cardinality cardinalityFrom, Cardinality cardinalityTo, String associationClassId, String labelFrom, String labelTo)
      Creates an instance of a Result record class.
      Parameters:
      name - the value for the name record component
      lineColor - the value for the lineColor record component
      fromClassId - the value for the fromClassId record component
      toClassId - the value for the toClassId record component
      fromFieldId - the value for the fromFieldId record component
      toFieldId - the value for the toFieldId record component
      cardinalityFrom - the value for the cardinalityFrom record component
      cardinalityTo - the value for the cardinalityTo record component
      associationClassId - the value for the associationClassId record component
      labelFrom - the value for the labelFrom record component
      labelTo - the value for the labelTo 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.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • lineColor

      public Color lineColor()
      Returns the value of the lineColor record component.
      Returns:
      the value of the lineColor record component
    • fromClassId

      public String fromClassId()
      Returns the value of the fromClassId record component.
      Returns:
      the value of the fromClassId record component
    • toClassId

      public String toClassId()
      Returns the value of the toClassId record component.
      Returns:
      the value of the toClassId record component
    • fromFieldId

      public String fromFieldId()
      Returns the value of the fromFieldId record component.
      Returns:
      the value of the fromFieldId record component
    • toFieldId

      public String toFieldId()
      Returns the value of the toFieldId record component.
      Returns:
      the value of the toFieldId record component
    • cardinalityFrom

      public Cardinality cardinalityFrom()
      Returns the value of the cardinalityFrom record component.
      Returns:
      the value of the cardinalityFrom record component
    • cardinalityTo

      public Cardinality cardinalityTo()
      Returns the value of the cardinalityTo record component.
      Returns:
      the value of the cardinalityTo record component
    • associationClassId

      public String associationClassId()
      Returns the value of the associationClassId record component.
      Returns:
      the value of the associationClassId record component
    • labelFrom

      public String labelFrom()
      Returns the value of the labelFrom record component.
      Returns:
      the value of the labelFrom record component
    • labelTo

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