|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectModel is a special Map
that cannot be modified using standard Map
methods, except
put(Object, Object)
method.
Nested Class Summary |
Nested classes inherited from class java.util.Map |
Map.Entry |
Field Summary | |
static String |
CONTEXTBEAN
|
static String |
NAMESPACE
|
static String |
PARAMETERS_PATH
|
static String |
ROLE
|
Method Summary | |
void |
cleanupLocalContext()
Cleans up entries put to ObjectModel since last markLocalContext() call. |
void |
fillContext()
Copies properties (both static and dynamic) of current context bean to the Object Model. |
MultiMap |
getAll()
|
void |
markLocalContext()
Marks new local context. |
Object |
put(Object key,
Object value)
Works exactly the same way as Map.put(Object, Object) but previous value associated to key
is not lost in a case markLocalContext() was called before. |
void |
putAll(Map mapToCopy)
|
void |
putAt(String path,
Object value)
Puts object at certain path . |
void |
setParent(ObjectModel parentObjectModel)
Sets parent object model so newly created instance can inherit values from parent but cannot modify it. |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, remove, size, values |
Field Detail |
public static final String ROLE
public static final String CONTEXTBEAN
public static final String NAMESPACE
public static final String PARAMETERS_PATH
Method Detail |
public MultiMap getAll()
MultiMap
that contains all stored values in all context in LIFO-compliant order.
Returned MultiMap
is Unmodifiable
.public Object put(Object key, Object value)
Map.put(Object, Object)
but previous value associated to key
is not lost in a case markLocalContext()
was called before. The previous value is stored and can be
recovered by calling markLocalContext()
.
put
in interface Map
public void putAll(Map mapToCopy)
putAll
in interface Map
put(Object, Object)
public void markLocalContext()
public void cleanupLocalContext()
markLocalContext()
call.
public void putAt(String path, Object value)
path
. Each segment of path is separated by "/" symbol. This method
supports only traversing through objects implementing Map
interface. If certain segment does not exist it
will be created automatically.
path
- where the value
should be put atvalue
- that is going to be putpublic void fillContext()
Copies properties (both static and dynamic) of current context bean to the Object Model. The method is useful
when you want, for example, to access properties of context bean in JEXL expression and omit
contextBean.
part.
for description of static and dynamic properties
public void setParent(ObjectModel parentObjectModel)
Sets parent object model so newly created instance can inherit values from parent but cannot modify it.
parentObjectModel
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |