@ExperimentalApi public final class ContentRepresentation extends BaseApiEnum
Modifier and Type | Field and Description |
---|---|
static ContentRepresentation |
ANONYMOUS_EXPORT_VIEW
HTML representation for viewing, but with absolute urls, instead of relative urls in the markup, and macros are rendered as though
it is viewed by an anonymous user.
|
static ContentRepresentation |
EDITOR
Representation suitable for use in the rich text editor
|
static ContentRepresentation |
EXPORT_VIEW
HTML representation for viewing, but with absolute urls, instead of relative urls in the markup.
|
static Iterable<ContentRepresentation> |
INPUT_CONVERSION_TO_STORAGE_ORDER
An ordered enumeration of ContentRepresentations that can be converted to STORAGE format.
|
static ContentRepresentation |
PLAIN
Raw database format as plain text with no XHTML or WIKI markup.
|
static ContentRepresentation |
RAW
Raw "database" format.
|
static ContentRepresentation |
STORAGE
Raw database format, for content that stores data in our XML storage format
|
static ContentRepresentation |
STYLED_VIEW
A rendered view that includes inline styles in a <style> element, wrapped in an entire <html> structure.
|
static ContentRepresentation |
VIEW
HTML representation for viewing in a web page
|
static ContentRepresentation |
WIKI
Legacy WIKI representation
|
value
Modifier and Type | Method and Description |
---|---|
boolean |
convertsFromStorage() |
boolean |
convertsToStorage() |
String |
getRepresentation() |
String |
toString() |
static ContentRepresentation |
valueOf(String representation) |
public static final ContentRepresentation RAW
public static final ContentRepresentation STORAGE
public static final ContentRepresentation EDITOR
public static final ContentRepresentation VIEW
public static final ContentRepresentation EXPORT_VIEW
public static final ContentRepresentation ANONYMOUS_EXPORT_VIEW
public static final ContentRepresentation WIKI
public static final ContentRepresentation PLAIN
Can be converted to VIEW representation by converting newlines to <br> and representing URLs as HTML links.
public static final ContentRepresentation STYLED_VIEW
public static final Iterable<ContentRepresentation> INPUT_CONVERSION_TO_STORAGE_ORDER
ContentBody
s to a STORAGE representation, the body chosen for conversion will be
the first one encountered in this list.public static ContentRepresentation valueOf(String representation)
public boolean convertsFromStorage()
public boolean convertsToStorage()
public String getRepresentation()
public String toString()
toString
in class BaseApiEnum
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences