Package freemarker.cache
Class TemplateCache.MaybeMissingTemplate
- java.lang.Object
-
- freemarker.cache.TemplateCache.MaybeMissingTemplate
-
- Enclosing class:
- TemplateCache
public static final class TemplateCache.MaybeMissingTemplate extends java.lang.ObjectUsed 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 java.lang.StringgetMissingTemplateNormalizedName()When the template was missing, this possibly contains its normalized name.java.lang.StringgetMissingTemplateReason()When the template was missing, this possibly contains the explanation, ornull.TemplategetTemplate()TheTemplateif it wasn't missing, otherwisenull.
-
-
-
Method Detail
-
getMissingTemplateReason
public java.lang.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 java.lang.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.
-
-