Package org.xwiki.rendering.syntax
Class SyntaxContent
java.lang.Object
org.xwiki.rendering.syntax.SyntaxContent
Represents text content that has a syntax.
- Since:
- 8.2RC1
- Version:
- $Id: af6a8d119e5c9daa2a79d11ad175f04ab98eedb7 $
-
Constructor Summary
ConstructorsConstructorDescriptionSyntaxContent(String content, Syntax syntax) Creates a new instance that wraps the given text content and its syntax. -
Method Summary
-
Constructor Details
-
SyntaxContent
Creates a new instance that wraps the given text content and its syntax.- Parameters:
content- the text contentsyntax- the syntax of the content
-
-
Method Details
-
getSyntax
- Returns:
- the syntax of the content
-
getContent
- Returns:
- the text content
-