public class FormMap extends Object
Constructor and Description |
---|
FormMap() |
FormMap(HstRequest request,
List<String> fieldNames) |
FormMap(HstRequest request,
String[] fieldNames) |
FormMap(Map<String,FormField> paramMap) |
Modifier and Type | Method and Description |
---|---|
void |
addFormField(FormField field) |
void |
addMessage(String name,
String value) |
FormField |
getField(String name) |
String[] |
getFieldNames() |
Map<String,FormField> |
getFormMap() |
Map<String,String> |
getMessage()
For each of th fields we only fetch it's first error message
(if field contains error message(s)).
|
Map<String,List<String>> |
getMessages()
Returns all field (error) messages.
|
String |
getPrevious() |
Map<String,FormField> |
getValue() |
boolean |
isSealed() |
void |
setPrevious(String uuid) |
void |
setSealed(boolean sealed)
Seal this form data.
|
public FormMap()
public FormMap(HstRequest request, List<String> fieldNames)
public FormMap(HstRequest request, String[] fieldNames)
public String[] getFieldNames()
public void addFormField(FormField field)
public void setPrevious(String uuid)
public Map<String,String> getMessage()
FormField.getMessages()
public Map<String,List<String>> getMessages()
getMessage()
public String getPrevious()
public boolean isSealed()
public void setSealed(boolean sealed)
sealed
- boolean, if true, we'll finalize our formCopyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.