@Role
public interface ContentParser
| Modifier and Type | Method and Description |
|---|---|
org.xwiki.rendering.block.XDOM |
parse(String content,
org.xwiki.rendering.syntax.Syntax syntax)
Parse content.
|
org.xwiki.rendering.block.XDOM |
parse(String content,
org.xwiki.rendering.syntax.Syntax syntax,
EntityReference source)
Parse content, and add source metadata.
|
org.xwiki.rendering.block.XDOM parse(String content, org.xwiki.rendering.syntax.Syntax syntax) throws org.xwiki.rendering.parser.ParseException, MissingParserException
content - the content to parse.syntax - the syntax in which the content is written.ParseException - when a parsing error occurs.MissingParserException - when no parser has been found.org.xwiki.rendering.block.XDOM parse(String content, org.xwiki.rendering.syntax.Syntax syntax, EntityReference source) throws org.xwiki.rendering.parser.ParseException, MissingParserException
content - the content to parse.syntax - the syntax in which the content is written.source - the source entity (mostly a Document Reference) containing the parsed content.ParseException - when a parsing error occurs.MissingParserException - when no parser has been found.Copyright © 2004–2017 XWiki. All rights reserved.