public class TemplateDefinitionBean extends Object implements Serializable
The template definition bean.
Modifier and Type | Class and Description |
---|---|
static class |
TemplateDefinitionBean.TemplateDefinitionBeanBuilder<C extends TemplateDefinitionBean,B extends TemplateDefinitionBean.TemplateDefinitionBeanBuilder<C,B>> |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CHARSET |
static EContentType |
DEFAULT_CONTENT_TYPE |
Modifier | Constructor and Description |
---|---|
|
TemplateDefinitionBean() |
|
TemplateDefinitionBean(String name,
String template,
String templateEngineLanguage,
EContentType contentType,
Charset charSet) |
protected |
TemplateDefinitionBean(TemplateDefinitionBean.TemplateDefinitionBeanBuilder<?,?> b) |
Modifier and Type | Method and Description |
---|---|
static TemplateDefinitionBean.TemplateDefinitionBeanBuilder<?,?> |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Charset |
getCharSet()
The charset of resulting content from this template.
|
EContentType |
getContentType()
The resulting content type of this template.
|
String |
getName()
A symbolic name for this template.
|
String |
getTemplate()
The template resource path, can be any of the resources resolved by
ResourceLoader.getResource(String) . |
String |
getTemplateEngineLanguage()
The template engine language.
|
int |
hashCode() |
void |
setCharSet(@NotNull Charset charSet)
The charset of resulting content from this template.
|
void |
setContentType(@NotNull EContentType contentType)
The resulting content type of this template.
|
void |
setName(@NotBlank String name)
A symbolic name for this template.
|
void |
setTemplate(@NotBlank String template)
The template resource path, can be any of the resources resolved by
ResourceLoader.getResource(String) . |
void |
setTemplateEngineLanguage(@NotBlank String templateEngineLanguage)
The template engine language.
|
TemplateDefinitionBean.TemplateDefinitionBeanBuilder<?,?> |
toBuilder() |
String |
toString() |
public static final String DEFAULT_CHARSET
public static final EContentType DEFAULT_CONTENT_TYPE
protected TemplateDefinitionBean(TemplateDefinitionBean.TemplateDefinitionBeanBuilder<?,?> b)
public TemplateDefinitionBean()
public TemplateDefinitionBean(String name, String template, String templateEngineLanguage, EContentType contentType, Charset charSet)
public static TemplateDefinitionBean.TemplateDefinitionBeanBuilder<?,?> builder()
public TemplateDefinitionBean.TemplateDefinitionBeanBuilder<?,?> toBuilder()
public String getName()
A symbolic name for this template.
public String getTemplate()
The template resource path, can be any of the resources resolved by ResourceLoader.getResource(String)
.
ResourceLoader.getResource(String)
public String getTemplateEngineLanguage()
The template engine language. Identify the engine capable of transform the given template
public EContentType getContentType()
The resulting content type of this template.
public Charset getCharSet()
The charset of resulting content from this template.
protected boolean canEqual(Object other)
public void setName(@NotBlank @NotBlank String name)
A symbolic name for this template.
public void setTemplate(@NotBlank @NotBlank String template)
The template resource path, can be any of the resources resolved by ResourceLoader.getResource(String)
.
template
- The template resource pathResourceLoader.getResource(String)
public void setTemplateEngineLanguage(@NotBlank @NotBlank String templateEngineLanguage)
The template engine language. Identify the engine capable of transform the given template
public void setContentType(@NotNull @NotNull EContentType contentType)
The resulting content type of this template.
public void setCharSet(@NotNull @NotNull Charset charSet)
The charset of resulting content from this template.
Copyright © 2021 Albirar. All rights reserved.