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 modifyname- name value to read, write, or displaylineColor- color value to useassociationClassId- id of the element to read or modifyfromClassId- id of the element to read or modifyfromFieldId- id of the element to read or modifytoClassId- id of the element to read or modifytoFieldId- id of the element to read or modifycardinalityFrom- cardinality from value used by the operationcardinalityTo- cardinality to value used by the operationlabelFrom- text value for label fromlabelTo- text value for label tolayout- 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 Summary
ConstructorsConstructorDescriptionCopiedLink(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 aCopiedLinkrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassociationClassIdrecord component.Returns the value of thecardinalityFromrecord component.Returns the value of thecardinalityTorecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefromClassIdrecord component.Returns the value of thefromFieldIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelabelFromrecord component.labelTo()Returns the value of thelabelTorecord component.layout()Returns the value of thelayoutrecord component.Returns the value of thelineColorrecord component.name()Returns the value of thenamerecord component.sourceId()Returns the value of thesourceIdrecord component.Returns the value of thetoClassIdrecord component.Returns the value of thetoFieldIdrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aCopiedLinkrecord class.- Parameters:
sourceId- the value for thesourceIdrecord componentname- the value for thenamerecord componentlineColor- the value for thelineColorrecord componentassociationClassId- the value for theassociationClassIdrecord componentfromClassId- the value for thefromClassIdrecord componentfromFieldId- the value for thefromFieldIdrecord componenttoClassId- the value for thetoClassIdrecord componenttoFieldId- the value for thetoFieldIdrecord componentcardinalityFrom- the value for thecardinalityFromrecord componentcardinalityTo- the value for thecardinalityTorecord componentlabelFrom- the value for thelabelFromrecord componentlabelTo- the value for thelabelTorecord componentlayout- the value for thelayoutrecord 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). -
sourceId
Returns the value of thesourceIdrecord component.- Returns:
- the value of the
sourceIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
lineColor
Returns the value of thelineColorrecord component.- Returns:
- the value of the
lineColorrecord component
-
associationClassId
Returns the value of theassociationClassIdrecord component.- Returns:
- the value of the
associationClassIdrecord component
-
fromClassId
Returns the value of thefromClassIdrecord component.- Returns:
- the value of the
fromClassIdrecord component
-
fromFieldId
Returns the value of thefromFieldIdrecord component.- Returns:
- the value of the
fromFieldIdrecord component
-
toClassId
Returns the value of thetoClassIdrecord component.- Returns:
- the value of the
toClassIdrecord component
-
toFieldId
Returns the value of thetoFieldIdrecord component.- Returns:
- the value of the
toFieldIdrecord component
-
cardinalityFrom
Returns the value of thecardinalityFromrecord component.- Returns:
- the value of the
cardinalityFromrecord component
-
cardinalityTo
Returns the value of thecardinalityTorecord component.- Returns:
- the value of the
cardinalityTorecord component
-
labelFrom
Returns the value of thelabelFromrecord component.- Returns:
- the value of the
labelFromrecord component
-
labelTo
Returns the value of thelabelTorecord component.- Returns:
- the value of the
labelTorecord component
-
layout
Returns the value of thelayoutrecord component.- Returns:
- the value of the
layoutrecord component
-