Record Class CopiedClass
java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.ui.canvas.datastruct.CopiedClass
- Record Components:
sourceId- id of the element to read or modifyconceptualName- name value to usetechnicalName- name value to usevisibleInConceptual- whether visible in conceptual is enabledvisibleInLogical- whether visible in logical is enabledvisibleInPhysical- whether visible in physical is enabledtextColor- color value to usebackgroundColor- color value to useborderColor- color value to usefields- values for fieldslayout- layout object to read or update
public record CopiedClass(String sourceId, String conceptualName, String technicalName, boolean visibleInConceptual, boolean visibleInLogical, boolean visibleInPhysical, Color textColor, Color backgroundColor, Color borderColor, List<CopiedField> fields, CopiedNodeLayout layout)
extends Record
Class model and layout data stored in the clipboard snapshot.
-
Constructor Summary
ConstructorsConstructorDescriptionCopiedClass(String sourceId, String conceptualName, String technicalName, boolean visibleInConceptual, boolean visibleInLogical, boolean visibleInPhysical, Color textColor, Color backgroundColor, Color borderColor, List<CopiedField> fields, CopiedNodeLayout layout) Creates an instance of aCopiedClassrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackgroundColorrecord component.Returns the value of theborderColorrecord component.Returns the value of theconceptualNamerecord component.final booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.final inthashCode()Returns a hash code value for this object.layout()Returns the value of thelayoutrecord component.sourceId()Returns the value of thesourceIdrecord component.Returns the value of thetechnicalNamerecord component.Returns the value of thetextColorrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thevisibleInConceptualrecord component.booleanReturns the value of thevisibleInLogicalrecord component.booleanReturns the value of thevisibleInPhysicalrecord component.
-
Constructor Details
-
CopiedClass
public CopiedClass(String sourceId, String conceptualName, String technicalName, boolean visibleInConceptual, boolean visibleInLogical, boolean visibleInPhysical, Color textColor, Color backgroundColor, Color borderColor, List<CopiedField> fields, CopiedNodeLayout layout) Creates an instance of aCopiedClassrecord class.- Parameters:
sourceId- the value for thesourceIdrecord componentconceptualName- the value for theconceptualNamerecord componenttechnicalName- the value for thetechnicalNamerecord componentvisibleInConceptual- the value for thevisibleInConceptualrecord componentvisibleInLogical- the value for thevisibleInLogicalrecord componentvisibleInPhysical- the value for thevisibleInPhysicalrecord componenttextColor- the value for thetextColorrecord componentbackgroundColor- the value for thebackgroundColorrecord componentborderColor- the value for theborderColorrecord componentfields- the value for thefieldsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
sourceId
Returns the value of thesourceIdrecord component.- Returns:
- the value of the
sourceIdrecord component
-
conceptualName
Returns the value of theconceptualNamerecord component.- Returns:
- the value of the
conceptualNamerecord component
-
technicalName
Returns the value of thetechnicalNamerecord component.- Returns:
- the value of the
technicalNamerecord component
-
visibleInConceptual
public boolean visibleInConceptual()Returns the value of thevisibleInConceptualrecord component.- Returns:
- the value of the
visibleInConceptualrecord component
-
visibleInLogical
public boolean visibleInLogical()Returns the value of thevisibleInLogicalrecord component.- Returns:
- the value of the
visibleInLogicalrecord component
-
visibleInPhysical
public boolean visibleInPhysical()Returns the value of thevisibleInPhysicalrecord component.- Returns:
- the value of the
visibleInPhysicalrecord component
-
textColor
Returns the value of thetextColorrecord component.- Returns:
- the value of the
textColorrecord component
-
backgroundColor
Returns the value of thebackgroundColorrecord component.- Returns:
- the value of the
backgroundColorrecord component
-
borderColor
Returns the value of theborderColorrecord component.- Returns:
- the value of the
borderColorrecord component
-
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-
layout
Returns the value of thelayoutrecord component.- Returns:
- the value of the
layoutrecord component
-