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