Class ContentType

java.lang.Object
com.atlassian.confluence.api.model.BaseApiEnum
com.atlassian.confluence.api.model.content.ContentType
All Implemented Interfaces:
ApiEnum

public final class ContentType extends BaseApiEnum
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 Details

  • Method Details

    • valueOf

      public static ContentType valueOf(String type)
      Return the ContentType for the given type string. Built-in type constants will be returned if matched.
    • valuesOf

      public static Set<ContentType> valuesOf(Iterable<String> types)
      Return the ContentTypes for the given set of type strings. Built-in type constants will be returned if matched.
    • getType

      public String getType()