public class FutureValidatorForReadablePartial extends Object implements ConstraintValidator<Future,ReadablePartial>
org.joda.time.ReadablePartial
is in the future.Constructor and Description |
---|
FutureValidatorForReadablePartial() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(Future constraintAnnotation)
Initialize the validator in preparation for isValid calls.
|
boolean |
isValid(ReadablePartial value,
ConstraintValidatorContext context)
Implement the validation logic.
|
public void initialize(Future constraintAnnotation)
ConstraintValidator
initialize
in interface ConstraintValidator<Future,ReadablePartial>
constraintAnnotation
- annotation instance for a given constraint declarationpublic boolean isValid(ReadablePartial value, ConstraintValidatorContext context)
ConstraintValidator
value
must not be altered.
This method can be accessed concurrently, thread-safety must be ensured
by the implementation.isValid
in interface ConstraintValidator<Future,ReadablePartial>
value
- object to validatecontext
- context in which the constraint is evaluatedvalue
does not pass the constraintCopyright © 2012 JBoss by Red Hat. All Rights Reserved.