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) Deprecated, for removal: This API element is subject to removal in a future version.since CatalogServices 1.9.0, allowed values are no longer validatedprotected 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
@Deprecated(since="1.9.0", forRemoval=true) protected void validateAllowedValues(String productOptionType, AttributeChoice attributeChoice, org.springframework.validation.Errors errors) Deprecated, for removal: This API element is subject to removal in a future version.since CatalogServices 1.9.0, allowed values are no longer validated -
validateAttributeChoiceValue
protected void validateAttributeChoiceValue(org.springframework.validation.Errors errors)
-