|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mentawai.core.OutputWrapper
public class OutputWrapper
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
OutputWrapper()
|
|
| Method Summary | |
|---|---|
String |
add(Object value)
Add an object with a auto generated key. |
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set<Map.Entry<String,Object>> |
entrySet()
|
Object |
get(Object key)
|
Object |
getValue(String name)
Gets an output value by name. |
boolean |
has(String name)
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. |
Set<String> |
keySet()
|
Object |
put(String key,
Object value)
|
void |
putAll(Map<? extends String,? extends Object> t)
|
Object |
remove(Object key)
|
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 |
setOutput(Output output)
|
void |
setValue(String name,
Object value)
Sets an output value by name. |
int |
size()
|
Collection<Object> |
values()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public OutputWrapper()
| Method Detail |
|---|
public void setOutput(Output output)
public void setValue(String name,
Object value)
Output
setValue in interface Outputname - The name of the valuevalue - The valuepublic boolean has(String name)
Output
has in interface Outputpublic String add(Object value)
Output
add in interface Outputpublic Object getValue(String name)
Output
getValue in interface Outputname - The name of the value
public void removeValue(String name)
Output
removeValue in interface Outputname - The name of the valuepublic boolean isEmpty()
Output
isEmpty in interface Map<String,Object>isEmpty in interface Outputpublic void setObject(Object bean)
Output
setObject in interface Outputbean - The bean (object) from where to get the properties.
public void setObject(Object bean,
String prefix)
Output
setObject in interface Outputbean - The bean (object) from where to get the properties.prefix - The prefix to use when placing the properties in the output.public Iterator<String> keys()
Output
keys in interface Outputpublic void clear()
clear in interface Map<String,Object>public boolean containsKey(Object key)
containsKey in interface Map<String,Object>public boolean containsValue(Object value)
containsValue in interface Map<String,Object>public Set<Map.Entry<String,Object>> entrySet()
entrySet in interface Map<String,Object>public Object get(Object key)
get in interface Map<String,Object>public Set<String> keySet()
keySet in interface Map<String,Object>
public Object put(String key,
Object value)
put in interface Map<String,Object>public void putAll(Map<? extends String,? extends Object> t)
putAll in interface Map<String,Object>public Object remove(Object key)
remove in interface Map<String,Object>public int size()
size in interface Map<String,Object>public Collection<Object> values()
values in interface Map<String,Object>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||