Class SyntaxContent

java.lang.Object
org.xwiki.rendering.syntax.SyntaxContent

public class SyntaxContent extends Object
Represents text content that has a syntax.
Since:
8.2RC1
Version:
$Id: af6a8d119e5c9daa2a79d11ad175f04ab98eedb7 $
  • Constructor Details

    • SyntaxContent

      public SyntaxContent(String content, Syntax syntax)
      Creates a new instance that wraps the given text content and its syntax.
      Parameters:
      content - the text content
      syntax - the syntax of the content
  • Method Details

    • getSyntax

      public Syntax getSyntax()
      Returns:
      the syntax of the content
    • getContent

      public String getContent()
      Returns:
      the text content