com.atlassian.confluence.labels
Enum LabelableType

java.lang.Object
  extended by java.lang.Enum<LabelableType>
      extended by com.atlassian.confluence.labels.LabelableType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<LabelableType>

public enum LabelableType
extends java.lang.Enum<LabelableType>

Represents the different kinds of content that can have labels.


Enum Constant Summary
ATTACHMENT
           
CONTENT
           
PAGE_TEMPLATE
           
 
Method Summary
static LabelableType getFromTypeString(java.lang.String typeString)
           
 java.lang.Class<? extends EditableLabelable> getLabelableClass()
           
static LabelableType getType(java.lang.Class<? extends EditableLabelable> labelableClass)
           
static java.lang.String getTypeString(java.lang.Class<? extends EditableLabelable> labelableClass)
           
 java.lang.String typeString()
           
static LabelableType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static LabelableType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CONTENT

public static final LabelableType CONTENT

PAGE_TEMPLATE

public static final LabelableType PAGE_TEMPLATE

ATTACHMENT

public static final LabelableType ATTACHMENT
Method Detail

values

public static LabelableType[] 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 (LabelableType c : LabelableType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static LabelableType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getTypeString

public static java.lang.String getTypeString(java.lang.Class<? extends EditableLabelable> labelableClass)

getType

public static LabelableType getType(java.lang.Class<? extends EditableLabelable> labelableClass)

getFromTypeString

public static LabelableType getFromTypeString(java.lang.String typeString)

typeString

public java.lang.String typeString()

getLabelableClass

public java.lang.Class<? extends EditableLabelable> getLabelableClass()


Copyright © 2003-2014 Atlassian. All Rights Reserved.