public class BodyType extends Object implements Serializable, net.sf.hibernate.PersistentEnum
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
BodyType(int id) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static BodyType |
fromInt(int id)
Static method required by the
PersistentEnum definition. |
int |
hashCode() |
ContentRepresentation |
toContentRepresentation() |
int |
toInt() |
String |
toString() |
public static final BodyType WIKI
public static final BodyType RAW
public static final BodyType XHTML
@Deprecated public static final BodyType MAIL
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 ContentRepresentation toContentRepresentation()
Copyright © 2003–2016 Atlassian. All rights reserved.