Package io.jmix.dynmodelai.model
Record Class DraftPreview.Attribute
java.lang.Object
java.lang.Record
io.jmix.dynmodelai.model.DraftPreview.Attribute
- Enclosing class:
DraftPreview
public static record DraftPreview.Attribute(String name, String caption, String type, boolean required, boolean unique, boolean instanceName, @Nullable Integer length)
extends Record
Attributes retain their order in the candidate model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaption()Returns the value of thecaptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theinstanceNamerecord component.@Nullable Integerlength()Returns the value of thelengthrecord component.name()Returns the value of thenamerecord component.booleanrequired()Returns the value of therequiredrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.booleanunique()Returns the value of theuniquerecord component.
-
Constructor Details
-
Attribute
public Attribute(String name, String caption, String type, boolean required, boolean unique, boolean instanceName, @Nullable Integer length) Creates an instance of aAttributerecord class.- Parameters:
name- the value for thenamerecord componentcaption- the value for thecaptionrecord componenttype- the value for thetyperecord componentrequired- the value for therequiredrecord componentunique- the value for theuniquerecord componentinstanceName- the value for theinstanceNamerecord componentlength- the value for thelengthrecord 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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
caption
Returns the value of thecaptionrecord component.- Returns:
- the value of the
captionrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
required
public boolean required()Returns the value of therequiredrecord component.- Returns:
- the value of the
requiredrecord component
-
unique
public boolean unique()Returns the value of theuniquerecord component.- Returns:
- the value of the
uniquerecord component
-
instanceName
public boolean instanceName()Returns the value of theinstanceNamerecord component.- Returns:
- the value of the
instanceNamerecord component
-
length
Returns the value of thelengthrecord component.- Returns:
- the value of the
lengthrecord component
-