A C D E F G I K L M S V

A

acceptableArrayClass(Class<?>) - Static method in class ca.grimoire.formtree.receiver.constructor.ArrayReceiver
Determines if a Class representing an array type can be processed using this receiver.
acceptableElementClass(ParameterizedType) - Static method in class ca.grimoire.formtree.receiver.constructor.CollectionReceiver
Given a ParameterizedType, this method examines its parameter to determine if it's a constructible type (either via ConstructorReceiver or via StringConstructorReceiver).
acceptableElementClass(Class<?>) - Static method in class ca.grimoire.formtree.receiver.constructor.CollectionReceiver
Given a Class representing the elements of some collection, this method determines whether it counts as constructible (either via ConstructorReceiver or via StringConstructorReceiver).
acceptableListType(Type) - Static method in class ca.grimoire.formtree.receiver.constructor.ListReceiver
Determines if some Type represents a list of constructible elements.
acceptableSetType(Type) - Static method in class ca.grimoire.formtree.receiver.constructor.SetReceiver
Determines whether some Type represents a set of constructible elements.
accepts(Class<?>) - Static method in class ca.grimoire.formtree.receiver.constructor.ConstructorReceiver
Checkes whether ConstructorReceiver is able to construct forms of a given class.
accepts(Class<?>) - Static method in class ca.grimoire.formtree.receiver.constructor.StringConstructorReceiver
Checkes whether StringConstructorReceiver is able to construct instances of a given class.
ArrayReceiver<T> - Class in ca.grimoire.formtree.receiver.constructor
Receives form elements into an array of some constructible class.
ArrayReceiver(Class<T>) - Constructor for class ca.grimoire.formtree.receiver.constructor.ArrayReceiver
Creates an ArrayReceiver that will create arrays of elementClass.

C

ca.grimoire.formtree - package ca.grimoire.formtree
 
ca.grimoire.formtree.adapter.jaxrs - package ca.grimoire.formtree.adapter.jaxrs
 
ca.grimoire.formtree.adapter.servlet - package ca.grimoire.formtree.adapter.servlet
 
ca.grimoire.formtree.receiver - package ca.grimoire.formtree.receiver
 
ca.grimoire.formtree.receiver.annotations - package ca.grimoire.formtree.receiver.annotations
 
ca.grimoire.formtree.receiver.constructor - package ca.grimoire.formtree.receiver.constructor
 
CollectionReceiver<E,T> - Class in ca.grimoire.formtree.receiver.constructor
Supporting behaviour allowing for form receivers that produce collections.
CollectionReceiver(Class<E>) - Constructor for class ca.grimoire.formtree.receiver.constructor.CollectionReceiver
Creates a CollectionReceiver for some constructible element class.
ConstructorReceiver<T> - Class in ca.grimoire.formtree.receiver.constructor
A FormReceiver which populates arbitrary object graphs, rooted at an instance of a specific class.
ConstructorReceiver(Class<T>) - Constructor for class ca.grimoire.formtree.receiver.constructor.ConstructorReceiver
Prepares to construct an instance of formClass using form data.
create(Class<T>) - Static method in class ca.grimoire.formtree.receiver.constructor.ArrayReceiver
A type-inferring alternative to ArrayReceiver.ArrayReceiver(Class).
create(Class<T>) - Static method in class ca.grimoire.formtree.receiver.constructor.ConstructorReceiver
A type-inferring alternative to ConstructorReceiver.ConstructorReceiver(Class).
create(Class<T>) - Static method in class ca.grimoire.formtree.receiver.constructor.ListReceiver
A type-inferring alternative to ListReceiver.ListReceiver(Class).
create(Class<T>) - Static method in class ca.grimoire.formtree.receiver.constructor.SetReceiver
A type-inferring alternative to SetReceiver.SetReceiver(Class).
create(Class<T>) - Static method in class ca.grimoire.formtree.receiver.constructor.StringConstructorReceiver
A type-inferring alternative to calling StringConstructorReceiver.StringConstructorReceiver(Class).
createCollection(List<T>) - Method in class ca.grimoire.formtree.receiver.constructor.ArrayReceiver
Builds an array out of the passed element list.
createCollection(List<E>) - Method in class ca.grimoire.formtree.receiver.constructor.CollectionReceiver
Converts the raw sequence of form objects to a collection.
createCollection(List<T>) - Method in class ca.grimoire.formtree.receiver.constructor.ListReceiver
Returns elements unchanged - it's already the right type.
createCollection(List<T>) - Method in class ca.grimoire.formtree.receiver.constructor.SetReceiver
Converts the passed list of elements into a Set.

D

decode(FormAdapter, FormReceiver<T>) - Method in class ca.grimoire.formtree.FormDecoder
Decodes a form, populating the receiver with values.

E

elementClass - Variable in class ca.grimoire.formtree.receiver.constructor.CollectionReceiver
The Class of the elements of the collection.

F

finished() - Method in interface ca.grimoire.formtree.FormReceiver
Notifies the receiver that form decoding has finished.
finished() - Method in class ca.grimoire.formtree.receiver.constructor.CollectionReceiver
Converts all of the received form data into the appropriate product type.
finished() - Method in class ca.grimoire.formtree.receiver.constructor.ConstructorReceiver
Condense the collected form data from this receiver and all receivers created from it into an instance of <T>.
finished() - Method in class ca.grimoire.formtree.receiver.constructor.StringConstructorReceiver
 
