Class ClassificationNotBlankValidator
java.lang.Object
de.hybris.platform.b2ctelcoservices.constraints.ClassificationNotBlankValidator
- All Implemented Interfaces:
javax.validation.ConstraintValidator<ClassificationNotBlank,Object>
public class ClassificationNotBlankValidator
extends Object
implements javax.validation.ConstraintValidator<ClassificationNotBlank,Object>
Validates that if the given
ProductModel has a certain category then the assigned classification attribute
must not be empty or null. The product's category and classification combination to be checked is stored in the
constraint definition ClassificationNotBlankConstraint.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(ClassificationNotBlank constraintAnnotation) boolean
-
Constructor Details
-
ClassificationNotBlankValidator
public ClassificationNotBlankValidator()
-
-
Method Details
-
initialize
- Specified by:
initializein interfacejavax.validation.ConstraintValidator<ClassificationNotBlank,Object>
-
isValid
- Specified by:
isValidin interfacejavax.validation.ConstraintValidator<ClassificationNotBlank,Object>
-