|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object velosurf.validation.FieldConstraint velosurf.validation.NotEmpty
public class NotEmpty
A "not empty" constraint. Syntax is:
<column not-empty="true"/>
Or:
<column> <not-empty [message="error-message"]/> </column>
Note: this constraint is not meant to replace an internal SQL clause in the database, since it cannot be made sure that complex updates will respect this constraint.
Constructor Summary | |
---|---|
NotEmpty()
Default constructor. |
Method Summary | |
---|---|
java.lang.String |
toString()
return a string representation for this constraint. |
boolean |
validate(java.lang.Object data)
Validate datea against this constraint. |
Methods inherited from class velosurf.validation.FieldConstraint |
---|
getMessage, setMessage, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NotEmpty()
Method Detail |
---|
public boolean validate(java.lang.Object data)
validate
in class FieldConstraint
data
- the data to be validated
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |