Record Class CopiedField

java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.ui.canvas.datastruct.CopiedField
Record Components:
ownerClassId - id of the element to read or modify
sourceId - id of the element to read or modify
name - name value to read, write, or display
technicalName - name value to use
notConceptual - whether not conceptual is enabled
primaryKey - whether primary key is enabled
unique - whether unique is enabled
notNull - whether not null is enabled
type - type value that selects the operation mode
textColor - color value to use
backgroundColor - color value to use

public record CopiedField(String ownerClassId, String sourceId, String name, String technicalName, boolean notConceptual, boolean primaryKey, boolean unique, boolean notNull, String type, Color textColor, Color backgroundColor) extends Record
Field model stored in the clipboard snapshot.
  • Constructor Details

    • CopiedField

      public CopiedField(String ownerClassId, String sourceId, String name, String technicalName, boolean notConceptual, boolean primaryKey, boolean unique, boolean notNull, String type, Color textColor, Color backgroundColor)
      Creates an instance of a CopiedField record class.
      Parameters:
      ownerClassId - the value for the ownerClassId record component
      sourceId - the value for the sourceId record component
      name - the value for the name record component
      technicalName - the value for the technicalName record component
      notConceptual - the value for the notConceptual record component
      primaryKey - the value for the primaryKey record component
      unique - the value for the unique record component
      notNull - the value for the notNull record component
      type - the value for the type record component
      textColor - the value for the textColor record component
      backgroundColor - the value for the backgroundColor 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • ownerClassId

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

      public String technicalName()
      Returns the value of the technicalName record component.
      Returns:
      the value of the technicalName record component
    • notConceptual

      public boolean notConceptual()
      Returns the value of the notConceptual record component.
      Returns:
      the value of the notConceptual record component
    • primaryKey

      public boolean primaryKey()
      Returns the value of the primaryKey record component.
      Returns:
      the value of the primaryKey record component
    • unique

      public boolean unique()
      Returns the value of the unique record component.
      Returns:
      the value of the unique record component
    • notNull

      public boolean notNull()
      Returns the value of the notNull record component.
      Returns:
      the value of the notNull record component
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • textColor

      public Color textColor()
      Returns the value of the textColor record component.
      Returns:
      the value of the textColor record component
    • backgroundColor

      public Color backgroundColor()
      Returns the value of the backgroundColor record component.
      Returns:
      the value of the backgroundColor record component