org.outerj.xreporter.datatype.type
Class BigDecimalMaxExclusiveValidationRule

java.lang.Object
  extended byorg.outerj.xreporter.datatype.type.BigDecimalMaxExclusiveValidationRule
All Implemented Interfaces:
ValidationRule

public class BigDecimalMaxExclusiveValidationRule
extends java.lang.Object
implements ValidationRule


Field Summary
protected  java.math.BigDecimal max
           
 
Constructor Summary
BigDecimalMaxExclusiveValidationRule(java.math.BigDecimal max)
           
 
Method Summary
 java.lang.String validate(java.lang.Object value, ExecutionContext executionContext)
          Validates the given value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

max

protected java.math.BigDecimal max
Constructor Detail

BigDecimalMaxExclusiveValidationRule

public BigDecimalMaxExclusiveValidationRule(java.math.BigDecimal max)
Method Detail

validate

public java.lang.String validate(java.lang.Object value,
                                 ExecutionContext executionContext)
Description copied from interface: ValidationRule
Validates the given value. The value will already be parsed, so if it is e.g. a BigDecimal then the value will be an instance of BigDecimal. If validation is successful, this method should return null, otherwise it should return a (localized) error message.

Specified by:
validate in interface ValidationRule