public class TemplateModelUtils
extends java.lang.Object
Constructor and Description |
---|
TemplateModelUtils() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
boolParam(java.lang.Object m,
java.lang.String name) |
protected void |
dieWithMissingParam(java.lang.String pname)
Deprecated.
Use
throw newMissingParamException(String) . |
protected void |
dieWithParamsNotAllowed()
Deprecated.
Use
throw newNoParamsAllowedException() . |
protected void |
dieWithUnknownParam(java.lang.String pname)
Deprecated.
Use
throw newUnsupportedParamException(String) . |
protected int |
intParam(java.lang.Object m,
java.lang.String name) |
protected freemarker.template.TemplateModelException |
newMissingParamException(java.lang.String pname) |
protected freemarker.template.TemplateModelException |
newNoParamsAllowedException() |
protected freemarker.template.TemplateModelException |
newUnsupportedParamException(java.lang.String pname) |
protected java.lang.String |
strParam(java.lang.Object m,
java.lang.String name) |
protected java.lang.String strParam(java.lang.Object m, java.lang.String name) throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelException
protected int intParam(java.lang.Object m, java.lang.String name) throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelException
protected boolean boolParam(java.lang.Object m, java.lang.String name) throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelException
protected void dieWithMissingParam(java.lang.String pname) throws freemarker.template.TemplateModelException
throw
newMissingParamException(String)
.freemarker.template.TemplateModelException
protected freemarker.template.TemplateModelException newMissingParamException(java.lang.String pname)
protected void dieWithUnknownParam(java.lang.String pname) throws freemarker.template.TemplateModelException
throw
newUnsupportedParamException(String)
.freemarker.template.TemplateModelException
protected freemarker.template.TemplateModelException newUnsupportedParamException(java.lang.String pname)
protected void dieWithParamsNotAllowed() throws freemarker.template.TemplateModelException
throw
newNoParamsAllowedException()
.freemarker.template.TemplateModelException
protected freemarker.template.TemplateModelException newNoParamsAllowedException() throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelException