|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Output
Defines the behavior of an action output. An output is like a map where you can put and remove values by name.
| Method Summary | |
|---|---|
String |
add(Object value)
Add an object with a auto generated key. |
Object |
getValue(String name)
Gets an output value by name. |
boolean |
has(String key)
Check if the output has this key. |
boolean |
isEmpty()
Returns true is this output has no values. |
Iterator<String> |
keys()
Gets an iterator with the names of each output value. |
void |
removeValue(String name)
Removes an output value by name. |
void |
setObject(Object bean)
Sets the properties of the given bean in the action output, in other words, extract all attributes from the given object and place them in the action output. |
void |
setObject(Object bean,
String prefix)
Sets the properties of the given bean in the action output, in other words, extract all attributes from the given object and place them in the action output. |
void |
setValue(String name,
Object value)
Sets an output value by name. |
| Method Detail |
|---|
void setValue(String name,
Object value)
name - The name of the valuevalue - The valueObject getValue(String name)
name - The name of the value
void removeValue(String name)
name - The name of the valueboolean isEmpty()
Iterator<String> keys()
void setObject(Object bean)
bean - The bean (object) from where to get the properties.
void setObject(Object bean,
String prefix)
bean - The bean (object) from where to get the properties.prefix - The prefix to use when placing the properties in the output.boolean has(String key)
key -
String add(Object value)
value -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||