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
Abstract base for head components (mj-attributes, mj-font, etc.). Head components process
metadata and don't produce HTML output directly.
-
Field Summary
Fields inherited from class BaseComponent
globalContext, node, renderContext -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHeadComponent(MjmlNode node, GlobalContext globalContext, RenderContext renderContext) -
Method Summary
Modifier and TypeMethodDescriptionReturns the default attribute values for this component.abstract voidprocess()Processes this head component, updating the global context with extracted metadata (fonts, styles, attributes, etc.).Methods inherited from class BaseComponent
getAttribute, getAttribute, getNode, getTagName
-
Constructor Details
-
HeadComponent
-
-
Method Details
-
process
public abstract void process()Processes this head component, updating the global context with extracted metadata (fonts, styles, attributes, etc.). -
getDefaultAttributes
Description copied from class:BaseComponentReturns the default attribute values for this component.- Specified by:
getDefaultAttributesin classBaseComponent- Returns:
- a map of attribute names to their default values
-