Class VariablesReplacementDirective
- java.lang.Object
-
- org.silverpeas.core.contribution.content.wysiwyg.service.directive.AbstractDirective
-
- org.silverpeas.core.contribution.content.wysiwyg.service.directive.VariablesReplacementDirective
-
- All Implemented Interfaces:
WysiwygContentTransformerDirective
public class VariablesReplacementDirective extends AbstractDirective
Transforms all URL of images to take into account theirs display size.- Author:
- Yohann Chastagnier
-
-
Constructor Summary
Constructors Constructor Description VariablesReplacementDirective()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
prepareReplacements(net.htmlparser.jericho.Source source, Map<String,String> replacements)
Prepares all replacements to perform.-
Methods inherited from class org.silverpeas.core.contribution.content.wysiwyg.service.directive.AbstractDirective
execute, modifyElementAttribute, modifyElementAttributes
-
-
-
-
Method Detail
-
prepareReplacements
public void prepareReplacements(net.htmlparser.jericho.Source source, Map<String,String> replacements)
Description copied from class:AbstractDirective
Prepares all replacements to perform.- Specified by:
prepareReplacements
in classAbstractDirective
- Parameters:
source
- the initial source content.replacements
- the map into which replacements MUST be specified. The key represents the occurrence into source, the value the replacements.
-
-