Class HeadComponent

java.lang.Object
dev.jcputney.mjml.component.BaseComponent
dev.jcputney.mjml.component.HeadComponent
Direct Known Subclasses:
MjAttributes, MjBreakpoint, MjFont, MjHead, MjHtmlAttributes, MjPreview, MjStyle, MjTitle

public abstract non-sealed class HeadComponent extends BaseComponent
Abstract base for head components (mj-attributes, mj-font, etc.). Head components process metadata and don't produce HTML output directly.
  • Constructor Details

  • Method Details

    • process

      public abstract void process()
      Processes this head component, updating the global context with extracted metadata (fonts, styles, attributes, etc.).
    • getDefaultAttributes

      public Map<String,String> getDefaultAttributes()
      Description copied from class: BaseComponent
      Returns the default attribute values for this component.
      Specified by:
      getDefaultAttributes in class BaseComponent
      Returns:
      a map of attribute names to their default values