org.xwiki.rendering.internal.macro
Class DefaultMacroIdFactory
java.lang.Object
org.xwiki.rendering.internal.macro.DefaultMacroIdFactory
- All Implemented Interfaces:
- MacroIdFactory
@Component
@Singleton
public class DefaultMacroIdFactory
- extends Object
- implements MacroIdFactory
Default implementation for MacroIdFactory
.
- Since:
- 2.0M3
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultMacroIdFactory
public DefaultMacroIdFactory()
createMacroId
public MacroId createMacroId(String macroIdAsString)
throws ParseException
- Specified by:
createMacroId
in interface MacroIdFactory
- Parameters:
macroIdAsString
- the string representing the macro id in the format "id/syntaxtype/syntaxversion".
Example: html/confluence/1.0
- Returns:
- the typed representation of a macro Id
- Throws:
ParseException
- if the passed string has an invalid format