jodd.vtor.constraint
Class MinConstraint

java.lang.Object
  extended by jodd.vtor.constraint.MinConstraint
All Implemented Interfaces:
ValidationConstraint<Min>

public class MinConstraint
extends java.lang.Object
implements ValidationConstraint<Min>


Field Summary
protected  double min
           
 
Constructor Summary
MinConstraint()
           
MinConstraint(double min)
           
 
Method Summary
 void configure(Min annotation)
          Configures constraint from associated annotation.
 double getMin()
           
 boolean isValid(ValidationConstraintContext vcc, java.lang.Object value)
          Performs validation in context of target object on provided value.
 void setMin(double min)
           
static boolean validate(java.lang.Object value, double min)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

min

protected double min
Constructor Detail

MinConstraint

public MinConstraint()

MinConstraint

public MinConstraint(double min)
Method Detail

getMin

public double getMin()

setMin

public void setMin(double min)

configure

public void configure(Min annotation)
Description copied from interface: ValidationConstraint
Configures constraint from associated annotation.

Specified by:
configure in interface ValidationConstraint<Min>

isValid

public boolean isValid(ValidationConstraintContext vcc,
                       java.lang.Object value)
Description copied from interface: ValidationConstraint
Performs validation in context of target object on provided value.

Specified by:
isValid in interface ValidationConstraint<Min>
Returns:
true if validation passes, otherwise false.

validate

public static boolean validate(java.lang.Object value,
                               double min)


Copyright © 2003-2011 Jodd Team