org.apache.cayenne.annotations.validators
Class FutureCheck

java.lang.Object
  extended by net.sf.oval.AbstractAnnotationCheck<Future>
      extended by org.apache.cayenne.annotations.validators.FutureCheck
All Implemented Interfaces:
java.io.Serializable, net.sf.oval.AnnotationCheck<Future>, net.sf.oval.Check

public class FutureCheck
extends net.sf.oval.AbstractAnnotationCheck<Future>

Check for the future annotation

Author:
Steve Wells
See Also:
@org.apache.cayenne.annotations.validators.Future, Serialized Form

Field Summary
 
Fields inherited from class net.sf.oval.AbstractAnnotationCheck
constraintAnnotation, message
 
Constructor Summary
FutureCheck()
           
 
Method Summary
 void configure(Future future)
           
 int getDaysFromNow()
           
 boolean isSatisfied(java.lang.Object validatedObject, java.lang.Object value, net.sf.oval.contexts.OValContext context)
           
 void setDaysFromNow(int daysFromNow)
           
 
Methods inherited from class net.sf.oval.AbstractAnnotationCheck
getConstraintAnnotation, getMessage, getMessageValues, setMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FutureCheck

public FutureCheck()
Method Detail

getDaysFromNow

public int getDaysFromNow()
Returns:

setDaysFromNow

public void setDaysFromNow(int daysFromNow)

configure

public void configure(Future future)
Specified by:
configure in interface net.sf.oval.AnnotationCheck<Future>
Overrides:
configure in class net.sf.oval.AbstractAnnotationCheck<Future>

isSatisfied

public boolean isSatisfied(java.lang.Object validatedObject,
                           java.lang.Object value,
                           net.sf.oval.contexts.OValContext context)


Copyright © 2007. All Rights Reserved.