|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.liquidsite.app.template.SessionBean.SessionDataBean
The session data model bean. This bean wraps all the session data hierachy. The objects can be treated as scalars, hashes or sequences, mostly interchangably. This class really represents a pointer to the data, making it possible to modify or remove data via this bean.
| Field Summary |
| Fields inherited from interface freemarker.template.TemplateScalarModel |
EMPTY_STRING |
| Fields inherited from interface freemarker.template.TemplateModel |
NOTHING |
| Method Summary | |
void |
add(java.lang.Object value)
Adds a value to this session data object. |
freemarker.template.TemplateModel |
get(int index)
Returns a session data value from an array index. |
freemarker.template.TemplateModel |
get(java.lang.String name)
Returns a session data value from a hash key name. |
java.lang.String |
getAsString()
Returns the session data value as a string. |
boolean |
isEmpty()
Checks if the hash model is empty. |
void |
remove()
Removes this session data object. |
int |
size()
Returns the size of the session data value list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public java.lang.String getAsString()
throws freemarker.template.TemplateModelException
getAsString in interface freemarker.template.TemplateScalarModelfreemarker.template.TemplateModelException - if this object points to an
index that has been removedpublic boolean isEmpty()
isEmpty in interface freemarker.template.TemplateHashModelpublic freemarker.template.TemplateModel get(java.lang.String name)
get in interface freemarker.template.TemplateHashModelname - the session data key name
public freemarker.template.TemplateModel get(int index)
throws freemarker.template.TemplateModelException
get in interface freemarker.template.TemplateSequenceModelindex - the session data index
freemarker.template.TemplateModelException - if a double index
indirection was attemptedpublic int size()
size in interface freemarker.template.TemplateSequenceModel
public void add(java.lang.Object value)
throws freemarker.template.TemplateModelException
value - the data value to add
freemarker.template.TemplateModelException - if an attempt was made to
add values to a specific indexpublic void remove()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||