T - the type to be validated.public class CombiningValidator<T> extends Object implements Validator<T>
| Constructor and Description |
|---|
CombiningValidator(List<Validator<T>> validators) |
CombiningValidator(Validator<T>... validators) |
| Modifier and Type | Method and Description |
|---|---|
List<Validator<T>> |
getValidators() |
void |
registerValidationListener(ValidationListener validationListener)
Components that are interested in the result of the token validation can
register a validation listener which is called whenever a token is validated.
|
void |
removeValidationListener(ValidationListener validationListener)
Use this method to remove a registered listener so that it is not called
anymore.
|
String |
toString() |
ValidationResult |
validate(T t)
Validates the given object.
|
public ValidationResult validate(T t)
Validatorvalidate in interface Validator<T>t - the object of type T to be validated.ValidationResult.public void registerValidationListener(ValidationListener validationListener)
ValidationListener interface.validationListener - the listener to be added.public void removeValidationListener(ValidationListener validationListener)
validationListener - the listener to be removed.Copyright © 2020. All rights reserved.