com.avaje.ebean.validation.factory
Class AssertTrueValidatorFactory.AssertTrueValidator

java.lang.Object
  extended by com.avaje.ebean.validation.factory.NoAttributesValidator
      extended by com.avaje.ebean.validation.factory.AssertTrueValidatorFactory.AssertTrueValidator
All Implemented Interfaces:
Validator
Enclosing class:
AssertTrueValidatorFactory

public static class AssertTrueValidatorFactory.AssertTrueValidator
extends NoAttributesValidator


Constructor Summary
AssertTrueValidatorFactory.AssertTrueValidator()
           
 
Method Summary
 String getKey()
          Return a String key used to identify the validator.
 boolean isValid(Object value)
          Return true if the value is valid.
 
Methods inherited from class com.avaje.ebean.validation.factory.NoAttributesValidator
getAttributes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssertTrueValidatorFactory.AssertTrueValidator

public AssertTrueValidatorFactory.AssertTrueValidator()
Method Detail

getKey

public String getKey()
Description copied from interface: Validator
Return a String key used to identify the validator.

This is used to identify the type of validation error and look up a localised error message.


isValid

public boolean isValid(Object value)
Description copied from interface: Validator
Return true if the value is valid.

Parameters:
value - the property value being tested.


Copyright © 2010. All Rights Reserved.