com.day.cq.portlet
Interface TextMapper


public interface TextMapper

The TextMapper is an optional service that allows to map or replace text output. This service can be used to rewrite markers placed into the HTML, CSS or Javascript output by some CQ template or components.

Since:
5.4

Nested Class Summary
static class TextMapper.ResourceType
           
 
Method Summary
 String rewrite(InvocationContext context, String completeText, String resourcePath, TextMapper.ResourceType type)
          Rewrite the complete character output.
 

Method Detail

rewrite

String rewrite(InvocationContext context,
               String completeText,
               String resourcePath,
               TextMapper.ResourceType type)
Rewrite the complete character output.

Parameters:
context - The current invocation context.
completeText - The current characters.
resourcePath - The path to the resource.
type - The resource type
Returns:
The rewritten characters.


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.