Class ModifiableHTMLContent
- java.lang.Object
-
- com.day.cq.wcm.designimporter.parser.HTMLContent
-
- com.day.cq.wcm.designimporter.parser.ModifiableHTMLContent
-
public class ModifiableHTMLContent extends HTMLContent
Container for the HTML content of various type. Various types are classified by the enumerationHTMLContentType
-
-
Constructor Summary
Constructors Constructor Description ModifiableHTMLContent(HTMLContent htmlContent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(HTMLContentType htmlContentType, java.lang.Object content)
Adds content to this object according to theHTMLContentType
java.lang.Object
get(HTMLContentType htmlContentType)
Gets the content by typevoid
set(HTMLContentType htmlContentType, java.lang.Object content)
Gets the content by type
-
-
-
Constructor Detail
-
ModifiableHTMLContent
public ModifiableHTMLContent(HTMLContent htmlContent)
-
-
Method Detail
-
set
public void set(HTMLContentType htmlContentType, java.lang.Object content)
Gets the content by type- Parameters:
htmlContentType
- One of the values from the enumerationHTMLContentType
-
get
public java.lang.Object get(HTMLContentType htmlContentType)
Gets the content by type- Overrides:
get
in classHTMLContent
- Parameters:
htmlContentType
- One of the values from the enumerationHTMLContentType
- Returns:
- The content as per type
-
add
public void add(HTMLContentType htmlContentType, java.lang.Object content)
Adds content to this object according to theHTMLContentType
- Overrides:
add
in classHTMLContent
- Parameters:
htmlContentType
- One of the values from the enumerationHTMLContentType
content
- The content as per type
-
-