com.atlassian.confluence.api.model.content
Class ContentType

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

@ExperimentalApi
public final class ContentType
extends java.lang.Object
implements 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.


Field Summary
static ContentType ATTACHMENT
           
static ContentType BLOG_POST
           
static java.util.List<ContentType> BUILT_IN
           
static ContentType COMMENT
           
static ContentType PAGE
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 java.lang.String getType()
           
 int hashCode()
           
 java.lang.String toString()
           
static ContentType valueOf(java.lang.String type)
          Return the ContentType for the given type string.
static java.util.Set<ContentType> valuesOf(java.lang.Iterable<java.lang.String> types)
          Return the ContentTypes for the given set of type strings.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PAGE

public static final ContentType PAGE

BLOG_POST

public static final ContentType BLOG_POST

COMMENT

public static final ContentType COMMENT

ATTACHMENT

public static final ContentType ATTACHMENT

BUILT_IN

public static final java.util.List<ContentType> BUILT_IN
Method Detail

valueOf

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


valuesOf

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


getType

public java.lang.String getType()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object


Copyright © 2003-2014 Atlassian. All Rights Reserved.