public enum ContentTypeEnum extends Enum<ContentTypeEnum>
Enum Constant and Description |
---|
ATTACHMENT |
BLOG |
COMMENT |
CUSTOM |
DRAFT |
MAIL |
PAGE |
PERSONAL_INFORMATION |
PERSONAL_SPACE_DESCRIPTION |
SPACE |
SPACE_DESCRIPTION |
USER_STATUS
Deprecated.
|
Modifier and Type | Method and 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.
|
public static final ContentTypeEnum PAGE
public static final ContentTypeEnum COMMENT
public static final ContentTypeEnum BLOG
public static final ContentTypeEnum ATTACHMENT
public static final ContentTypeEnum PERSONAL_INFORMATION
public static final ContentTypeEnum SPACE_DESCRIPTION
public static final ContentTypeEnum PERSONAL_SPACE_DESCRIPTION
public static final ContentTypeEnum MAIL
@Deprecated public static final ContentTypeEnum USER_STATUS
public static final ContentTypeEnum SPACE
public static final ContentTypeEnum DRAFT
public static final ContentTypeEnum CUSTOM
public static ContentTypeEnum[] values()
for (ContentTypeEnum c : ContentTypeEnum.values()) System.out.println(c);
public static ContentTypeEnum valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getRepresentation()
public boolean hasRepresentation(String key)
public Class<? extends com.atlassian.core.bean.EntityObject> getType()
public String getTypeName()
public String toString()
toString
in class Enum<ContentTypeEnum>
public static ContentTypeEnum getByRepresentation(String representation)
representation
- the String representation of the enum. e.g. Page.CONTENT_TYPE
public static ContentTypeEnum getByClassName(String className)
className
- fully qualified class name e.g. "com.atlassian.confluence.pages.Page"Copyright © 2003–2017 Atlassian. All rights reserved.