Class ImageMapExtractor
- java.lang.Object
-
- com.day.cq.wcm.designimporter.util.ImageMapExtractor
-
public class ImageMapExtractor extends java.lang.Object
This is a utility class for extracting all map elements from the HTML
-
-
Constructor Summary
Constructors Constructor Description ImageMapExtractor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getFinalHtml(java.lang.String input, java.util.List<java.lang.String> maps)
static java.util.Map<java.lang.String,java.lang.String>
getImagemapsMap(java.lang.String input, DesignImporterContext designImporterContext)
This method returns a Map containing the map element name and the stringified form of map element that is required for image component.
-
-
-
Method Detail
-
getImagemapsMap
public static java.util.Map<java.lang.String,java.lang.String> getImagemapsMap(java.lang.String input, DesignImporterContext designImporterContext)
This method returns a Map containing the map element name and the stringified form of map element that is required for image component.- Parameters:
input
- The html stringdesignImporterContext
-- Returns:
- a map containing key as map element name and value as stringified map element
-
getFinalHtml
public static java.lang.String getFinalHtml(java.lang.String input, java.util.List<java.lang.String> maps)
-
-