Package com.adobe.acs.commons.ccvar
Interface TransformAction
public interface TransformAction
Interface used to implement custom actions that transform values based on the name authored by users. All
replacements in HTML and JSON are able to use custom actions created based on this interface.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanBoolean value to impact whether the replacement services (HTML or JSON) perform basic HTML entity escaping.Used to perform custom actions on the input value before being rendered.getName()Returns the configured name of the action.
-
Method Details
-
getName
String getName()Returns the configured name of the action. Used to map to the action present in a placeholder.- Returns:
- The name of the action
-
execute
Used to perform custom actions on the input value before being rendered. This runs on the actual value already replaced.- Parameters:
value- The input value- Returns:
- The transformed value
-
disableEscaping
boolean disableEscaping()Boolean value to impact whether the replacement services (HTML or JSON) perform basic HTML entity escaping. List of escaped characters can be found inContentVariableReplacementUtil.- Returns:
- boolean value for disabling escaping
-