Class XMLMacro

java.lang.Object
org.eclnt.jsfserver.elements.macros.XMLMacro
All Implemented Interfaces:
Serializable, IMacro

public class XMLMacro extends Object implements IMacro, Serializable
Macro that is completely defined by the XML macro defintion.
See Also:
  • Constructor Details

  • Method Details

    • checkIfApplicable

      public boolean checkIfApplicable(String tagName)
      Description copied from interface: IMacro
      Check if a macro can be executed for a certain tag. This function is e.g. called in the Layout Editor: the select box of available macros is filled correspondingly.
      Specified by:
      checkIfApplicable in interface IMacro
    • executeMacro

      public void executeMacro(BaseComponentTag tag, String[] macroParams)
      Description copied from interface: IMacro
      Macro execution at runtime.
      Specified by:
      executeMacro in interface IMacro
    • checkIfAttributeIsAffected

      public boolean checkIfAttributeIsAffected(String attribute)
      Description copied from interface: IMacro
      Check if macro updates a certain attribute's value. This function is called e.g. by the Layout Editor: all attributes that are maintained by the macro are marked correspondingly.
      Specified by:
      checkIfAttributeIsAffected in interface IMacro
    • getName

      public String getName()
      Description copied from interface: IMacro
      Name of the macro.
      Specified by:
      getName in interface IMacro
    • getMacroParamNames

      public String[] getMacroParamNames()
      Description copied from interface: IMacro
      Names of Macro parameters. Null may be returned in case the macro does not provide for any parameters.
      Specified by:
      getMacroParamNames in interface IMacro