Enum ContentTypeEnum
- java.lang.Object
-
- java.lang.Enum<ContentTypeEnum>
-
- com.atlassian.confluence.search.service.ContentTypeEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<ContentTypeEnum>
public enum ContentTypeEnum extends Enum<ContentTypeEnum>
An enum representing the different content types that may be specified in a search.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTACHMENT
BLOG
COMMENT
CUSTOM
DRAFT
PAGE
PERSONAL_INFORMATION
PERSONAL_SPACE_DESCRIPTION
SPACE
SPACE_DESCRIPTION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContentTypeEnum
getByClassName(String className)
static ContentTypeEnum
getByRepresentation(String representation)
String
getRepresentation()
Class<? extends com.atlassian.core.bean.EntityObject>
getType()
String
getTypeName()
boolean
hasRepresentation(String key)
String
toString()
static ContentTypeEnum
valueOf(String name)
Returns the enum constant of this type with the specified name.static ContentTypeEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PAGE
public static final ContentTypeEnum PAGE
-
COMMENT
public static final ContentTypeEnum COMMENT
-
BLOG
public static final ContentTypeEnum BLOG
-
ATTACHMENT
public static final ContentTypeEnum ATTACHMENT
-
PERSONAL_INFORMATION
public static final ContentTypeEnum PERSONAL_INFORMATION
-
SPACE_DESCRIPTION
public static final ContentTypeEnum SPACE_DESCRIPTION
-
PERSONAL_SPACE_DESCRIPTION
public static final ContentTypeEnum PERSONAL_SPACE_DESCRIPTION
-
SPACE
public static final ContentTypeEnum SPACE
-
DRAFT
public static final ContentTypeEnum DRAFT
-
CUSTOM
public static final ContentTypeEnum CUSTOM
-
-
Method Detail
-
values
public static ContentTypeEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ContentTypeEnum c : ContentTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContentTypeEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getRepresentation
public String getRepresentation()
-
hasRepresentation
public boolean hasRepresentation(String key)
-
getType
public Class<? extends com.atlassian.core.bean.EntityObject> getType()
-
getTypeName
public String getTypeName()
-
toString
public String toString()
- Overrides:
toString
in classEnum<ContentTypeEnum>
-
getByRepresentation
public static ContentTypeEnum getByRepresentation(String representation)
- 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
public static ContentTypeEnum getByClassName(String className)
- 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.
-
-