Class HTMLEnhancer

java.lang.Object
org.ametys.cms.transformation.html.HTMLEnhancer

public class HTMLEnhancer extends Object
This class represent a enhancement to html
  • Constructor Details

    • HTMLEnhancer

      public HTMLEnhancer(String pluginName, String htmleditor2HtmlXSLT, String html2HTMLEditorXSLT, String html2HTMLXSLT, String html2outgoingReferencesXSLT, String html2HTMLHandler, String htmleditor2HTMLHandler, String html2HTMLEditorHandler)
      Create a HTML enhancer
      Parameters:
      pluginName - The name of the plugin declaring the enhancer
      htmleditor2HtmlXSLT - The fullpath to the xslt file or relative to the current plugin
      html2HTMLEditorXSLT - The fullpath to the xslt file or relative to the current plugin
      html2HTMLXSLT - The fullpath to the xslt file or relative to the current plugin
      html2outgoingReferencesXSLT - The fullpath to the xslt file or relative to the current plugin
      html2HTMLHandler - The role of a component that implements EnhancementHandler
      htmleditor2HTMLHandler - The role of a component that implements HTMLEditionHandler
      html2HTMLEditorHandler - The role of a component that implements HTMLEditionHandler
  • Method Details

    • getHTMLEditor2HtmlX

      Get the xslt to use when transforming from htmleditor to html
      Returns:
      The fullpath to a xslt file
    • getHtml2HTMLEditorXSLT

      Get the xslt to use when transforming from html to htmleditor
      Returns:
      The fullpath to a xslt file
    • getHtml2outgoingReferencesXSLT

      Get the xslt to use when transforming from html to outgoing references
      Returns:
      The fullpath to a xslt file
    • getHtml2HTMLXSLT

      Get the xslt to use when transforming from html to html
      Returns:
      The fullpath to a xslt file
    • getHtml2HTMLHandler

      Get the component role to use when transforming from html to html
      Returns:
      The component role
    • getHtmleditor2HTMLHandler

      Get the component role to use when transforming from htmleditor to html
      Returns:
      The component role
    • getHtml2HTMLEditorHandler

      Get the component role to use when transforming from html to htmleditor
      Returns:
      The component role