|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.rendering.internal.macro.DefaultMacroContentParser
@Component @Singleton public class DefaultMacroContentParser
Default implementation for MacroContentParser.
| Constructor Summary | |
|---|---|
DefaultMacroContentParser()
|
|
| Method Summary | |
|---|---|
protected Syntax |
getCurrentSyntax(MacroTransformationContext context)
Find the current syntax to use for macro supporting wiki content/parameters/whatever. |
java.util.List<Block> |
parse(java.lang.String content,
MacroTransformationContext macroContext,
boolean transform,
boolean removeTopLevelParagraph)
Parses content of a macro field (parameter, macro content) in a given syntax and optionally remove the top level paragraph. |
XDOM |
parseXDOM(java.lang.String content,
MacroTransformationContext macroContext,
boolean transform,
boolean removeTopLevelParagraph)
Parses content of a macro field (parameter, macro content) in a given syntax and optionally remove the top level paragraph. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultMacroContentParser()
| Method Detail |
|---|
public java.util.List<Block> parse(java.lang.String content,
MacroTransformationContext macroContext,
boolean transform,
boolean removeTopLevelParagraph)
throws MacroExecutionException
parse in interface MacroContentParsercontent - the content to parsemacroContext - the executing Macro context (from which to get the current syntax, etc)transform - if true then executes transformationsremoveTopLevelParagraph - whether the top level paragraph should be removed after parsing
Blocks
MacroExecutionException - in case of a parsing errorMacroContentParser.parse(String, MacroTransformationContext, boolean, boolean)
public XDOM parseXDOM(java.lang.String content,
MacroTransformationContext macroContext,
boolean transform,
boolean removeTopLevelParagraph)
throws MacroExecutionException
parseXDOM in interface MacroContentParsercontent - the content to parsemacroContext - the executing Macro context (from which to get the current syntax, etc)transform - if true then executes transformationsremoveTopLevelParagraph - whether the top level paragraph should be removed after parsing
Blocks
MacroExecutionException - in case of a parsing errorMacroContentParser.parseXDOM(java.lang.String,
org.xwiki.rendering.transformation.MacroTransformationContext, boolean, boolean)protected Syntax getCurrentSyntax(MacroTransformationContext context)
context - the macro execution context containing the default syntax and the current macro block
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||