Package io.jmix.dynmodelai.model
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordAttributes retain their order in the candidate model.static final recordstatic final recordIncludes the standard identifier for a typed view when its definition omits one.static enum -
Constructor Summary
ConstructorsConstructorDescriptionDraftPreview(String entityName, String caption, boolean removed, @Nullable String store, List<DraftPreview.Attribute> attributes, List<DraftPreview.View> views) Creates an instance of aDraftPreviewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.caption()Returns the value of thecaptionrecord component.Returns the value of theentityNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanremoved()Returns the value of theremovedrecord component.@Nullable Stringstore()Returns the value of thestorerecord component.final StringtoString()Returns a string representation of this record class.views()Returns the value of theviewsrecord component.
-
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 aDraftPreviewrecord class.- Parameters:
entityName- the value for theentityNamerecord componentcaption- the value for thecaptionrecord componentremoved- the value for theremovedrecord componentstore- the value for thestorerecord componentattributes- the value for theattributesrecord componentviews- the value for theviewsrecord 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 '=='. -
entityName
Returns the value of theentityNamerecord component.- Returns:
- the value of the
entityNamerecord component
-
caption
Returns the value of thecaptionrecord component.- Returns:
- the value of the
captionrecord component
-
removed
public boolean removed()Returns the value of theremovedrecord component.- Returns:
- the value of the
removedrecord component
-
store
Returns the value of thestorerecord component.- Returns:
- the value of the
storerecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-
views
Returns the value of theviewsrecord component.- Returns:
- the value of the
viewsrecord component
-