com.atlassian.renderer
Enum RenderedContentStore.TokenType

java.lang.Object
  extended by java.lang.Enum<RenderedContentStore.TokenType>
      extended by com.atlassian.renderer.RenderedContentStore.TokenType
All Implemented Interfaces:
Serializable, Comparable<RenderedContentStore.TokenType>
Enclosing class:
RenderedContentStore

public static enum RenderedContentStore.TokenType
extends Enum<RenderedContentStore.TokenType>


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.
 
Method Summary
 String getTokenMarker()
          An unlikely-to-appear-in-real-text token, for use in content replacement.
static RenderedContentStore.TokenType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RenderedContentStore.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

INLINE

public static final RenderedContentStore.TokenType INLINE
Inline tokens are used for inline content such as plain text, spans, images, bold tags, and links.


BLOCK

public static final RenderedContentStore.TokenType BLOCK
Block tokens are used for block elements such as paragraphs, divs, tables and pre blocks.

Method Detail

values

public static RenderedContentStore.TokenType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RenderedContentStore.TokenType c : RenderedContentStore.TokenType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RenderedContentStore.TokenType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getTokenMarker

public String getTokenMarker()
An unlikely-to-appear-in-real-text token, for use in content replacement.



Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.