T
- the context to use to execute the content (e.g. Macro Transformation Context)@Role
public interface ContentExecutor<T>
Modifier and Type | Method and Description |
---|---|
org.xwiki.rendering.block.XDOM |
execute(String content,
org.xwiki.rendering.syntax.Syntax syntax,
EntityReference source,
T context)
Parse and execute content.
|
org.xwiki.rendering.block.XDOM |
execute(String content,
org.xwiki.rendering.syntax.Syntax syntax,
T context)
Parse and execute content.
|
org.xwiki.rendering.block.XDOM execute(String content, org.xwiki.rendering.syntax.Syntax syntax, T context) throws org.xwiki.rendering.parser.ParseException, MissingParserException, ContentExecutorException
content
- the content to parse and executesyntax
- the syntax in which the content is written.context
- the context to use to execute the content (e.g. Macro Transformation Context)org.xwiki.rendering.parser.ParseException
- when a parsing error occurs.MissingParserException
- when no parser has been found.ContentExecutorException
- when the execution failed in some wayorg.xwiki.rendering.block.XDOM execute(String content, org.xwiki.rendering.syntax.Syntax syntax, EntityReference source, T context) throws org.xwiki.rendering.parser.ParseException, MissingParserException, ContentExecutorException
content
- the content to parse and executesyntax
- the syntax in which the content is written.source
- the source entity (mostly a Document Reference) containing the parsed content.context
- the context to use to execute the content (e.g. Macro Transformation Context)org.xwiki.rendering.parser.ParseException
- when a parsing error occurs.MissingParserException
- when no parser has been found.ContentExecutorException
- when the execution failed in some wayCopyright © 2004–2019 XWiki. All rights reserved.