@Component @Named(value="rendering") @Singleton public class RenderingScriptService extends Object implements org.xwiki.script.service.ScriptService
| Constructor and Description |
|---|
RenderingScriptService() |
| Modifier and Type | Method and Description |
|---|---|
List<org.xwiki.rendering.syntax.Syntax> |
getAvailableParserSyntaxes() |
List<org.xwiki.rendering.syntax.Syntax> |
getAvailableRendererSyntaxes() |
List<String> |
getDefaultTransformationNames() |
org.xwiki.rendering.block.XDOM |
parse(String text,
String syntaxId)
Parses a text written in the passed syntax.
|
String |
render(org.xwiki.rendering.block.Block block,
String outputSyntaxId)
Render a list of Blocks into the passed syntax.
|
org.xwiki.rendering.syntax.Syntax |
resolveSyntax(String syntaxId)
Converts a Syntax specified as a String into a proper Syntax object.
|
public List<org.xwiki.rendering.syntax.Syntax> getAvailableParserSyntaxes()
public List<org.xwiki.rendering.syntax.Syntax> getAvailableRendererSyntaxes()
public List<String> getDefaultTransformationNames()
public org.xwiki.rendering.block.XDOM parse(String text, String syntaxId)
text - the text to parsesyntaxId - the id of the syntax in which the text is written inpublic String render(org.xwiki.rendering.block.Block block, String outputSyntaxId)
block - the block to renderoutputSyntaxId - the syntax in which to render the blockspublic org.xwiki.rendering.syntax.Syntax resolveSyntax(String syntaxId)
syntaxId - the syntax as a string (eg "xwiki/2.0", "html/4.01", etc)Copyright © 2004–2014 XWiki. All rights reserved.