|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<TokenType>
com.atlassian.renderer.TokenType
public enum TokenType
Represents the different types of token that are used in the RenderedContentStore when rendering wiki markup
to html.
| Enum Constant Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
Replacer |
getTokenDeleteReplacer()
|
java.lang.String |
getTokenMarker()
An unlikely-to-appear-in-real-text token, for use in content replacement. |
java.util.regex.Pattern |
getTokenPattern()
A Pattern that can be used to find tokens of this type. |
java.lang.String |
getTokenPatternString()
A String that can be used as to make Patterns to find tokens of this type. |
static TokenType |
valueOf(java.lang.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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final TokenType INLINE
public static final TokenType BLOCK
public static final TokenType INLINE_BLOCK
| Method Detail |
|---|
public static TokenType[] values()
for (TokenType c : TokenType.values()) System.out.println(c);
public static TokenType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic java.lang.String getTokenMarker()
public java.lang.String getTokenPatternString()
Patterns to find tokens of this type. Intended for use in composing
more complex patterns, since getTokenPattern() is also available.
public java.util.regex.Pattern getTokenPattern()
public Replacer getTokenDeleteReplacer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||