Package fmpp.models
Class TemplateModelUtils
java.lang.Object
fmpp.models.TemplateModelUtils
- Direct Known Subclasses:
AddTransform
,ClearTransform
,RemoveTransform
,SetTransform
Constains utility methods for transform and method variable implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected void
dieWithMissingParam
(String pname) Deprecated.protected void
Deprecated.Usethrow
newNoParamsAllowedException()
.protected void
dieWithUnknownParam
(String pname) Deprecated.Usethrow
newUnsupportedParamException(String)
.protected int
protected freemarker.template.TemplateModelException
newMissingParamException
(String pname) protected freemarker.template.TemplateModelException
protected freemarker.template.TemplateModelException
protected String
-
Constructor Details
-
TemplateModelUtils
public TemplateModelUtils()
-
-
Method Details
-
strParam
- Throws:
freemarker.template.TemplateModelException
-
intParam
- Throws:
freemarker.template.TemplateModelException
-
boolParam
protected boolean boolParam(Object m, String name) throws freemarker.template.TemplateModelException - Throws:
freemarker.template.TemplateModelException
-
dieWithMissingParam
Deprecated.Usethrow
newMissingParamException(String)
.- Throws:
freemarker.template.TemplateModelException
-
newMissingParamException
-
dieWithUnknownParam
Deprecated.Usethrow
newUnsupportedParamException(String)
.- Throws:
freemarker.template.TemplateModelException
-
newUnsupportedParamException
-
dieWithParamsNotAllowed
protected void dieWithParamsNotAllowed() throws freemarker.template.TemplateModelExceptionDeprecated.Usethrow
newNoParamsAllowedException()
.- Throws:
freemarker.template.TemplateModelException
-
newNoParamsAllowedException
protected freemarker.template.TemplateModelException newNoParamsAllowedException() throws freemarker.template.TemplateModelException- Throws:
freemarker.template.TemplateModelException
-
throw
newMissingParamException(String)
.