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
- Version:
- $Id$
| 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- See Also:
MacroIdFactory.createMacroId(String)
Copyright © 2004-2011 XWiki. All Rights Reserved.