@FunctionalInterface public interface Validator<T>
Modifier and Type | Method and Description |
---|---|
void |
validate(T object,
String name)
Validate the provided object.
|
void validate(T object, String name) throws Exception
object
- object to validatename
- short string name of the object. Designed to be used in exception messages.Exception
- appropriate exception if the object is not valid.Copyright © 2019 Evolveum. All rights reserved.