Class AbstractMacro

  • All Implemented Interfaces:
    Macro
    Direct Known Subclasses:
    EchoMacro, SnippetMacro, TocMacro

    public abstract class AbstractMacro
    extends java.lang.Object
    implements Macro
    Abstract base class to execute Macro.
    Since:
    1.0
    • Field Summary

      • Fields inherited from interface org.apache.maven.doxia.macro.Macro

        EOL
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractMacro()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static SinkEventAttributes getAttributesFromMap​(java.util.Map<?,​?> parameters)
      Convert the Map of macro parameters to an AttributeSet.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.maven.doxia.macro.Macro

        execute
    • Constructor Detail

      • AbstractMacro

        public AbstractMacro()
    • Method Detail

      • getAttributesFromMap

        protected static SinkEventAttributes getAttributesFromMap​(java.util.Map<?,​?> parameters)
        Convert the Map of macro parameters to an AttributeSet. No check of validity is done, all parameters are added.
        Parameters:
        parameters - the macro parameters.
        Returns:
        a SinkEventAttributeSet containing the same parameters, or null if parameters is null.
        Since:
        1.1.1.