Class HTMLContent

java.lang.Object
com.day.cq.wcm.designimporter.parser.HTMLContent
Direct Known Subclasses:
ModifiableHTMLContent

public class HTMLContent extends Object
Container for the HTML content of various type. Various types are classified by the enumeration HTMLContentType
  • Constructor Details

    • HTMLContent

      public HTMLContent()
  • Method Details

    • get

      public Object get(HTMLContentType htmlContentType)
      Gets the content by type
      Parameters:
      htmlContentType - One of the values from the enumeration HTMLContentType
      Returns:
      The content as per type
    • add

      public void add(HTMLContentType htmlContentType, Object content)
      Adds content to this object according to the HTMLContentType
      Parameters:
      htmlContentType - One of the values from the enumeration HTMLContentType
      content - The content as per type