public class ArgumentsValidator
extends java.lang.Object
ValidatorFactory
.Constructor and Description |
---|
ArgumentsValidator()
Creates a new instance using the default factory.
|
ArgumentsValidator(ValidatorFactory factory)
Creates a new instance using the given validator factory.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(java.lang.reflect.Executable executable,
java.lang.Object... args)
Checks if the arguments are valid using the annotations defined in the
parameters.
|
public ArgumentsValidator()
public ArgumentsValidator(ValidatorFactory factory)
factory
- the factory to create validators.public boolean isValid(java.lang.reflect.Executable executable, java.lang.Object... args)
executable
- the executable to extract the parametersargs
- the arguments passedtrue
if all arguments are valid or none of the
parameters has constraints.