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 Map
PropertyTree.get(java.lang.Object)
public int size()
size
in interface Map
PropertyTree.size()
public void clear()
clear
in interface Map
PropertyTree.clear()
public boolean isEmpty()
isEmpty
in interface Map
PropertyTree.isEmpty()
public boolean containsKey(Object key)
containsKey
in interface Map
PropertyTree.containsKey(java.lang.Object)
public boolean containsValue(Object value)
containsValue
in interface Map
PropertyTree.containsValue(java.lang.Object)
public Collection values()
values
in interface Map
PropertyTree.values()
public void putAll(Map m)
putAll
in interface Map
PropertyTree.putAll(java.util.Map)
public Set entrySet()
entrySet
in interface Map
PropertyTree.entrySet()
public Set keySet()
keySet
in interface Map
PropertyTree.keySet()
public Object remove(Object key)
remove
in interface Map
PropertyTree.remove(java.lang.Object)
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.