org.xwiki.rendering.internal.macro
Class DefaultMacroIdFactory

java.lang.Object
  extended by 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

Constructor Summary
DefaultMacroIdFactory()
           
 
Method Summary
 MacroId createMacroId(String macroIdAsString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMacroIdFactory

public DefaultMacroIdFactory()
Method Detail

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