|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mod4j.runtime.validation.BusinessRuleUtils
public class BusinessRuleUtils
This class implements some common checks on fields. It uses the ValidationUtils class of the Spring framework
to collect and report errors.
| Constructor Summary | |
|---|---|
BusinessRuleUtils()
Deprecated. |
|
| Method Summary | |
|---|---|
static void |
validateEmptyOrWhitespace(org.springframework.validation.Errors errors,
java.lang.String field)
Deprecated. |
static void |
validateMaxLength(org.springframework.validation.Errors errors,
java.lang.String field,
int max)
Deprecated. |
static void |
validateMaxValue(org.springframework.validation.Errors errors,
java.lang.String field,
long max)
Deprecated. |
static void |
validateMinLength(org.springframework.validation.Errors errors,
java.lang.String field,
int min)
Deprecated. |
static void |
validateMinValue(org.springframework.validation.Errors errors,
java.lang.String field,
long min)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BusinessRuleUtils()
| Method Detail |
|---|
public static void validateEmptyOrWhitespace(org.springframework.validation.Errors errors,
java.lang.String field)
errors - field -
public static void validateMinLength(org.springframework.validation.Errors errors,
java.lang.String field,
int min)
min.
The object whose field is being validated does not need to be passed in because the Errors instance can resolve
field values by itself (it will usually hold an internal reference to the target object).
errors - field - min -
public static void validateMaxLength(org.springframework.validation.Errors errors,
java.lang.String field,
int max)
max.
The object whose field is being validated does not need to be passed in because the Errors instance can resolve
field values by itself (it will usually hold an internal reference to the target object).
errors - field - max -
public static void validateMaxValue(org.springframework.validation.Errors errors,
java.lang.String field,
long max)
long value is more than the maximum value given in max.
The object whose field is being validated does not need to be passed in because the Errors instance can resolve
field values by itself (it will usually hold an internal reference to the target object).
errors - field - max -
public static void validateMinValue(org.springframework.validation.Errors errors,
java.lang.String field,
long min)
long value is less than the minimum value given in min.
The object whose field is being validated does not need to be passed in because the Errors instance can resolve
field values by itself (it will usually hold an internal reference to the target object).
errors - field - min -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||