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)StringgetString(String key)voidputList(String key, String... values)voidputList(String key, Collection<String> values)voidputString(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:
getKeysin interfaceFormDataProvider
-
getList
public String[] getList(String key)
- Specified by:
getListin interfaceFormDataProvider
-
getString
public String getString(String key)
- Specified by:
getStringin interfaceFormDataProvider
-
getFormFields
public Map<String,String[]> getFormFields()
- Specified by:
getFormFieldsin interfaceFormDataProvider
-
putList
public void putList(String key, Collection<String> values)
-
validate
public <T extends Form> T validate(Class<T> type) throws ValidationException
- Throws:
ValidationException
-
-