public class DirectiveUtils extends Object
| Constructor and Description |
|---|
DirectiveUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
getBooleanProperty(Map<String,Object> params,
String targetProp,
String directiveName,
boolean required)
Attempts to retrieve a boolean property from the map of parameters supplied using the key
provided.
|
static String |
getStringProperty(Map<String,Object> params,
String targetProp,
String directiveName,
boolean required)
Attempts to retrieve a String property from the map of parameters supplied using the key
provided.
|
public static String getStringProperty(Map<String,Object> params, String targetProp, String directiveName, boolean required) throws freemarker.template.TemplateModelException
Attempts to retrieve a String property from the map of parameters supplied using the key provided.
null will be returned.params - A map of parameters (this is supplied to the execute method that must
be implemented by subclasses.targetProp - The name of the property to attempt to retrieve.required - Indicates whether or not the property is required for the directive to process successfully.null if it could not be found)freemarker.template.TemplateModelException - When a property matching the supplied name is found but is not a String.public static boolean getBooleanProperty(Map<String,Object> params, String targetProp, String directiveName, boolean required) throws freemarker.template.TemplateModelException
Attempts to retrieve a boolean property from the map of parameters supplied using the key provided.
false will be returned.params - A map of parameters (this is supplied to the execute method that must
be implemented by subclasses.targetProp - The name of the property to attempt to retrieve.required - Indicates whether or not the property is required for the directive to process successfully.false if it could not be found)freemarker.template.TemplateModelException - When a property matching the supplied name is found but is not a boolean.Copyright © 2005–2016 Alfresco Software. All rights reserved.