|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.core.BodyType
public class BodyType
BodyType is not an enum because ultimately there may not be a fixed set of BodyType. It could become a plugin point in the future.
Field Summary | |
---|---|
static BodyType |
MAIL
Deprecated. since 4.2 and removal of Mail as core content type |
static BodyType |
RAW
Body is raw character data (will not be rendered for display) |
static BodyType |
WIKI
Body is legacy wiki markup (will be auto-converted to XHTML) |
static BodyType |
XHTML
Body is XHTML storage format |
Constructor Summary | |
---|---|
BodyType(int id)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
static BodyType |
fromInt(int id)
Static method required by the PersistentEnum definition. |
int |
hashCode()
|
ContentRepresentation |
toContentRepresentation()
|
int |
toInt()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final BodyType WIKI
public static final BodyType RAW
public static final BodyType XHTML
public static final BodyType MAIL
Constructor Detail |
---|
public BodyType(int id)
Method Detail |
---|
public int toInt()
toInt
in interface net.sf.hibernate.PersistentEnum
public static BodyType fromInt(int id)
PersistentEnum
definition.
Will throw a RuntimeException
if the ID specified is not known.
id
- Id of the BodyType to resolve.
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ContentRepresentation toContentRepresentation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |