Record Class DraftPreview

java.lang.Object
java.lang.Record
io.jmix.dynmodelai.model.DraftPreview

public record DraftPreview(String entityName, String caption, boolean removed, @Nullable String store, List<DraftPreview.Attribute> attributes, List<DraftPreview.View> views) extends Record
The target entity's final configuration in a Draft, rather than a history of plan steps.
  • Constructor Details

    • DraftPreview

      public DraftPreview(String entityName, String caption, boolean removed, @Nullable String store, List<DraftPreview.Attribute> attributes, List<DraftPreview.View> views)
      Creates an instance of a DraftPreview record class.
      Parameters:
      entityName - the value for the entityName record component
      caption - the value for the caption record component
      removed - the value for the removed record component
      store - the value for the store record component
      attributes - the value for the attributes record component
      views - the value for the views 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.
    • entityName

      public String entityName()
      Returns the value of the entityName record component.
      Returns:
      the value of the entityName record component
    • caption

      public String caption()
      Returns the value of the caption record component.
      Returns:
      the value of the caption record component
    • removed

      public boolean removed()
      Returns the value of the removed record component.
      Returns:
      the value of the removed record component
    • store

      public @Nullable String store()
      Returns the value of the store record component.
      Returns:
      the value of the store record component
    • attributes

      public List<DraftPreview.Attribute> attributes()
      Returns the value of the attributes record component.
      Returns:
      the value of the attributes record component
    • views

      public List<DraftPreview.View> views()
      Returns the value of the views record component.
      Returns:
      the value of the views record component