public class TemplateReplacementContext extends Object
| Constructor and Description |
|---|
TemplateReplacementContext()
Constructor by default.
|
TemplateReplacementContext(String aUserId,
String aLanguage)
Constructor.
|
TemplateReplacementContext(String aUserId,
String aLanguage,
Map<String,Object> aAttributes)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String attributeName,
Object attributeValue)
Allow to add single attribute.
|
Object |
getAttribute(String attributeName)
Returns attribute with given name.
|
Map<String,Object> |
getAttributes() |
String |
getLanguage() |
String |
getUserId() |
void |
setAttributes(Map<String,Object> attributes)
Attributes setter.
|
void |
setLanguage(String language) |
void |
setUserId(String userId) |
public TemplateReplacementContext(String aUserId, String aLanguage, Map<String,Object> aAttributes)
aUserId - idaLanguage - langaAttributes - additional attributespublic TemplateReplacementContext()
public void setAttributes(Map<String,Object> attributes)
attributes - collectionpublic String getLanguage()
public void setLanguage(String language)
public String getUserId()
public void setUserId(String userId)
public Object getAttribute(String attributeName)
attributeName - attribute nameCopyright © 2010-2014 anotheria.net. All Rights Reserved.