Class JsonEscapingStrategy
java.lang.Object
io.wcm.devops.conga.generator.plugins.handlebars.escaping.JsonEscapingStrategy
- All Implemented Interfaces:
EscapingStrategyPlugin,Plugin
Escapes for JSON files.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(String fileExtension, EscapingStrategyContext pluginContext) Checks if the plugin can be applied to files with the given file extension.escape(CharSequence value, EscapingStrategyContext pluginContext) Escape theCharSequence.getName()
-
Field Details
-
NAME
Plugin name- See Also:
-
-
Constructor Details
-
JsonEscapingStrategy
public JsonEscapingStrategy()
-
-
Method Details
-
getName
-
accepts
Description copied from interface:EscapingStrategyPluginChecks if the plugin can be applied to files with the given file extension.- Specified by:
acceptsin interfaceEscapingStrategyPlugin- Parameters:
fileExtension- File extensionpluginContext- Plugin context- Returns:
- true when the plugin can be applied to the given file.
-
escape
Description copied from interface:EscapingStrategyPluginEscape theCharSequence.- Specified by:
escapein interfaceEscapingStrategyPlugin- Parameters:
value- the character sequence to be escaped.pluginContext- Plugin context- Returns:
- the escaped character sequence.
-