Package org.xwiki.rendering.macro
Class MacroId
- java.lang.Object
-
- org.xwiki.rendering.macro.MacroId
-
public class MacroId extends Object
Represents a Macro identifier. This is used when we need to pass a reference of a macro around without having to pass Macro instances; it's also required when we need to create a Macro instance from an identifier.A Macro is identified by 2 parameters:
- a string representing a technical id (eg "toc")
- an optional syntax (can be null) if the macro is only available for a given syntax
- Since:
- 2.0M3
- Version:
- $Id: 160c8cb04b086b17453c2f992c92ac47e7b857da $
-
-
Constructor Detail
-
MacroId
public MacroId(String id)
Constructor for macros registered for all syntaxes.- Parameters:
id
- seegetId()
-
MacroId
public MacroId(String id, Syntax syntax)
Constructor for macros registered for a specific syntax only.- Parameters:
id
- seegetId()
syntax
- seegetSyntax()
-
-