|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fatwire.gst.foundation.controller.action.Model
public class Model
This class is a container for Model data in the Model View Controller (MVC) framework.
This class is not thread-safe.
| Constructor Summary | |
|---|---|
Model()
|
|
| Method Summary | |
|---|---|
void |
add(String key,
Object... value)
Adds the key/value pair, where are the values are added as a list. |
void |
add(String key,
Object value)
Adds the key/value pair. |
Set<Map.Entry<String,Object>> |
entries()
Returns all the key/value pairs. |
boolean |
equals(Object obj)
|
int |
hashCode()
|
void |
list(String key,
Object value)
Adds the key/value pair, where are the value is added as a list. |
void |
reset()
Clears the model data. |
void |
reset(String name)
Removes the data with the name key. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Model()
| Method Detail |
|---|
public void reset()
public void reset(String name)
name -
public void add(String key,
Object value)
key - value -
public void add(String key,
Object... value)
key - value -
public void list(String key,
Object value)
key - value - public Set<Map.Entry<String,Object>> entries()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||