public enum TokenType extends Enum<TokenType>
RenderedContentStore when rendering wiki markup
to html.| Enum Constant and Description |
|---|
BLOCK
Block tokens are used for block elements such as paragraphs, divs, tables and pre blocks.
|
INLINE
Inline tokens are used for inline content such as plain text, spans, images, bold tags, and links.
|
INLINE_BLOCK
Similar (but not identical) to the html concept of inline-block, these tokens are used for elements that
have a block and inline nature, as divs can.
|
| Modifier and Type | Method and Description |
|---|---|
Replacer |
getTokenDeleteReplacer() |
String |
getTokenMarker()
An unlikely-to-appear-in-real-text token, for use in content replacement.
|
Pattern |
getTokenPattern()
A Pattern that can be used to find tokens of this type.
|
String |
getTokenPatternString()
A String that can be used as to make
Patterns to find tokens of this type. |
static TokenType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TokenType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TokenType INLINE
public static final TokenType BLOCK
public static final TokenType INLINE_BLOCK
public static TokenType[] values()
for (TokenType c : TokenType.values()) System.out.println(c);
public static TokenType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getTokenMarker()
public String getTokenPatternString()
Patterns to find tokens of this type. Intended for use in composing
more complex patterns, since getTokenPattern() is also available.public Pattern getTokenPattern()
public Replacer getTokenDeleteReplacer()
Copyright © 2019 Atlassian. All rights reserved.