Class 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:
    Serialized Form
    • Field Detail

      • 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 Detail

      • BodyType

        public BodyType​(int id)
    • Method Detail

      • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object