Class BodyType

java.lang.Object
com.atlassian.confluence.core.BodyType
All Implemented Interfaces:
Serializable

public class BodyType extends Object implements 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 Details

    • UNKNOWN

      public static final BodyType UNKNOWN
      Body is UNKNOWN CONTENT
    • WIKI

      public static final BodyType WIKI
      Body is legacy wiki markup (will be auto-converted to XHTML)
    • RAW

      public static final BodyType RAW
      Body is raw character data (will not be rendered for display)
    • XHTML

      public static final BodyType XHTML
      Body is XHTML storage format
  • Constructor Details

    • BodyType

      public BodyType(int id)
  • Method Details

    • toInt

      public int toInt()
    • fromInt

      public static BodyType fromInt(int id)
      Parameters:
      id - Id of the BodyType to resolve.
      Returns:
      An instance of BodyType for the ID specified.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toContentRepresentation

      public ContentRepresentation toContentRepresentation()