public class SyntaxType extends Object implements Comparable<SyntaxType>
xwiki
, confluence
, mediawiki
, etc).markdown
syntax has
the commonmark
variant and the github
variant.XWiki
, Confluence
, MediaWiki
).<base type>[+<variant>]*
.
Examples:
xwiki
markdown+commonmark
sometype+variant1+...+variantN
Modifier and Type | Field and Description |
---|---|
static SyntaxType |
ANNOTATED_HTML
Annotated HTML syntax.
|
static SyntaxType |
ANNOTATED_XHTML
Annotated XHTML syntax.
|
static SyntaxType |
APT
APT syntax.
|
static SyntaxType |
CONFLUENCE
Confluence wiki syntax.
|
static SyntaxType |
CONFLUENCEXHTML
Confluence XHTML based syntax.
|
static SyntaxType |
CREOLE
Creole wiki syntax.
|
static SyntaxType |
DOCBOOK
DoxBook syntax.
|
static SyntaxType |
DOKUWIKI
DokuWiki wiki syntax.
|
static SyntaxType |
EVENT
Events syntax.
|
static SyntaxType |
HTML
HTML syntaxes.
|
static SyntaxType |
JSPWIKI
JSPWiki wiki syntax.
|
static SyntaxType |
MARKDOWN
MarkDown wiki syntax.
|
static SyntaxType |
MEDIAWIKI
MediaWiki wiki syntax.
|
static SyntaxType |
PLAIN
Plain text syntax.
|
static SyntaxType |
TEX
TEX syntax.
|
static SyntaxType |
TWIKI
TWiki wiki syntax.
|
static SyntaxType |
XDOMXML
XML based XWiki DOM syntax.
|
static SyntaxType |
XHTML
XHTML syntax.
|
static SyntaxType |
XWIKI
XWiki wiki syntax.
|
Constructor and Description |
---|
SyntaxType(String id,
List<String> variants,
String name) |
SyntaxType(String id,
String name) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SyntaxType syntaxType) |
boolean |
equals(Object object) |
String |
getId() |
String |
getName() |
static Map<String,SyntaxType> |
getSyntaxTypes()
Deprecated.
since 13.3RC1, use
SyntaxRegistry.getSyntaxes() |
List<String> |
getVariants() |
int |
hashCode() |
String |
toIdString() |
String |
toString() |
static SyntaxType |
valueOf(String syntaxTypesString) |
public static final SyntaxType XWIKI
public static final SyntaxType CONFLUENCE
public static final SyntaxType CONFLUENCEXHTML
public static final SyntaxType MEDIAWIKI
public static final SyntaxType DOKUWIKI
public static final SyntaxType CREOLE
public static final SyntaxType JSPWIKI
public static final SyntaxType TWIKI
public static final SyntaxType XHTML
public static final SyntaxType ANNOTATED_XHTML
public static final SyntaxType ANNOTATED_HTML
public static final SyntaxType HTML
public static final SyntaxType PLAIN
public static final SyntaxType EVENT
public static final SyntaxType TEX
public static final SyntaxType DOCBOOK
public static final SyntaxType XDOMXML
public static final SyntaxType MARKDOWN
public static final SyntaxType APT
public SyntaxType(String id, String name)
id
- the technical id of the Syntax type (ex "annotatedxhtml")name
- the human readable name of the Syntax type (ex "Annotated XHTML")@Deprecated public static Map<String,SyntaxType> getSyntaxTypes()
SyntaxRegistry.getSyntaxes()
public String getId()
public List<String> getVariants()
public String getName()
public String toIdString()
public String toString()
Display a human readable name of the Syntax type.
toString
in class Object
Object.toString()
public int compareTo(SyntaxType syntaxType)
compareTo
in interface Comparable<SyntaxType>
public static SyntaxType valueOf(String syntaxTypesString) throws ParseException
syntaxTypesString
- the syntax type as a string (eg xwiki
, confluence+xhtml
)ParseException
- in case the string doesn't represent a valid syntax typeCopyright © 2004–2021 XWiki. All rights reserved.