@Role
public interface MacroContentParser
Modifier and Type | Method and Description |
---|---|
Syntax |
getCurrentSyntax(MacroTransformationContext context)
Find the current syntax to use for macro supporting wiki content/parameters/whatever.
|
XDOM |
parse(String content,
MacroTransformationContext macroContext,
boolean transform,
boolean inline)
Parses content of a macro field (parameter, macro content) in a given syntax and optionally remove the top level
paragraph.
|
XDOM |
parse(String content,
MacroTransformationContext macroContext,
boolean transform,
MetaData metadata,
boolean inline)
Parses content of a macro field (parameter, macro content) in a given syntax and optionally remove the top level
paragraph.
|
XDOM parse(String content, MacroTransformationContext macroContext, boolean transform, boolean inline) throws MacroExecutionException
content
- the content to parsemacroContext
- the executing Macro context (from which to get the current syntax, etc)transform
- if true then executes transformationsinline
- whether the content should be parsed as inline content (not top level paragraph, etc)Block
sMacroExecutionException
- in case of a parsing errorXDOM parse(String content, MacroTransformationContext macroContext, boolean transform, MetaData metadata, boolean inline) throws MacroExecutionException
content
- the content to parsemacroContext
- the executing Macro context (from which to get the current syntax, etc)transform
- if true then executes transformationsmetadata
- the metadata to add to the XDOM before executing transformationsinline
- whether the content should be parsed as inline content (not top level paragraph, etc)Block
sMacroExecutionException
- in case of a parsing errorSyntax getCurrentSyntax(MacroTransformationContext context)
context
- the macro execution context containing the default syntax and the current macro blockCopyright © 2004–2022 XWiki. All rights reserved.