|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
public interface ValidationRule
Defines the basics of a Makumba Validation rule.
| Method Summary | |
|---|---|
String |
getErrorMessage()
Gets the error message that should be shown for this rule. |
FieldDefinition |
getFieldDefinition()
Gets the FieldDefinition this rule applies to. |
String |
getRuleName()
Gets the name of this rule. |
boolean |
validate(Object value)
Perform the validation process. |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
boolean validate(Object value)
throws InvalidValueException
InvalidValueException - if the validation failsString getErrorMessage()
String getRuleName()
FieldDefinition getFieldDefinition()
FieldDefinition this rule applies to.
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||