Class StringTemplateModel
java.lang.Object
ch.tocco.nice2.templating.api.freemarker.templatemodel.NullableTemplateModel
ch.tocco.nice2.templating.api.freemarker.templatemodel.StringTemplateModel
- All Implemented Interfaces:
freemarker.template.TemplateHashModel
,freemarker.template.TemplateModel
,freemarker.template.TemplateScalarModel
public class StringTemplateModel
extends NullableTemplateModel
implements freemarker.template.TemplateScalarModel
-
Field Summary
Fields inherited from class ch.tocco.nice2.templating.api.freemarker.templatemodel.NullableTemplateModel
nullValue, value, wrapper
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
Fields inherited from interface freemarker.template.TemplateScalarModel
EMPTY_STRING
-
Constructor Summary
ConstructorDescriptionStringTemplateModel
(String value, String nullValue, freemarker.ext.beans.BeansWrapper wrapper) -
Method Summary
Methods inherited from class ch.tocco.nice2.templating.api.freemarker.templatemodel.NullableTemplateModel
get, getValueOrFallback
-
Constructor Details
-
StringTemplateModel
-
-
Method Details
-
getAsString
- Specified by:
getAsString
in interfacefreemarker.template.TemplateScalarModel
-
isEmpty
public boolean isEmpty() throws freemarker.template.TemplateModelException- Specified by:
isEmpty
in interfacefreemarker.template.TemplateHashModel
- Overrides:
isEmpty
in classNullableTemplateModel
- Throws:
freemarker.template.TemplateModelException
-
toString
-