public class FormInfo extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
ERROR
State: There was an error.
|
static int |
EXECUTED
State: Form is executed.
|
static int |
OK
State: Form is OK.
|
Constructor and Description |
---|
FormInfo()
Creates a new FormInfo with status == OK.
|
Modifier and Type | Method and Description |
---|---|
void |
addSubmission(Map<String,String> val)
Adds the given values into the handler parameter map.
|
String |
getAction()
Get the action set in
setAction(String) . |
String |
getError()
Return the error.
|
String |
getHandler()
Return the name of the handler class.
|
String |
getName()
Return the name of the form.
|
String |
getResult()
Return the result.
|
int |
getStatus()
Return the status.
|
Map<String,String> |
getSubmission()
Returns parameter name-value pairs for a Form handler WikiPlugin.
|
boolean |
hide()
Returns true, if the form is supposed to be hidden.
|
void |
setAction(String val)
Set the value of the action parameter.
|
void |
setError(String val)
Set an error string.
|
void |
setHandler(String val)
Set the name of the handler class.
|
void |
setHide(boolean val)
Set the hide parameter.
|
void |
setName(String val)
Sets the name of the form.
|
void |
setResult(String val)
Set the result.
|
void |
setStatus(int val)
Set the status of the Form processing.
|
void |
setSubmission(Map<String,String> val)
Copies the given values into the handler parameter map using Map.putAll().
|
public static final int EXECUTED
public static final int OK
public static final int ERROR
public FormInfo()
public void setStatus(int val)
val
- EXECUTED, OK or ERROR.public int getStatus()
public void setHide(boolean val)
val
- True or false.public boolean hide()
public void setAction(String val)
val
- A value parameter.public String getAction()
setAction(String)
.public void setName(String val)
val
- The name of the form.public void setHandler(String val)
val
- The name of the class.public String getHandler()
public void setSubmission(Map<String,String> val)
val
- parameter name-value pairs for a Form handler WikiPluginpublic void addSubmission(Map<String,String> val)
val
- parameter name-value pairs for a Form handler WikiPluginpublic Map<String,String> getSubmission()
Copyright © 2001-2018 The Apache Software Foundation. All rights reserved.