Interface SerializedTransformationOptionsAccessor
-
- All Known Implementing Classes:
AbstractRenderingEngine.RenderingContext
@AlfrescoPublicApi public interface SerializedTransformationOptionsAccessorDefines methods for retrieving parameter values for use in building transformation options.- Author:
- Ray Gauss II
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> TgetCheckedParam(java.lang.String paramName, java.lang.Class<T> clazz)Gets the value for the named parameter.intgetIntegerParam(java.lang.String key, int defaultValue)Gets the int value for the named parameter.<T> TgetParamWithDefault(java.lang.String paramName, T defaultValue)Gets the value for the named parameter.
-
-
-
Method Detail
-
getCheckedParam
<T> T getCheckedParam(java.lang.String paramName, java.lang.Class<T> clazz)Gets the value for the named parameter. Checks the type of the parameter is correct and throws and Exception if it isn't. Returnsnullif the parameter value isnull- Parameters:
paramName- the name of the parameter being checked.clazz- the expectedClassof the parameter value.- Returns:
- the parameter value or
null.
-
getParamWithDefault
<T> T getParamWithDefault(java.lang.String paramName, T defaultValue)Gets the value for the named parameter. Checks the type of the parameter is the same as the type ofdefaultValueand throws aRenditionServiceExceptionif it isn't. ReturnsdefaultValueif the parameter value isnull- Parameters:
paramName- String
-
getIntegerParam
int getIntegerParam(java.lang.String key, int defaultValue)Gets the int value for the named parameter. ReturnsdefaultValueif the parameter value isnull.- Parameters:
key- StringdefaultValue- int- Returns:
- int
-
-