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
TemplateModelExceptionprotected int intParam(Object m, String name) throws TemplateModelException
TemplateModelExceptionprotected boolean boolParam(Object m, String name) throws TemplateModelException
TemplateModelExceptionprotected void dieWithMissingParam(String pname) throws TemplateModelException
throw newMissingParamException(String).TemplateModelExceptionprotected TemplateModelException newMissingParamException(String pname)
protected void dieWithUnknownParam(String pname) throws TemplateModelException
throw newUnsupportedParamException(String).TemplateModelExceptionprotected TemplateModelException newUnsupportedParamException(String pname)
protected void dieWithParamsNotAllowed()
throws TemplateModelException
throw newNoParamsAllowedException().TemplateModelExceptionprotected TemplateModelException newNoParamsAllowedException() throws TemplateModelException
TemplateModelException