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 StringgetMissingTemplateNormalizedName()When the template was missing, this possibly contains its normalized name.StringgetMissingTemplateReason()When the template was missing, this possibly contains the explanation, ornull.TemplategetTemplate()TheTemplateif 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 benullfor example if the normalization itself was unsuccessful.
-
-