public interface Output
| Modifier and Type | Method and Description |
|---|---|
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.
|
void setValue(String name, Object value)
name - The name of the valuevalue - The valueObject getValue(String name)
name - The name of the valuevoid 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 - Copyright © 2015. All Rights Reserved.