org.apache.cayenne.annotations.validators
Class PastCheck

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

public class PastCheck
extends net.sf.oval.AbstractAnnotationCheck<Past>

Check for the Past annotation

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

Field Summary
 
Fields inherited from class net.sf.oval.AbstractAnnotationCheck
constraintAnnotation, message
 
Constructor Summary
PastCheck()
           
 
Method Summary
 void configure(Past past)
           
 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

PastCheck

public PastCheck()
Method Detail

getDaysFromNow

public int getDaysFromNow()

setDaysFromNow

public void setDaysFromNow(int daysFromNow)

configure

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

isSatisfied

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


Copyright © 2007. All Rights Reserved.