FormAdapter - Interface in ca.grimoire.formtree
Provides form data.
FormDecoder - Class in ca.grimoire.formtree
Decodes tree-shaped form data into a receiver.
FormDecoder() - Constructor for class ca.grimoire.formtree.FormDecoder
 
FormElementReceiver - Interface in ca.grimoire.formtree
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.
FormField - Annotation Type in ca.grimoire.formtree.receiver.annotations
The annotated symbol will be used to receive the form field whose name is given by this annotation's value.
FormReceiver<T> - Interface in ca.grimoire.formtree
Callbacks for handling the reconstituted form data.

G

getFields() - Method in class ca.grimoire.formtree.adapter.jaxrs.MultivaluedMapForm
Retrieves the list of keys from the underlying map.
getFields() - Method in class ca.grimoire.formtree.adapter.servlet.ServletForm
Retrieves the list of parameters in the underlying servlet request.
getFields() - Method in interface ca.grimoire.formtree.FormAdapter
Enumerates the associated form's fields.
getValues(String) - Method in class ca.grimoire.formtree.adapter.jaxrs.MultivaluedMapForm
Retrieves the values for a given key in the underlying map.
getValues(String) - Method in class ca.grimoire.formtree.adapter.servlet.ServletForm
Retrieves all values of a single parameter from the underlying servlet request.
getValues(String) - Method in interface ca.grimoire.formtree.FormAdapter
Returns the value of a single form field.

I

IGNORE - Static variable in class ca.grimoire.formtree.receiver.IgnoreReceiver
A convenience instance of IgnoreReceiver.
IgnoreReceiver - Class in ca.grimoire.formtree.receiver
A form element receiver that acts as a black hole, ignoring all values passed into it.
IgnoreReceiver() - Constructor for class ca.grimoire.formtree.receiver.IgnoreReceiver
 
index(int) - Method in interface ca.grimoire.formtree.FormElementReceiver
Adds an index to the decoded form.
index(int) - Method in class ca.grimoire.formtree.receiver.constructor.CollectionReceiver
Returns an appropriate FormElementReceiver for the index'th element of the collection, creating it if necessary.
index(int) - Method in class ca.grimoire.formtree.receiver.constructor.ConstructorReceiver
Ignores index access entirely.
index(int) - Method in class ca.grimoire.formtree.receiver.constructor.StringConstructorReceiver
 
index(int) - Method in class ca.grimoire.formtree.receiver.IgnoreReceiver
Ignores an index element.

K

key(String) - Method in interface ca.grimoire.formtree.FormElementReceiver
Adds a key to the decoded form.
key(String) - Method in class ca.grimoire.formtree.receiver.constructor.CollectionReceiver
Ignores keys - the collection itself has no key fields.
key(String) - Method in class ca.grimoire.formtree.receiver.constructor.ConstructorReceiver
Returns a FormElementReceiver appropriate for the named field.
key(String) - Method in class ca.grimoire.formtree.receiver.constructor.StringConstructorReceiver
 
key(String) - Method in class ca.grimoire.formtree.receiver.IgnoreReceiver
Ignores a key element.

L

ListReceiver<T> - Class in ca.grimoire.formtree.receiver.constructor
Receives form elements into an List of some constructible class.
ListReceiver(Class<T>) - Constructor for class ca.grimoire.formtree.receiver.constructor.ListReceiver
Creates a receiver for a given element class.

M

MultivaluedMapForm - Class in ca.grimoire.formtree.adapter.jaxrs
An adapter for JAX-RS MultivaluedMap-based form handlers.
MultivaluedMapForm(MultivaluedMap<String, String>) - Constructor for class ca.grimoire.formtree.adapter.jaxrs.MultivaluedMapForm
Adapts a given MultivaluedMap for use as a FormAdapter.

S

ServletForm - Class in ca.grimoire.formtree.adapter.servlet
A form adapter wrapping ServletRequest's parameter list.
ServletForm(ServletRequest) - Constructor for class ca.grimoire.formtree.adapter.servlet.ServletForm
Adapts a given ServletRequest to the FormAdapter interface.
SetReceiver<T> - Class in ca.grimoire.formtree.receiver.constructor
Receives constructible elements into a Set.
SetReceiver(Class<T>) - Constructor for class ca.grimoire.formtree.receiver.constructor.SetReceiver
Creates a new receiver for a set of some constructible element type.
StringConstructorReceiver<T> - Class in ca.grimoire.formtree.receiver.constructor
A form receiver that uses constructors with the signature (String).
StringConstructorReceiver(Class<T>) - Constructor for class ca.grimoire.formtree.receiver.constructor.StringConstructorReceiver
Creates a StringConstructorReceiver that creates instances of valueClass.

V

values(Iterable<String>) - Method in interface ca.grimoire.formtree.FormElementReceiver
Add a terminal value to the decoded form.
values(Iterable<String>) - Method in class ca.grimoire.formtree.receiver.constructor.CollectionReceiver
Applies a value sequence to the collection.
values(Iterable<String>) - Method in class ca.grimoire.formtree.receiver.constructor.ConstructorReceiver
Ignores attempts to assign immediate values to a constructor.
values(Iterable<String>) - Method in class ca.grimoire.formtree.receiver.constructor.StringConstructorReceiver
 
values(Iterable<String>) - Method in class ca.grimoire.formtree.receiver.IgnoreReceiver
Ignores the passed value entirely.

A C D E F G I K L M S V

Copyright © 2011 Grimoire Alchymia. All Rights Reserved.