Record Class CopiedLink

java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.ui.canvas.datastruct.CopiedLink
Record Components:
sourceId - id of the element to read or modify
name - name value to read, write, or display
lineColor - color value to use
associationClassId - id of the element to read or modify
fromClassId - id of the element to read or modify
fromFieldId - id of the element to read or modify
toClassId - 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
labelFrom - text value for label from
labelTo - text value for label to
layout - layout object to read or update

public record CopiedLink(String sourceId, String name, Color lineColor, String associationClassId, String fromClassId, String fromFieldId, String toClassId, String toFieldId, Cardinality cardinalityFrom, Cardinality cardinalityTo, String labelFrom, String labelTo, CopiedLinkLayout layout) extends Record
Link model and layout data stored in the clipboard snapshot.
  • Constructor Details

    • CopiedLink

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

      public String sourceId()
      Returns the value of the sourceId record component.
      Returns:
      the value of the sourceId record component
    • 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
    • associationClassId

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

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

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

      public String toClassId()
      Returns the value of the toClassId record component.
      Returns:
      the value of the toClassId 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
    • 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
    • layout

      public CopiedLinkLayout layout()
      Returns the value of the layout record component.
      Returns:
      the value of the layout record component