public class TemplateDefinitionBean extends Object implements Serializable
| 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()
public String getTemplate()
ResourceLoader.getResource(String).ResourceLoader.getResource(String)public String getTemplateEngineLanguage()
public EContentType getContentType()
public Charset getCharSet()
protected boolean canEqual(Object other)
public void setName(@NotBlank
@NotBlank String name)
public void setTemplate(@NotBlank
@NotBlank String template)
ResourceLoader.getResource(String).template - The template resource pathResourceLoader.getResource(String)public void setTemplateEngineLanguage(@NotBlank
@NotBlank String templateEngineLanguage)
public void setContentType(@NotNull
@NotNull EContentType contentType)
public void setCharSet(@NotNull
@NotNull Charset charSet)
Copyright © 2021 Albirar. All rights reserved.