Package freemarker.cache
Class TemplateCache.MaybeMissingTemplate
- java.lang.Object
-
- freemarker.cache.TemplateCache.MaybeMissingTemplate
-
- Enclosing class:
- TemplateCache
public static final class TemplateCache.MaybeMissingTemplate extends Object
Used for the return value ofTemplateCache.getTemplate(String, Locale, Object, String, boolean)
.- Since:
- 2.3.22
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMissingTemplateNormalizedName()
When the template was missing, this possibly contains its normalized name.String
getMissingTemplateReason()
When the template was missing, this possibly contains the explanation, ornull
.Template
getTemplate()
TheTemplate
if it wasn't missing, otherwisenull
.
-
-
-
Method Detail
-
getMissingTemplateReason
public String getMissingTemplateReason()
When the template was missing, this possibly contains the explanation, ornull
. If the template wasn't missing (i.e., whengetTemplate()
return non-null
) this is alwaysnull
.
-
getMissingTemplateNormalizedName
public String getMissingTemplateNormalizedName()
When the template was missing, this possibly contains its normalized name. If the template wasn't missing (i.e., whengetTemplate()
return non-null
) this is alwaysnull
. When the template is missing, it will benull
for example if the normalization itself was unsuccessful.
-
-