Class BusinessTypeField
java.lang.Object
com.broadleafcommerce.catalog.domain.product.type.BusinessTypeField
- All Implemented Interfaces:
Serializable
Represents a field common to products based on the parent
BusinessType
. This defines
various metadata for the field, not the value. The value is stored on the Product
(in the
Product.getAttributes()
by default).- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Additional arbitrary attributes.The type of change that this field represents.The fields classifier, typically eitherField
orExternal
.The default value for the field.getLabel()
The display label for this field.getName()
The name of the field.getOrder()
The display order.Augmentation target key.The timestamp of when this was created.getType()
The type of field, e.g.,STRING
,DECIMAL
,MONEY
etc.Validation rules to run against the field's value.int
hashCode()
boolean
isHidden()
Whether the field should be hidden in admin forms.boolean
Whether the field should be read-only in admin forms.boolean
Whether the field is required in admin forms.void
setAttributes
(Map<String, Object> attributes) Additional arbitrary attributes.void
setChangeType
(String changeType) The type of change that this field represents.void
setClassifier
(String classifier) The fields classifier, typically eitherField
orExternal
.void
setDefaultValue
(Object defaultValue) The default value for the field.void
setHidden
(boolean hidden) Whether the field should be hidden in admin forms.void
The display label for this field.void
The name of the field.void
The display order.void
setReadOnly
(boolean readOnly) Whether the field should be read-only in admin forms.void
setRequired
(boolean required) Whether the field is required in admin forms.void
setTargetKey
(String targetKey) Augmentation target key.void
setTimestamp
(Instant timestamp) The timestamp of when this was created.void
The type of field, e.g.,STRING
,DECIMAL
,MONEY
etc.void
setValidationSchema
(ValidationSchema validationSchema) Validation rules to run against the field's value.toString()
-
Constructor Details
-
BusinessTypeField
public BusinessTypeField()
-
-
Method Details
-
getName
The name of the field. This is used in the business logic. -
getLabel
The display label for this field. -
isRequired
public boolean isRequired()Whether the field is required in admin forms. -
isReadOnly
public boolean isReadOnly()Whether the field should be read-only in admin forms. -
isHidden
public boolean isHidden()Whether the field should be hidden in admin forms. -
getDefaultValue
The default value for the field. -
getType
The type of field, e.g.,STRING
,DECIMAL
,MONEY
etc. Seecom.broadleafcommerce.metadata.dsl.core.extension.fields.FieldTypes
. -
getClassifier
The fields classifier, typically eitherField
orExternal
. -
getValidationSchema
Validation rules to run against the field's value. -
getTargetKey
Augmentation target key. -
getOrder
The display order. -
getChangeType
The type of change that this field represents. This is used to determine how to handle the field in the admin. -
getTimestamp
The timestamp of when this was created. Used for determining the order of operations when applying augmentations. -
getAttributes
Additional arbitrary attributes. -
setName
The name of the field. This is used in the business logic. -
setLabel
The display label for this field. -
setRequired
public void setRequired(boolean required) Whether the field is required in admin forms. -
setReadOnly
public void setReadOnly(boolean readOnly) Whether the field should be read-only in admin forms. -
setHidden
public void setHidden(boolean hidden) Whether the field should be hidden in admin forms. -
setDefaultValue
The default value for the field. -
setType
The type of field, e.g.,STRING
,DECIMAL
,MONEY
etc. Seecom.broadleafcommerce.metadata.dsl.core.extension.fields.FieldTypes
. -
setClassifier
The fields classifier, typically eitherField
orExternal
. -
setValidationSchema
Validation rules to run against the field's value. -
setTargetKey
Augmentation target key. -
setOrder
The display order. -
setChangeType
The type of change that this field represents. This is used to determine how to handle the field in the admin. -
setTimestamp
The timestamp of when this was created. Used for determining the order of operations when applying augmentations. -
setAttributes
Additional arbitrary attributes. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-