|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FormElementReceiver
Intermediate receivers for form elements (along with the final receiver) must
implement this to provide FormDecoder with a way to navigate to the
relevant part of the data model for each field.
The navigation methods (which return FormElementReceiver) must not
return null when asked for an unsupported key. Implementations may ignore
data; the easiest way is to return IgnoreReceiver.IGNORE. Similarly,
the values(Iterable) method must silently ignore unexpected values.
FormDecoder,
FormElementReceiver| Method Summary | |
|---|---|
FormElementReceiver |
index(int index)
Adds an index to the decoded form. |
FormElementReceiver |
key(java.lang.String field)
Adds a key to the decoded form. |
void |
values(java.lang.Iterable<java.lang.String> values)
Add a terminal value to the decoded form. |
| Method Detail |
|---|
void values(java.lang.Iterable<java.lang.String> values)
values - the values to store.FormElementReceiver index(int index)
index - the index to decode.
FormElementReceiver key(java.lang.String field)
field - the field to decode.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||