Class ContentType
java.lang.Object
com.atlassian.confluence.api.model.BaseApiEnum
com.atlassian.confluence.api.model.content.ContentType
- All Implemented Interfaces:
ApiEnum
Represents a type of content. This class is a simple wrapper around a string. For built-in content types it will
match the internal String name for the content type. For custom content types it will be the plugin key of the
content type's provider.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ContentTypestatic final ContentTypestatic final List<ContentType> static final ContentTypestatic final ContentTypeFields inherited from class com.atlassian.confluence.api.model.BaseApiEnum
value -
Method Summary
Modifier and TypeMethodDescriptiongetType()static ContentTypeReturn theContentTypefor the given type string.static Set<ContentType> Return theContentTypes for the given set of type strings.
-
Field Details
-
PAGE
-
BLOG_POST
-
COMMENT
-
ATTACHMENT
-
BUILT_IN
-
-
Method Details
-
valueOf
Return theContentTypefor the given type string. Built-in type constants will be returned if matched. -
valuesOf
Return theContentTypes for the given set of type strings. Built-in type constants will be returned if matched. -
getType
-