|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ValidationRule
Represents a validation rule. A validation rule binds an error to a condition.
| Method Summary | |
|---|---|
Condition |
getCondition()
Returns the condition of this validation rule. |
String |
getDefaultErrorMessage()
Returns the default error message that can be used in case no error message is bound to the error code of the rule. |
Object[] |
getErrorArguments(Object obj)
Returns the arguments that apply to the error code of this validation rule. |
String |
getErrorCode()
Return the error code of this validation rule. |
boolean |
isApplicable(Object obj)
Checks whether this validation is applicable on the given object. |
| Method Detail |
|---|
boolean isApplicable(Object obj)
obj - The object to be validated
Condition getCondition()
String getErrorCode()
null.
Object[] getErrorArguments(Object obj)
obj - The validated object.
String getDefaultErrorMessage()
null to indicate that
no default message exists.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||