Class CharacteristicValue
java.lang.Object
com.broadleafcommerce.catalog.domain.product.characteristic.CharacteristicValue
- All Implemented Interfaces:
com.broadleafcommerce.translation.mapping.SubIdentifiable
,Serializable
public class CharacteristicValue
extends Object
implements Serializable, com.broadleafcommerce.translation.mapping.SubIdentifiable
Represents a value for a
Characteristic
.- Since:
- Catalog Service 2.2.0, Release Train 2.2.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Additional custom attributes associated with extensions and complex value types, e.g., enum, variant option.The order this value should display in.Date after which this value is no longer active.getId()
getLabel()
A display label to use for complex value types like ENUM or VARIANT_OPTION.An indicator that specifies the inclusion or exclusion of the valueFrom and valueTo attributes.Date when this value begins to be active.Units used by the value.getValue()
The simple value.Lower bound for the value.Upper bound for the value.The type of this value, e.g., enum, string, etc.int
hashCode()
boolean
Whether this is the default value to use.void
setAttributes
(Map<String, Object> attributes) Additional custom attributes associated with extensions and complex value types, e.g., enum, variant option.void
setDefault
(boolean isDefault) Whether this is the default value to use.void
setDisplayOrder
(Integer displayOrder) The order this value should display in.void
setEndDate
(Instant endDate) Date after which this value is no longer active.void
void
A display label to use for complex value types like ENUM or VARIANT_OPTION.void
setRangeInterval
(String rangeInterval) An indicator that specifies the inclusion or exclusion of the valueFrom and valueTo attributes.void
setStartDate
(Instant startDate) Date when this value begins to be active.void
setUnitOfMeasure
(String unitOfMeasure) Units used by the value.void
The simple value.void
setValueFrom
(Integer valueFrom) Lower bound for the value.void
setValueTo
(Integer valueTo) Upper bound for the value.void
setValueType
(String valueType) The type of this value, e.g., enum, string, etc.toString()
-
Constructor Details
-
CharacteristicValue
public CharacteristicValue()
-
-
Method Details
-
getId
- Specified by:
getId
in interfacecom.broadleafcommerce.translation.mapping.SubIdentifiable
- See Also:
-
SubIdentifiable.getId()
-
isDefault
public boolean isDefault()Whether this is the default value to use. -
getRangeInterval
An indicator that specifies the inclusion or exclusion of the valueFrom and valueTo attributes. If applicable, possible values are "open", "closed", "closedBottom" and "closedTop".- See Also:
-
getUnitOfMeasure
Units used by the value. -
getStartDate
Date when this value begins to be active. -
getEndDate
Date after which this value is no longer active. -
getLabel
A display label to use for complex value types like ENUM or VARIANT_OPTION. -
getValue
The simple value. This should not be a complex object. If additional fields are desired such as a label, display order, or the like, refer to those fields if already present on this domain or store them inattributes
. -
getValueFrom
Lower bound for the value. -
getValueTo
Upper bound for the value. -
getValueType
The type of this value, e.g., enum, string, etc. -
getDisplayOrder
The order this value should display in. -
getAttributes
Additional custom attributes associated with extensions and complex value types, e.g., enum, variant option. -
setId
- Specified by:
setId
in interfacecom.broadleafcommerce.translation.mapping.SubIdentifiable
- See Also:
-
SubIdentifiable.getId()
-
setDefault
public void setDefault(boolean isDefault) Whether this is the default value to use. -
setRangeInterval
An indicator that specifies the inclusion or exclusion of the valueFrom and valueTo attributes. If applicable, possible values are "open", "closed", "closedBottom" and "closedTop".- See Also:
-
setUnitOfMeasure
Units used by the value. -
setStartDate
Date when this value begins to be active. -
setEndDate
Date after which this value is no longer active. -
setLabel
A display label to use for complex value types like ENUM or VARIANT_OPTION. -
setValue
The simple value. This should not be a complex object. If additional fields are desired such as a label, display order, or the like, refer to those fields if already present on this domain or store them inattributes
. -
setValueFrom
Lower bound for the value. -
setValueTo
Upper bound for the value. -
setValueType
The type of this value, e.g., enum, string, etc. -
setDisplayOrder
The order this value should display in. -
setAttributes
Additional custom attributes associated with extensions and complex value types, e.g., enum, variant option. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-