Enum Class ContentTypeEnum
- All Implemented Interfaces:
Serializable,Comparable<ContentTypeEnum>,Constable
An enum representing the different content types that may be specified in a search.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic ContentTypeEnumforEntity(ContentTypeAware entity) static ContentTypeEnumgetByClassName(String className) static ContentTypeEnumgetByRepresentation(String representation) Class<? extends com.atlassian.core.bean.EntityObject> getType()booleanhasRepresentation(String key) toString()static ContentTypeEnumReturns the enum constant of this class with the specified name.static ContentTypeEnum[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PAGE
-
COMMENT
-
BLOG
-
ATTACHMENT
-
PERSONAL_INFORMATION
-
SPACE_DESCRIPTION
-
PERSONAL_SPACE_DESCRIPTION
-
SPACE
-
DRAFT
-
CUSTOM
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getRepresentation
-
hasRepresentation
-
getType
-
getTypeName
-
toString
- Overrides:
toStringin classEnum<ContentTypeEnum>
-
getByRepresentation
- Parameters:
representation- the String representation of the enum. e.g.Page.CONTENT_TYPE- Returns:
- the ContentTypeEnum for the supplied String. null is returned if the parameter does not map to a ContentTypeEnum.
-
getByClassName
- Parameters:
className- fully qualified class name e.g. "com.atlassian.confluence.pages.Page"- Returns:
- the ContentTypeEnum for the supplied class name. null if none found.
-
forEntity
- Since:
- 9.3
-