01: /*
02: * Created on Nov 14, 2005
03: */
04: package uk.org.ponder.rsf.request;
05:
06: import java.util.Map;
07:
08: /** The portion of the "RenderSystem" interface that deals with incoming actions
09: * resulting from previously rendered submitting controls.
10: * @author Antranig Basman (antranig@caret.cam.ac.uk)
11: */
12:
13: public interface RenderSystemDecoder {
14: /** "Normalize" the supplied (writeable) request map by scouring it for
15: * System-specific key/values that secretly encode a number of others.
16: * TODO: Might also normalize by making multi-valued params into single-valued,
17: * but unclear whether there is enough knowledge in the system to distinguish
18: * values which OUGHT to be multivalued (probably only list submits).
19: */
20: public void normalizeRequestMap(Map requestparams);
21:
22: /** Fix up the "new value" in the supplied SVE, for example to take account of the
23: * target idiom's "missing value" semantics. E.g. for HTTP, checkboxes in the
24: * false state submit nothing, as do multiple list selections with nothing
25: * selected.
26: */
27: public void fixupUIType(SubmittedValueEntry sve);
28: }
|