Class ClassificationNotBlankValidator
- java.lang.Object
-
- de.hybris.platform.b2ctelcoservices.constraints.ClassificationNotBlankValidator
-
- All Implemented Interfaces:
javax.validation.ConstraintValidator<ClassificationNotBlank,java.lang.Object>
public class ClassificationNotBlankValidator extends java.lang.Object implements javax.validation.ConstraintValidator<ClassificationNotBlank,java.lang.Object>
Validates that if the givenProductModelhas 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 definitionClassificationNotBlankConstraint.
-
-
Constructor Summary
Constructors Constructor Description ClassificationNotBlankValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(ClassificationNotBlank constraintAnnotation)booleanisValid(java.lang.Object value, javax.validation.ConstraintValidatorContext context)
-
-
-
Method Detail
-
initialize
public void initialize(ClassificationNotBlank constraintAnnotation)
- Specified by:
initializein interfacejavax.validation.ConstraintValidator<ClassificationNotBlank,java.lang.Object>
-
isValid
public boolean isValid(java.lang.Object value, javax.validation.ConstraintValidatorContext context)- Specified by:
isValidin interfacejavax.validation.ConstraintValidator<ClassificationNotBlank,java.lang.Object>
-
-