Package ch.tocco.nice2.templating.api
Interface Nice2Template
- All Known Implementing Classes:
FreemarkerNice2Template
public interface Nice2Template
Interface for a Nice2Template
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
setAttribute
(String name, Object value) Insert a value into the template's model.void
setAttributes
(Map<String, Object> attributes) void
setBaseData
(Entity baseData) void
setBaseData
(EntityList baseData) void
setCharset
(String charset) void
setCompress
(boolean compress) void
setDateTimeZone
(org.joda.time.DateTimeZone dateTimeZone) void
setEntityData
(String name, Entity entity) void
setEntityData
(String name, EntityList entityList) void
setEntityData
(String name, Collection<Entity> entityList) void
setHtmlEscape
(boolean escape) void
setLocalizedTemplateLookup
(boolean localizedTemplateLookup) void
setRecipient
(Entity recipient) void
setRecipient
(EntityList recipient) void
setSingleBase
(Entity singleBase) void
void
setTemplate
(String source) void
setTemplateLoaderName
(String templateLoader) void
setTemplateName
(String templateName)
-
Method Details
-
setTemplateName
-
setTemplate
-
setTemplateLoaderName
-
setLocalizedTemplateLookup
void setLocalizedTemplateLookup(boolean localizedTemplateLookup) -
setBaseData
-
setBaseData
-
setRecipient
-
setRecipient
-
setSingleBase
-
setTarget
-
setCharset
-
setAttributes
-
setAttribute
Insert a value into the template's model. Any object can be inserted into the model using this method.- Parameters:
name
- the name of the attribute to setvalue
- the value to set
-
setDateTimeZone
void setDateTimeZone(org.joda.time.DateTimeZone dateTimeZone) -
setEntityData
-
setEntityData
-
setEntityData
-
isCompress
boolean isCompress() -
setCompress
void setCompress(boolean compress) -
isHtmlEscape
boolean isHtmlEscape() -
setHtmlEscape
void setHtmlEscape(boolean escape)
-