Class ProductOptionValidator.AttributeChoiceValidator
java.lang.Object
com.broadleafcommerce.catalog.service.validation.ProductOptionValidator.AttributeChoiceValidator
- Enclosing class:
- ProductOptionValidator
Inner class specifically responsible for validation of
ProductOption.getAttributeChoice()
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
validate
(String productOptionType, AttributeChoice attributeChoice, org.springframework.validation.Errors errors) protected void
validateAllowedValues
(String productOptionType, AttributeChoice attributeChoice, org.springframework.validation.Errors errors) protected void
validateAttributeChoiceValue
(org.springframework.validation.Errors errors) protected void
validateAttributeName
(org.springframework.validation.Errors errors) protected void
validateType
(org.springframework.validation.Errors errors) protected void
validateValidationFields
(AttributeChoice attributeChoice, org.springframework.validation.Errors errors)
-
Constructor Details
-
AttributeChoiceValidator
protected AttributeChoiceValidator()
-
-
Method Details
-
validate
public void validate(String productOptionType, AttributeChoice attributeChoice, org.springframework.validation.Errors errors) -
validateAttributeName
protected void validateAttributeName(org.springframework.validation.Errors errors) -
validateType
protected void validateType(org.springframework.validation.Errors errors) -
validateValidationFields
protected void validateValidationFields(AttributeChoice attributeChoice, org.springframework.validation.Errors errors) -
validateAllowedValues
protected void validateAllowedValues(String productOptionType, AttributeChoice attributeChoice, org.springframework.validation.Errors errors) -
validateAttributeChoiceValue
protected void validateAttributeChoiceValue(org.springframework.validation.Errors errors)
-