org.nuxeo.ecm.webengine.forms.validation
Class FormManager
java.lang.Object
org.nuxeo.ecm.webengine.forms.validation.FormManager
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler, Form
public class FormManager
- extends java.lang.Object
- implements java.lang.reflect.InvocationHandler, 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 |
flushCache()
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
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. |
static
|
newProxy(java.lang.Class<T> type)
|
java.util.Collection<java.lang.String> |
unknownKeys()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormManager
public FormManager(FormDescriptor fd)
unknownKeys
public java.util.Collection<java.lang.String> unknownKeys()
- Specified by:
unknownKeys
in interface Form
fields
public java.util.Map<java.lang.String,java.lang.String[]> fields()
- Description copied from interface:
Form
- Get the form fields as submitted by the client.
The fields are present even if the form is not valid
- Specified by:
fields
in interface Form
- Returns:
- the form fields or an empty map if none
load
public void load(FormDataProvider data,
Form proxy)
throws ValidationException
- Description copied from interface:
Form
- 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.
- Specified by:
load
in interface Form
- Parameters:
data
- the form data sourceproxy
- the proxy to the user form
- Throws:
ValidationException
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
- Specified by:
invoke
in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
newProxy
public static <T> T newProxy(java.lang.Class<T> type)
flushCache
public void flushCache()
Copyright © 2010 Nuxeo SAS. All Rights Reserved.