public static class TemplateResource.Builder extends Object
| Constructor and Description |
|---|
TemplateResource.Builder(String template) |
TemplateResource.Builder(String template,
boolean inline) |
| Modifier and Type | Method and Description |
|---|---|
TemplateResource.Builder |
addEngineOption(String key,
Object value) |
TemplateResource.Builder |
addParameter(String key,
Object value) |
TemplateResource |
build() |
protected String |
getDescription() |
protected String |
getEngineName() |
protected Map<String,Object> |
getEngineOptions() |
protected String |
getMimeType() |
protected Map<String,Object> |
getParameters() |
protected String |
getTemplate() |
protected boolean |
isInline() |
TemplateResource.Builder |
setDescription(String desc) |
TemplateResource.Builder |
setEngineName(String name) |
TemplateResource.Builder |
setEngineName(com.github.bordertech.wcomponents.template.TemplateRendererFactory.TemplateEngine engine) |
TemplateResource.Builder |
setMimeType(String type) |
public TemplateResource.Builder(String template)
template - the template resource namepublic TemplateResource.Builder(String template, boolean inline)
template - the template resource nameinline - true if stream inlineprotected boolean isInline()
protected String getTemplate()
protected String getEngineName()
protected String getDescription()
protected String getMimeType()
protected Map<String,Object> getEngineOptions()
public TemplateResource.Builder setEngineName(com.github.bordertech.wcomponents.template.TemplateRendererFactory.TemplateEngine engine)
engine - the template enginepublic TemplateResource.Builder setEngineName(String name)
name - the template engine namepublic TemplateResource.Builder setDescription(String desc)
desc - the resource descriptionpublic TemplateResource.Builder setMimeType(String type)
type - the resource mime typepublic TemplateResource.Builder addParameter(String key, Object value)
key - the template parameter keyvalue - the template parameter valuepublic TemplateResource.Builder addEngineOption(String key, Object value)
key - the engine option keyvalue - the engine option valuepublic TemplateResource build()
Copyright © 2018. All rights reserved.