Package com.atlassian.confluence.core
Class BodyType
java.lang.Object
com.atlassian.confluence.core.BodyType
- All Implemented Interfaces:
Serializable
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.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
UNKNOWN
Body is UNKNOWN CONTENT -
WIKI
Body is legacy wiki markup (will be auto-converted to XHTML) -
RAW
Body is raw character data (will not be rendered for display) -
XHTML
Body is XHTML storage format
-
-
Constructor Details
-
BodyType
public BodyType(int id)
-
-
Method Details
-
toInt
public int toInt() -
fromInt
- Parameters:
id
- Id of the BodyType to resolve.- Returns:
- An instance of BodyType for the ID specified.
-
toString
-
equals
-
hashCode
public int hashCode() -
toContentRepresentation
-