|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujac.util.exi.ExpressionContext
org.ujac.util.template.TemplateContext
public class TemplateContext
Name: TemplateContext
Description: A class holding all relevant data, needed to execute templates.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
TemplateContext(Map properties)
Constructs a TemplateContext instance with specific attributes. |
|
TemplateContext(Map properties,
FormatHelper formatHelper)
Constructs a TemplateContext instance with specific attributes. |
|
TemplateContext(Map properties,
Object bean,
FormatHelper formatHelper)
Constructs a ExpressionContext instance with specific attributes. |
|
TemplateContext(TemplateContext ctx)
Constructs a TemplateContext instance with specific attributes. |
|
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set |
entrySet()
|
Object |
get(Object key)
|
Object |
getProperty(Object name)
Gets a property from the property map. |
boolean |
isEmpty()
|
Set |
keySet()
|
Object |
put(Object key,
Object value)
|
Object |
remove(Object key)
|
void |
setGlobalProperty(Object name,
Object value)
Setter method for the the property localData. |
Object |
setProperty(Object name,
Object value)
Setter method for the the property localData. |
int |
size()
|
Collection |
values()
|
| Methods inherited from class org.ujac.util.exi.ExpressionContext |
|---|
getBean, getFormatHelper, putAll, readData, setBean, setFormatHelper, writeData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public TemplateContext(Map properties)
properties - The properties to use for expression evaluation.
public TemplateContext(Map properties,
FormatHelper formatHelper)
properties - The properties to use for expression evaluation.formatHelper - The format helper to use.
public TemplateContext(Map properties,
Object bean,
FormatHelper formatHelper)
properties - The properties to use for expression evaluation.bean - The bean used to retrieve parameter values, if the
parameter value didn't exist in the localData map.formatHelper - The format helper to use.public TemplateContext(TemplateContext ctx)
ctx - The context to clone.| Method Detail |
|---|
public Object getProperty(Object name)
getProperty in class ExpressionContextname - The property name.
public Object setProperty(Object name,
Object value)
setProperty in class ExpressionContextname - The property name.value - The value to set.
public void setGlobalProperty(Object name,
Object value)
name - The property name.value - The value to set.public int size()
size in interface Mapsize in class ExpressionContextMap.size()public boolean isEmpty()
isEmpty in interface MapisEmpty in class ExpressionContextMap.isEmpty()public boolean containsKey(Object key)
containsKey in interface MapcontainsKey in class ExpressionContextMap.containsKey(java.lang.Object)public boolean containsValue(Object value)
containsValue in interface MapcontainsValue in class ExpressionContextMap.containsValue(java.lang.Object)public Object get(Object key)
get in interface Mapget in class ExpressionContextMap.get(java.lang.Object)
public Object put(Object key,
Object value)
put in interface Mapput in class ExpressionContextMap.put(java.lang.Object, java.lang.Object)public Object remove(Object key)
remove in interface Mapremove in class ExpressionContextMap.remove(java.lang.Object)public void clear()
clear in interface Mapclear in class ExpressionContextMap.clear()public Set keySet()
keySet in interface MapkeySet in class ExpressionContextMap.keySet()public Collection values()
values in interface Mapvalues in class ExpressionContextMap.values()public Set entrySet()
entrySet in interface MapentrySet in class ExpressionContextMap.entrySet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||