Package com.onec.metadata
Record Class AttributeDescriptor
java.lang.Object
java.lang.Record
com.onec.metadata.AttributeDescriptor
public record AttributeDescriptor(String fieldName, String displayName, String columnName, Class<?> javaType, int length, boolean required, boolean isRef, String refTarget, int precision, int scale, boolean visibleInList, boolean visibleInForm, boolean visibleInDetail, int order, String group, String widthHint, String widget, AttributeDescriptor.Constraints constraints, boolean secret, List<String> previousNames)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordDeclarative validation bounds for an attribute, from@Attribute. -
Constructor Summary
ConstructorsConstructorDescriptionAttributeDescriptor(String fieldName, String displayName, String columnName, Class<?> javaType, int length, boolean required, boolean isRef, String refTarget, int precision, int scale, boolean visibleInList, boolean visibleInForm, boolean visibleInDetail, int order, String group, String widthHint, String widget, AttributeDescriptor.Constraints constraints, boolean secret) Backward-compatible constructor for callers predatingpreviousNames.AttributeDescriptor(String fieldName, String displayName, String columnName, Class<?> javaType, int length, boolean required, boolean isRef, String refTarget, int precision, int scale, boolean visibleInList, boolean visibleInForm, boolean visibleInDetail, int order, String group, String widthHint, String widget, AttributeDescriptor.Constraints constraints, boolean secret, List<String> previousNames) Creates an instance of aAttributeDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecolumnNamerecord component.Returns the value of theconstraintsrecord component.Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldNamerecord component.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.booleanisRef()Returns the value of theisRefrecord component.Class<?> javaType()Returns the value of thejavaTyperecord component.intlength()Returns the value of thelengthrecord component.intorder()Returns the value of theorderrecord component.intReturns the value of theprecisionrecord component.Returns the value of thepreviousNamesrecord component.Returns the value of therefTargetrecord component.booleanrequired()Returns the value of therequiredrecord component.intscale()Returns the value of thescalerecord component.booleansecret()Returns the value of thesecretrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thevisibleInDetailrecord component.booleanReturns the value of thevisibleInFormrecord component.booleanReturns the value of thevisibleInListrecord component.widget()Returns the value of thewidgetrecord component.Returns the value of thewidthHintrecord component.
-
Constructor Details
-
AttributeDescriptor
public AttributeDescriptor(String fieldName, String displayName, String columnName, Class<?> javaType, int length, boolean required, boolean isRef, String refTarget, int precision, int scale, boolean visibleInList, boolean visibleInForm, boolean visibleInDetail, int order, String group, String widthHint, String widget, AttributeDescriptor.Constraints constraints, boolean secret) Backward-compatible constructor for callers predatingpreviousNames. -
AttributeDescriptor
public AttributeDescriptor(String fieldName, String displayName, String columnName, Class<?> javaType, int length, boolean required, boolean isRef, String refTarget, int precision, int scale, boolean visibleInList, boolean visibleInForm, boolean visibleInDetail, int order, String group, String widthHint, String widget, AttributeDescriptor.Constraints constraints, boolean secret, List<String> previousNames) Creates an instance of aAttributeDescriptorrecord class.- Parameters:
fieldName- the value for thefieldNamerecord componentdisplayName- the value for thedisplayNamerecord componentcolumnName- the value for thecolumnNamerecord componentjavaType- the value for thejavaTyperecord componentlength- the value for thelengthrecord componentrequired- the value for therequiredrecord componentisRef- the value for theisRefrecord componentrefTarget- the value for therefTargetrecord componentprecision- the value for theprecisionrecord componentscale- the value for thescalerecord componentvisibleInList- the value for thevisibleInListrecord componentvisibleInForm- the value for thevisibleInFormrecord componentvisibleInDetail- the value for thevisibleInDetailrecord componentorder- the value for theorderrecord componentgroup- the value for thegrouprecord componentwidthHint- the value for thewidthHintrecord componentwidget- the value for thewidgetrecord componentconstraints- the value for theconstraintsrecord componentsecret- the value for thesecretrecord componentpreviousNames- the value for thepreviousNamesrecord 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 '=='. -
fieldName
Returns the value of thefieldNamerecord component.- Returns:
- the value of the
fieldNamerecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
columnName
Returns the value of thecolumnNamerecord component.- Returns:
- the value of the
columnNamerecord component
-
javaType
Returns the value of thejavaTyperecord component.- Returns:
- the value of the
javaTyperecord component
-
length
public int length()Returns the value of thelengthrecord component.- Returns:
- the value of the
lengthrecord component
-
required
public boolean required()Returns the value of therequiredrecord component.- Returns:
- the value of the
requiredrecord component
-
isRef
public boolean isRef()Returns the value of theisRefrecord component.- Returns:
- the value of the
isRefrecord component
-
refTarget
Returns the value of therefTargetrecord component.- Returns:
- the value of the
refTargetrecord component
-
precision
public int precision()Returns the value of theprecisionrecord component.- Returns:
- the value of the
precisionrecord component
-
scale
public int scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
visibleInList
public boolean visibleInList()Returns the value of thevisibleInListrecord component.- Returns:
- the value of the
visibleInListrecord component
-
visibleInForm
public boolean visibleInForm()Returns the value of thevisibleInFormrecord component.- Returns:
- the value of the
visibleInFormrecord component
-
visibleInDetail
public boolean visibleInDetail()Returns the value of thevisibleInDetailrecord component.- Returns:
- the value of the
visibleInDetailrecord component
-
order
public int order()Returns the value of theorderrecord component.- Returns:
- the value of the
orderrecord component
-
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
widthHint
Returns the value of thewidthHintrecord component.- Returns:
- the value of the
widthHintrecord component
-
widget
Returns the value of thewidgetrecord component.- Returns:
- the value of the
widgetrecord component
-
constraints
Returns the value of theconstraintsrecord component.- Returns:
- the value of the
constraintsrecord component
-
secret
public boolean secret()Returns the value of thesecretrecord component.- Returns:
- the value of the
secretrecord component
-
previousNames
Returns the value of thepreviousNamesrecord component.- Returns:
- the value of the
previousNamesrecord component
-