|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jfw.web.util.DataContainer
public final class DataContainer
A data container. Use a HashMap for save the data.
DataContainerManager
Constructor Summary | |
---|---|
DataContainer()
Create the object and call mathod initialize() . |
Method Summary | |
---|---|
boolean |
exist(java.lang.String key)
Check if a key exist in container . |
java.lang.Object |
get(java.lang.String key)
Get a value from container . |
boolean |
put(java.lang.String key,
java.lang.Object value)
Set a data in container . |
boolean |
remove(java.lang.String key)
Delete a key from container . |
java.lang.String |
toString()
Return the toString of attribute container . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DataContainer()
initialize()
.
Method Detail |
---|
public boolean put(java.lang.String key, java.lang.Object value)
container
.
key
- the key to associate with the value.value
- the value to store.
container
, false
in other case.public java.lang.Object get(java.lang.String key)
container
.
key
- the key associated with the value.
container
.public boolean exist(java.lang.String key)
container
.
public boolean remove(java.lang.String key)
container
.
public java.lang.String toString()
container
.
toString
in class java.lang.Object
container
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |