<?xml version="1.0" encoding="UTF-8" standalone="yes"?><extensionVersion xmlns="http://www.xwiki.org/extension"><id>org.xwiki.platform:xwiki-platform-rendering-xwiki</id><name>XWiki Platform - Rendering - XWiki-specific implementation</name><type>jar</type><rating><totalVotes>0</totalVotes><averageVote>0.0</averageVote></rating><summary>XWiki Platform - Rendering - XWiki-specific implementation</summary><description>Integration module for the XWiki Rendering framework inside XWiki Platform (i.e. adding concepts that don't exist in XWiki Rendering and that only concerns the XWiki wiki).&#13;
&#13;
== Script Service ==&#13;
&#13;
{{code language='java'}}&#13;
@Component&#13;
@Named("rendering")&#13;
@Singleton&#13;
public class RenderingScriptService implements ScriptService&#13;
{&#13;
&#13;
    /**&#13;
     * @return the list of syntaxes for which a Parser is available&#13;
     */&#13;
    public List&lt;Syntax&gt; getAvailableParserSyntaxes()&#13;
    {&#13;
      // ...&#13;
    }&#13;
&#13;
    /**&#13;
     * @return the list of syntaxes for which a Renderer is available&#13;
     */&#13;
    public List&lt;Syntax&gt; getAvailableRendererSyntaxes()&#13;
    {&#13;
      // ...&#13;
    }&#13;
&#13;
    /**&#13;
     * @return the names of Transformations that are configured in the Rendering Configuration and which are used by the&#13;
     *         Transformation Manager when running all transformations&#13;
     */&#13;
    public List&lt;String&gt; getDefaultTransformationNames()&#13;
    {&#13;
        // ...&#13;
    }&#13;
&#13;
    /**&#13;
     * Parses a text written in the passed syntax.&#13;
     *&#13;
     * @param text the text to parse&#13;
     * @param syntaxId the id of the syntax in which the text is written in&#13;
     * @return the XDOM representing the AST of the parsed text or null if an error occurred&#13;
     * @since 3.2M3&#13;
     */&#13;
    public XDOM parse(String text, String syntaxId)&#13;
    {&#13;
        // ...&#13;
    }&#13;
&#13;
    /**&#13;
     * Render a list of Blocks into the passed syntax.&#13;
     *&#13;
     * @param block the block to render&#13;
     * @param outputSyntaxId the syntax in which to render the blocks&#13;
     * @return the string representing the passed blocks in the passed syntax or null if an error occurred&#13;
     * @since 3.2M3&#13;
     */&#13;
    public String render(Block block, String outputSyntaxId)&#13;
    {&#13;
        // ...&#13;
    }&#13;
&#13;
    /**&#13;
     * Converts a Syntax specified as a String into a proper Syntax object.&#13;
     *&#13;
     * @param syntaxId the syntax as a string (eg "xwiki/2.0", "html/4.01", etc)&#13;
     * @return the proper Syntax object representing the passed syntax&#13;
     */&#13;
    public Syntax resolveSyntax(String syntaxId)&#13;
    {&#13;
        // ...&#13;
    }&#13;
&#13;
    /**&#13;
     * Escapes a give text using the escaping method specific to the given syntax.&#13;
     * &lt;p&gt;&#13;
     * One example of escaping method is using escape characters like {@code ~} for the {@link Syntax#XWIKI_2_1} syntax&#13;
     * on all or just some characters of the given text.&#13;
     * &lt;p&gt;&#13;
     * The current implementation only escapes XWiki 1.0, 2.0 and 2.1 syntaxes.&#13;
     *&#13;
     * @param content the text to escape&#13;
     * @param syntax the syntax to escape the content in (e.g. {@link Syntax#XWIKI_1_0}, {@link Syntax#XWIKI_2_0},&#13;
     *            {@link Syntax#XWIKI_2_1}, etc.). This is the syntax where the output will be used and not necessarily&#13;
     *            the same syntax of the input content&#13;
     * @return the escaped text or {@code null} if the given content or the given syntax are {@code null}, or if the&#13;
     *         syntax is not supported&#13;
     * @since 7.1M1&#13;
     */&#13;
    public String escape(String content, Syntax syntax)&#13;
    {&#13;
        // ...&#13;
    }&#13;
&#13;
    /**&#13;
     * @return the list of Rendering Syntaxes that are configured for the current wiki (i.e. that are proposed to the&#13;
     *         user when editing wiki pages). These are input Syntaxes only (i.e. Syntaxes having a Parser for them).&#13;
     * @since 8.2M1&#13;
     */&#13;
    public List&lt;Syntax&gt; getConfiguredSyntaxes()&#13;
    {&#13;
        // ...&#13;
    }&#13;
&#13;
    /**&#13;
     * @return the list of Rendering Syntaxes that are disabled for the current wiki (i.e. that should not be proposed&#13;
     *         to the user when editing wiki pages)&#13;
     * @since 8.2M1&#13;
     */&#13;
    public List&lt;Syntax&gt; getDisabledSyntaxes()&#13;
    {&#13;
        // ...&#13;
    }&#13;
&#13;
    /**&#13;
     * @param syntax the syntax for which to return the list of Macro descriptors&#13;
     * @return the macro descriptors for the macros registered and available to the passed syntax&#13;
     * @throws MacroLookupException if a macro component descriptor cannot be loaded&#13;
     * @since 9.7RC1&#13;
     */&#13;
    public List&lt;MacroDescriptor&gt; getMacroDescriptors(Syntax syntax) throws MacroLookupException&#13;
    {&#13;
        // ...&#13;
    }&#13;
&#13;
    /**&#13;
     * @param macroIdAsString a string representing a macro id&#13;
     * @return the resolved macro id or {@code null} if resolving the given string fails&#13;
     * @since 10.10RC1&#13;
     */&#13;
    public MacroId resolveMacroId(String macroIdAsString)&#13;
    {&#13;
        // ...&#13;
    }&#13;
&#13;
    /**&#13;
     * @param macroId the macro id&#13;
     * @return the descriptor of the specified macro if it exists, {@code null} otherwise&#13;
     * @since 10.10RC1&#13;
     */&#13;
    public MacroDescriptor getMacroDescriptor(MacroId macroId)&#13;
    {&#13;
        // ...&#13;
    }&#13;
&#13;
    /**&#13;
     * Return the list of categories of a given macro.&#13;
     *&#13;
     * @param macroId the macro id&#13;
     * @return the list of categories of the macro&#13;
     * @since 14.6RC1&#13;
     */&#13;
    @Unstable&#13;
    public Set&lt;String&gt; getMacroCategories(MacroId macroId)&#13;
    {&#13;
        // ...&#13;
    }&#13;
}&#13;
&#13;
{{/code}}</description><licenses><name>GNU Lesser General Public License 2.1</name></licenses><website>http://extensions.xwiki.org/xwiki/bin/view/Extension/XWiki%20Platform%20-%20Rendering%20-%20XWiki-specific%20Implementation/</website><authors><name>XWiki Development Team</name><url>https://xwiki.org/xwiki/bin/view/XWiki/XWikiTeam</url></authors><scm><connection><system>git</system><path>git://github.com/xwiki/xwiki-platform.git/xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-xwiki</path></connection><developerConnection><system>git</system><path>git@github.com:xwiki/xwiki-platform.git/xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-xwiki</path></developerConnection><url>https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-xwiki/</url></scm><issueManagement><system>jira</system><url>https://jira.xwiki.org/browse/XWIKI</url></issueManagement><category>api</category><recommended>false</recommended><properties><key>maven.groupid</key><stringValue>org.xwiki.platform</stringValue></properties><properties><key>maven.artifactid</key><stringValue>xwiki-platform-rendering-xwiki</stringValue></properties><properties><key>maven.Model</key><stringValue>org.xwiki.platform:xwiki-platform-rendering-xwiki:jar:18.6.0</stringValue></properties><properties><key>xwiki.extension.recommendedVersions.commons</key><stringValue>org.xwiki.commons:.*/[18.6.0]</stringValue></properties><properties><key>xwiki.extension.recommendedVersions.platform</key><stringValue>org.xwiki.commons:.*/[18.6.0],
      org.xwiki.rendering:.*/[18.6.0],
      org.xwiki.platform:.*/[18.6.0]</stringValue></properties><properties><key>xwiki.extension.recommendedVersions</key><stringValue>org.xwiki.commons:.*/[18.6.0],
      org.xwiki.rendering:.*/[18.6.0],
      org.xwiki.platform:.*/[18.6.0]</stringValue></properties><version>3.5</version><repositories><id>maven-xwiki</id><uri>https://nexus.xwiki.org/nexus/content/groups/public</uri><type>maven</type></repositories></extensionVersion>