org.nuxeo.ecm.webengine.forms.validation
Interface Form
- All Known Subinterfaces:
- MyForm
- All Known Implementing Classes:
- FormManager
public interface Form
- Author:
- Bogdan Stefanescu
Method Summary |
java.util.Map<java.lang.String,java.lang.String[]> |
fields()
Get the form fields as submitted by the client. |
void |
load(FormDataProvider data,
Form proxy)
Before using the form, implementors must ensure this method is called to
initialize form data, otherwise NPE will be thrown. |
java.util.Collection<java.lang.String> |
unknownKeys()
|
unknownKeys
java.util.Collection<java.lang.String> unknownKeys()
load
void load(FormDataProvider data,
Form proxy)
throws ValidationException
- Before using the form, implementors must ensure this method is called to
initialize form data, otherwise NPE will be thrown.
This method must never be called by clients. It is internal to
validation implementation and should be called only by implementors when creating a form.
- Parameters:
data
- the form data sourceproxy
- the proxy to the user form
- Throws:
ValidationException
fields
java.util.Map<java.lang.String,java.lang.String[]> fields()
- Get the form fields as submitted by the client.
The fields are present even if the form is not valid
- Returns:
- the form fields or an empty map if none
Copyright © 2010 Nuxeo SAS. All Rights Reserved.