play.data.validation
类 UniqueCheck

java.lang.Object
  继承者 net.sf.oval.AbstractCheck
      继承者 net.sf.oval.configuration.annotation.AbstractAnnotationCheck<Unique>
          继承者 play.data.validation.UniqueCheck
所有已实现的接口:
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.

另请参见:
序列化表格

构造方法摘要
UniqueCheck()
           
 
方法摘要
 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)
          
 
从类 net.sf.oval.AbstractCheck 继承的方法
getAppliesTo, getAppliesToDefault, getContext, getErrorCode, getMessage, getMessageVariables, getProfiles, getSeverity, getWhen, isActive, requireMessageVariablesRecreation, setAppliesTo, setContext, setErrorCode, setMessage, setProfiles, setSeverity, setWhen
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 net.sf.oval.Check 继承的方法
getAppliesTo, getContext, getErrorCode, getMessage, getMessageVariables, getProfiles, getSeverity, getWhen, isActive, setAppliesTo, setContext, setErrorCode, setMessage, setProfiles, setSeverity, setWhen
 

构造方法详细信息

UniqueCheck

public UniqueCheck()
方法详细信息

configure

public void configure(Unique constraintAnnotation)
指定者:
接口 net.sf.oval.configuration.annotation.AnnotationCheck<Unique> 中的 configure
覆盖:
net.sf.oval.configuration.annotation.AbstractAnnotationCheck<Unique> 中的 configure

createMessageVariables

public java.util.Map<java.lang.String,java.lang.String> createMessageVariables()
覆盖:
net.sf.oval.AbstractCheck 中的 createMessageVariables

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