|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FormProcessor
Interface definition of a form processor which is responsible for generating a Form representation of a data source, for example a repository node, a task or an XML schema and for persisting the form data back to the data source.
| Method Summary | |
|---|---|
Form |
generate(Item item,
java.util.List fields,
java.util.List forcedFields,
java.util.Map context)
Returns a Form representation for an item |
boolean |
isActive()
Determines whether this form processor is active |
boolean |
isApplicable(Item item)
Determines whether this form processor is applicable for the supplied item |
java.lang.Object |
persist(Item item,
FormData data)
Persists the given object representing the form data for an item |
| Method Detail |
|---|
boolean isApplicable(Item item)
item - The item the form is being generated for
boolean isActive()
Form generate(Item item,
java.util.List fields,
java.util.List forcedFields,
java.util.Map context)
item - The item to generate a Form object forfields - Restricted list of fields to include, null
indicates all possible fields for the item
should be includedforcedFields - List of field names from 'fields' list
that should be forcibly included, it is
up to the form processor implementation
to determine how to enforce thiscontext - Map representing optional context that
can be used during retrieval of the form
java.lang.Object persist(Item item,
FormData data)
item - The item to generate a Form object fordata - An object representing the data of the form
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||