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 displaylineColor- color value to usefromClassId- id of the element to read or modifytoClassId- id of the element to read or modifyfromFieldId- 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 operationassociationClassId- id of the element to read or modifylabelFrom- text value for label fromlabelTo- 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 Summary
Constructors -
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.Returns the value of thelineColorrecord component.name()Returns the value of thenamerecord 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
-
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 aResultrecord class.- Parameters:
name- the value for thenamerecord componentlineColor- the value for thelineColorrecord componentfromClassId- the value for thefromClassIdrecord componenttoClassId- the value for thetoClassIdrecord componentfromFieldId- the value for thefromFieldIdrecord componenttoFieldId- the value for thetoFieldIdrecord componentcardinalityFrom- the value for thecardinalityFromrecord componentcardinalityTo- the value for thecardinalityTorecord componentassociationClassId- the value for theassociationClassIdrecord componentlabelFrom- the value for thelabelFromrecord componentlabelTo- the value for thelabelTorecord 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). -
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
-
fromClassId
Returns the value of thefromClassIdrecord component.- Returns:
- the value of the
fromClassIdrecord component
-
toClassId
Returns the value of thetoClassIdrecord component.- Returns:
- the value of the
toClassIdrecord component
-
fromFieldId
Returns the value of thefromFieldIdrecord component.- Returns:
- the value of the
fromFieldIdrecord 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
-
associationClassId
Returns the value of theassociationClassIdrecord component.- Returns:
- the value of the
associationClassIdrecord 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
-