|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FieldValidator
Defines the interface for classes that will play the role of value validators
for org.jscience.sociology.forms.TextBox and org.jscience.sociology.forms.PasswordBox fields.
The criteria of validation will be implemented through
getErrorMessage() method of this interface.
A class of type TextBox will register one or more FieldValidator objects via
addFieldValidator() method.
FieldValidator to a field in forms.xml:
<field name="field name"
type="org.jscience.sociology.forms.TextBox">
...............
...............
<field-validator>
FieldValidator object name
</field-validator>
</field>
A FieldValidator object will normally be shared by all client threads of one or even more forms, therefore the implementation has to take care of possible synchronization issues.
TextBox,
PasswordBox| Method Summary | |
|---|---|
java.lang.String |
getErrorMessage(java.lang.String value)
Gets the error message resulting from the validation. |
| Method Detail |
|---|
java.lang.String getErrorMessage(java.lang.String value)
value - the value to be tested.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||