Class DisallowPropertyHelper
java.lang.Object
io.wcm.devops.conga.generator.plugins.handlebars.helper.DisallowPropertyHelper
- All Implemented Interfaces:
HelperPlugin<Object>,Plugin
Handlebars helper that ensures a given property is not set/present.
If it is, an exception is thrown with the property name.
Optionally, a second parameter can be provided with a custom error message.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NAME
Plugin/Helper name- See Also:
-
-
Constructor Details
-
DisallowPropertyHelper
public DisallowPropertyHelper()
-
-
Method Details
-
getName
-
apply
public Object apply(Object context, com.github.jknack.handlebars.Options options, HelperContext pluginContext) throws IOException Description copied from interface:HelperPluginApply the helper to the context.- Specified by:
applyin 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.
-