Package model.validation
Class UniqueSectionNameValidator
- java.lang.Object
-
- model.validation.UniqueSectionNameValidator
-
- All Implemented Interfaces:
ConstraintValidator<UniqueSection,String>
public class UniqueSectionNameValidator extends Object implements ConstraintValidator<UniqueSection,String>
-
-
Constructor Summary
Constructors Constructor Description UniqueSectionNameValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(UniqueSection uniqueSection)
boolean
isValid(String name, ConstraintValidatorContext constraintValidatorContext)
-
-
-
Constructor Detail
-
UniqueSectionNameValidator
public UniqueSectionNameValidator()
-
-
Method Detail
-
initialize
public void initialize(UniqueSection uniqueSection)
- Specified by:
initialize
in interfaceConstraintValidator<UniqueSection,String>
-
isValid
public boolean isValid(String name, ConstraintValidatorContext constraintValidatorContext)
- Specified by:
isValid
in interfaceConstraintValidator<UniqueSection,String>
-
-