|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 ExpressionContext
name
- The property name.
public Object setProperty(Object name, Object value)
setProperty
in class ExpressionContext
name
- 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 Map
size
in class ExpressionContext
Map.size()
public boolean isEmpty()
isEmpty
in interface Map
isEmpty
in class ExpressionContext
Map.isEmpty()
public boolean containsKey(Object key)
containsKey
in interface Map
containsKey
in class ExpressionContext
Map.containsKey(java.lang.Object)
public boolean containsValue(Object value)
containsValue
in interface Map
containsValue
in class ExpressionContext
Map.containsValue(java.lang.Object)
public Object get(Object key)
get
in interface Map
get
in class ExpressionContext
Map.get(java.lang.Object)
public Object put(Object key, Object value)
put
in interface Map
put
in class ExpressionContext
Map.put(java.lang.Object, java.lang.Object)
public Object remove(Object key)
remove
in interface Map
remove
in class ExpressionContext
Map.remove(java.lang.Object)
public void clear()
clear
in interface Map
clear
in class ExpressionContext
Map.clear()
public Set keySet()
keySet
in interface Map
keySet
in class ExpressionContext
Map.keySet()
public Collection values()
values
in interface Map
values
in class ExpressionContext
Map.values()
public Set entrySet()
entrySet
in interface Map
entrySet
in class ExpressionContext
Map.entrySet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |