|
|
|||||||||||
| 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 | |
|---|---|
DataDefinition |
getDataDefinition()
Gets the DataDefinition this rule applies to |
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. |
Collection<String> |
getValidationRuleArguments()
Gets the arguments (field names) this rule applies to |
boolean |
validate(Object value,
Transaction t)
Perform the validation process. |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
boolean validate(Object value,
Transaction t)
throws InvalidValueException
t - TODO
InvalidValueException - if the validation failsString getErrorMessage()
String getRuleName()
FieldDefinition getFieldDefinition()
FieldDefinition this rule applies to.
Collection<String> getValidationRuleArguments()
DataDefinition getDataDefinition()
DataDefinition this rule applies to
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||