Serializable
, ContentValidator<Property>
, Validator<T>
VEventValidator
, VTimeZoneValidator
, VToDoValidator
public class ComponentValidator<T extends Component> extends Object implements Validator<T>, ContentValidator<Property>
ASSERT_NONE_MESSAGE, ASSERT_ONE_MESSAGE, ASSERT_ONE_OR_LESS_MESSAGE, ASSERT_ONE_OR_MORE_MESSAGE
Constructor | Description |
---|---|
ComponentValidator(ValidationRule<T>... rules) |
Modifier and Type | Method | Description |
---|---|---|
void |
validate(T 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 ComponentValidator(ValidationRule<T>... rules)
public void validate(T target) throws ValidationException
Validator
validate
in interface Validator<T extends Component>
ValidationException
- where the model does not confirm to the applicable standard