|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Constraint
A constraint has a name and a value and an optional message. The name/value pair will have meaning to a Validator and the message will serve as an error message in the event the Validator determines the constraint is violated. example: name="maxLength" value="255" message="Value cannot be longer than 255 characters."
Method Summary | |
---|---|
String |
getMessage()
Get the error message. |
String |
getName()
Get the name of the constraint. |
String |
getValue()
Get the value of the constraint. |
Method Detail |
---|
String getName()
String getValue()
String getMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |