Package org.nuxeo.ecm.webengine.forms
Class SimpleFormDataProvider
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,String[]>
-
- org.nuxeo.ecm.webengine.forms.SimpleFormDataProvider
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,String[]>
,FormDataProvider
public class SimpleFormDataProvider extends HashMap<String,String[]> implements FormDataProvider
- Author:
- Bogdan Stefanescu
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description SimpleFormDataProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String[]>
getFormFields()
Collection<String>
getKeys()
String[]
getList(String key)
String
getString(String key)
void
putList(String key, String... values)
void
putList(String key, Collection<String> values)
void
putString(String key, String value)
<T extends Form>
Tvalidate(Class<T> type)
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Method Detail
-
getKeys
public Collection<String> getKeys()
- Specified by:
getKeys
in interfaceFormDataProvider
-
getList
public String[] getList(String key)
- Specified by:
getList
in interfaceFormDataProvider
-
getString
public String getString(String key)
- Specified by:
getString
in interfaceFormDataProvider
-
getFormFields
public Map<String,String[]> getFormFields()
- Specified by:
getFormFields
in interfaceFormDataProvider
-
putList
public void putList(String key, Collection<String> values)
-
validate
public <T extends Form> T validate(Class<T> type) throws ValidationException
- Throws:
ValidationException
-
-