Class EnumCharacteristicValueValidator

java.lang.Object
com.broadleafcommerce.catalog.service.validation.characteristic.EnumCharacteristicValueValidator
All Implemented Interfaces:
CharacteristicValueValidator

public class EnumCharacteristicValueValidator extends Object implements CharacteristicValueValidator
An implementation of CharacteristicValueValidator that handles validation for the CharacteristicValue of a Characteristic with an ENUM Characteristic.valueType.

This has separate handling from SimpleCharacteristicValueValidator because a Characteristic with ENUM value type can have multiple value entries whose value types can be BOOLEAN, DECIMAL, INTEGER, or STRING, and also has a label for each value entry.

Since:
Catalog Service 2.2.0, Release Train 2.2.0
Author:
Julia Lopez-Pozas (jlopezpozas)