Class ImageMapExtractor
java.lang.Object
com.day.cq.wcm.designimporter.util.ImageMapExtractor
This is a utility class for extracting all map elements from the HTML
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetFinalHtml(String input, List<String> maps) getImagemapsMap(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.
-
Constructor Details
-
ImageMapExtractor
public ImageMapExtractor()
-
-
Method Details
-
getImagemapsMap
public static Map<String,String> getImagemapsMap(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
-