com.atlassian.confluence.legacyapi.model.content
Enum ContentRepresentation

java.lang.Object
  extended by java.lang.Enum<ContentRepresentation>
      extended by com.atlassian.confluence.legacyapi.model.content.ContentRepresentation
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ContentRepresentation>

public enum ContentRepresentation
extends java.lang.Enum<ContentRepresentation>

Enumeration of the different built-in ways that Confluence content bodies can be represented.


Enum Constant Summary
EDITOR
          Representation suitable for use in the rich text editor
RAW
          Raw "database" format.
STORAGE
          Raw database format, for content that stores data in our wiki storage format
VIEW
          HTML representation for viewing in a web page
 
Method Summary
static ContentRepresentation valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ContentRepresentation[] 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

RAW

public static final ContentRepresentation RAW
Raw "database" format.


STORAGE

public static final ContentRepresentation STORAGE
Raw database format, for content that stores data in our wiki storage format


EDITOR

public static final ContentRepresentation EDITOR
Representation suitable for use in the rich text editor


VIEW

public static final ContentRepresentation VIEW
HTML representation for viewing in a web page

Method Detail

values

public static ContentRepresentation[] 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 (ContentRepresentation c : ContentRepresentation.values())
    System.out.println(c);

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

valueOf

public static ContentRepresentation valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2003-2014 Atlassian. All Rights Reserved.