public final class PropertyValidator extends Object implements Validator<Property>, ContentValidator<Parameter>
ASSERT_NONE_MESSAGE, ASSERT_ONE_MESSAGE, ASSERT_ONE_OR_LESS_MESSAGE, ASSERT_ONE_OR_MORE_MESSAGE
Constructor and Description |
---|
PropertyValidator(List<ValidationRule<Property>> rules) |
Modifier and Type | Method and Description |
---|---|
void |
validate(Property target)
Validates the associated model against an applicable standard.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
assertFalse
assertNone, assertOne, assertOneOrLess, assertOneOrMore
public PropertyValidator(List<ValidationRule<Property>> rules)
public void validate(Property target) throws ValidationException
Validator
validate
in interface Validator<Property>
ValidationException
- where the model does not confirm to the applicable standard