public abstract class JstlPropertyHolder extends Object implements Map
The contents of this Map cannot be changed once it has been initialized. Any calls to any of the Map methods made before the propertyTree has been initialized (i.e. before setProperties has been called) will throw an IllegalStateException.
Jstl converts ${Constants.a.b.c} into get("a").get("b").get("c"), so the properties are stored in a PropertyTree, which converts the initial set( "a.b.c", "value" ) into construction of the necessary tree structure to support get("a").get("b").get("c").
Implicitly relies on the assumption that the JSP will be calling toString() on the result of the final get, since
get can only return one type, and that type must be the complex one so that further dereferencing will be
possible.
| Constructor and Description |
|---|
JstlPropertyHolder()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set |
entrySet() |
Object |
get(Object key) |
boolean |
isEmpty() |
Set |
keySet() |
Object |
put(Object key,
Object value) |
void |
putAll(Map m) |
Object |
remove(Object key) |
protected void |
setProperties(Map<String,String> properties) |
protected void |
setPropertyTree(PropertyTree tree)
Copies in the given propertyTree rather than building its own.
|
int |
size() |
Collection |
values() |
public JstlPropertyHolder()
protected void setProperties(Map<String,String> properties)
protected void setPropertyTree(PropertyTree tree)
properties - public Object get(Object key)
get in interface MapPropertyTree.get(java.lang.Object)public int size()
size in interface MapPropertyTree.size()public void clear()
clear in interface MapPropertyTree.clear()public boolean isEmpty()
isEmpty in interface MapPropertyTree.isEmpty()public boolean containsKey(Object key)
containsKey in interface MapPropertyTree.containsKey(java.lang.Object)public boolean containsValue(Object value)
containsValue in interface MapPropertyTree.containsValue(java.lang.Object)public Collection values()
values in interface MapPropertyTree.values()public void putAll(Map m)
putAll in interface MapPropertyTree.putAll(java.util.Map)public Set entrySet()
entrySet in interface MapPropertyTree.entrySet()public Set keySet()
keySet in interface MapPropertyTree.keySet()public Object remove(Object key)
remove in interface MapPropertyTree.remove(java.lang.Object)Copyright © 2004–2014 The Kuali Foundation. All rights reserved.