|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.api.model.content.ContentRepresentation
@ExperimentalApi public class ContentRepresentation
Enumeration of the different built-in ways that Confluence content bodies can be represented.
Field Summary | |
---|---|
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 java.lang.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 |
VIEW
HTML representation for viewing in a web page |
static ContentRepresentation |
WIKI
Legacy WIKI representation |
Method Summary | |
---|---|
boolean |
convertsFromStorage()
|
boolean |
convertsToStorage()
|
boolean |
equals(java.lang.Object otherObj)
|
java.lang.String |
getRepresentation()
|
int |
hashCode()
|
java.lang.String |
toString()
|
static ContentRepresentation |
valueOf(java.lang.String representation)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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 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 java.lang.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.
Method Detail |
---|
public static ContentRepresentation valueOf(java.lang.String representation)
public boolean convertsFromStorage()
public boolean convertsToStorage()
public java.lang.String getRepresentation()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object otherObj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |