play.data.validation
Class UniqueCheck

java.lang.Object
  extended by net.sf.oval.AbstractCheck
      extended by net.sf.oval.configuration.annotation.AbstractAnnotationCheck<Unique>
          extended by play.data.validation.UniqueCheck
All Implemented Interfaces:
java.io.Serializable, net.sf.oval.Check, net.sf.oval.configuration.annotation.AnnotationCheck<Unique>

public class UniqueCheck
extends net.sf.oval.configuration.annotation.AbstractAnnotationCheck<Unique>

Check which proof if one or a set of properties is unique.

See Also:
Serialized Form

Constructor Summary
UniqueCheck()
           
 
Method Summary
 void configure(Unique constraintAnnotation)
           
 java.util.Map<java.lang.String,java.lang.String> createMessageVariables()
           
 boolean isSatisfied(java.lang.Object validatedObject, java.lang.Object value, net.sf.oval.context.OValContext context, net.sf.oval.Validator validator)
          
 
Methods inherited from class net.sf.oval.AbstractCheck
getAppliesTo, getAppliesToDefault, getContext, getErrorCode, getMessage, getMessageVariables, getProfiles, getSeverity, getWhen, isActive, requireMessageVariablesRecreation, setAppliesTo, setContext, setErrorCode, setMessage, setProfiles, setSeverity, setWhen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.oval.Check
getAppliesTo, getContext, getErrorCode, getMessage, getMessageVariables, getProfiles, getSeverity, getWhen, isActive, setAppliesTo, setContext, setErrorCode, setMessage, setProfiles, setSeverity, setWhen
 

Constructor Detail

UniqueCheck

public UniqueCheck()
Method Detail

configure

public void configure(Unique constraintAnnotation)
Specified by:
configure in interface net.sf.oval.configuration.annotation.AnnotationCheck<Unique>
Overrides:
configure in class net.sf.oval.configuration.annotation.AbstractAnnotationCheck<Unique>

createMessageVariables

public java.util.Map<java.lang.String,java.lang.String> createMessageVariables()
Overrides:
createMessageVariables in class net.sf.oval.AbstractCheck

isSatisfied

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



Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly