org.exoplatform.wiki.rendering.macro
Class MacroUtils
java.lang.Object
org.exoplatform.wiki.rendering.macro.MacroUtils
public class MacroUtils
- extends Object
|
Method Summary |
static List<org.xwiki.rendering.block.Block> |
parseSourceSyntax(org.xwiki.component.manager.ComponentManager componentManager,
String content,
org.xwiki.rendering.transformation.MacroTransformationContext context)
Parse provided content with the parser of the current wiki syntax. |
static void |
validateNumberParam(String param)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MacroUtils
public MacroUtils()
parseSourceSyntax
public static List<org.xwiki.rendering.block.Block> parseSourceSyntax(org.xwiki.component.manager.ComponentManager componentManager,
String content,
org.xwiki.rendering.transformation.MacroTransformationContext context)
throws org.xwiki.rendering.macro.MacroExecutionException
- Parse provided content with the parser of the current wiki syntax.
- Parameters:
content - the content to parse.context - the context of the macro transformation.
- Returns:
- an XDOM containing the parser content.
- Throws:
org.xwiki.rendering.macro.MacroExecutionException - failed to parse content
validateNumberParam
public static void validateNumberParam(String param)
throws org.xwiki.rendering.macro.MacroExecutionException
- Throws:
org.xwiki.rendering.macro.MacroExecutionException
Copyright © 2003–2014 eXo Platform SAS. All rights reserved.