|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.grimoire.formtree.FormDecoder
public class FormDecoder
Decodes tree-shaped form data into a receiver. Form keys are parsed and used to locate specific nodes in the receiver to use with the field's value.
Grammar:
path ::= [pathElement '.'] pathElement
pathElement ::= keyPathElement | listPathElement
keyPathElement ::= NAME
listPathElement ::= NAME '[' DIGITS ']'
DIGITS ::= ('0'..'9')*
NAMEINITIAL ::= ('-'|'_'|'a'..'z'|'A'..Z')
NAMETRAILING ::= (NAMEINITIAL|DIGITS)
NAME ::= NAMEINITIAL NAMETRAILING*
Example field names:
| Constructor Summary | |
|---|---|
FormDecoder()
|
|
| Method Summary | ||
|---|---|---|
|
decode(FormAdapter form,
FormReceiver<T> receiver)
Decodes a form, populating the receiver with values. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormDecoder()
| Method Detail |
|---|
public <T> T decode(FormAdapter form,
FormReceiver<T> receiver)
T - the expected form decoding result type.form - an adapter over the form to decode.receiver - an adapter to receive the decoded values.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||