Serializable
, ContentValidator<VEvent>
, Validator<VEvent>
public class VEventValidator extends ComponentValidator<VEvent>
ASSERT_NONE_MESSAGE, ASSERT_ONE_MESSAGE, ASSERT_ONE_OR_LESS_MESSAGE, ASSERT_ONE_OR_MORE_MESSAGE
Constructor | Description |
---|---|
VEventValidator(boolean alarmsAllowed,
ValidationRule<VEvent>... rules) |
|
VEventValidator(ValidationRule<VEvent>... rules) |
Modifier and Type | Method | Description |
---|---|---|
void |
validate(VEvent target) |
Validates the associated model against an applicable standard.
|
assertNone, assertOne, assertOneOrLess, assertOneOrMore
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
assertFalse
@SafeVarargs public VEventValidator(ValidationRule<VEvent>... rules)
@SafeVarargs public VEventValidator(boolean alarmsAllowed, ValidationRule<VEvent>... rules)
public void validate(VEvent target) throws ValidationException
Validator
validate
in interface Validator<VEvent>
validate
in class ComponentValidator<VEvent>
ValidationException
- where the model does not confirm to the applicable standard