org.apache.cayenne.annotations.validators
Class PastCheck
java.lang.Object
net.sf.oval.AbstractAnnotationCheck<Past>
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
Fields inherited from class net.sf.oval.AbstractAnnotationCheck |
constraintAnnotation, message |
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 |
PastCheck
public PastCheck()
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.