Class EnsurePropertiesHelper
- java.lang.Object
-
- io.wcm.devops.conga.generator.plugins.handlebars.helper.EnsurePropertiesHelper
-
- All Implemented Interfaces:
HelperPlugin<Object>
,Plugin
public final class EnsurePropertiesHelper extends Object implements HelperPlugin<Object>
Handlebars helper that checks if all given property names have a value set. If not, an exception is thrown containing the missing property names.
-
-
Constructor Summary
Constructors Constructor Description EnsurePropertiesHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
apply(Object context, com.github.jknack.handlebars.Options options, HelperContext pluginContext)
Apply the helper to the context.String
getName()
-
-
-
Field Detail
-
NAME
public static final String NAME
Plugin/Helper name- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName()
-
apply
public Object apply(Object context, com.github.jknack.handlebars.Options options, HelperContext pluginContext) throws IOException
Description copied from interface:HelperPlugin
Apply the helper to the context.- Specified by:
apply
in interfaceHelperPlugin<Object>
- Parameters:
context
- The context object.options
- The options object.pluginContext
- Plugin context- Returns:
- A string result.
- Throws:
IOException
- If a template cannot be loaded.
-
-