org.exoplatform.wiki.rendering.macro
Class MacroUtils

java.lang.Object
  extended by org.exoplatform.wiki.rendering.macro.MacroUtils

public class MacroUtils
extends Object

Created by The eXo Platform SAS Author : Lai Trung Hieu hieu.lai@exoplatform.com 12 Jan 2011


Constructor Summary
MacroUtils()
           
 
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
 

Constructor Detail

MacroUtils

public MacroUtils()
Method Detail

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 © 2013 eXo Platform SAS. All Rights Reserved.