com.atlassian.confluence.core
Class BodyType
java.lang.Object
com.atlassian.confluence.core.BodyType
- All Implemented Interfaces:
- Serializable, net.sf.hibernate.PersistentEnum
public class BodyType
- extends Object
- implements Serializable, net.sf.hibernate.PersistentEnum
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
WIKI
public static final BodyType WIKI
MAIL
public static final BodyType MAIL
XHTML
public static final BodyType XHTML
BodyType
public BodyType(int id)
toInt
public int toInt()
- Specified by:
toInt
in interface net.sf.hibernate.PersistentEnum
fromInt
public static BodyType fromInt(int id)
- Static method required by the
PersistentEnum
definition.
Will throw a RuntimeException
if the ID specified is not known.
- 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
Copyright © 2003-2011 Atlassian. All Rights Reserved.