com.atlassian.jira.avatar
Enum Avatar.Type

java.lang.Object
  extended by java.lang.Enum<Avatar.Type>
      extended by com.atlassian.jira.avatar.Avatar.Type
All Implemented Interfaces:
Serializable, Comparable<Avatar.Type>
Enclosing interface:
Avatar

public static enum Avatar.Type
extends Enum<Avatar.Type>

An indicator of the owner type of the avatar. E.g. project, user, group, role etc.


Enum Constant Summary
PROJECT
           
USER
           
 
Method Summary
static Avatar.Type getByName(String name)
           
 String getName()
          The canonical String representation of the type.
static Avatar.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Avatar.Type[] 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

PROJECT

public static final Avatar.Type PROJECT

USER

public static final Avatar.Type USER
Method Detail

values

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

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

valueOf

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

getName

public String getName()
The canonical String representation of the type.

Returns:
the name.

getByName

public static Avatar.Type getByName(String name)


Copyright © 2002-2013 Atlassian. All Rights Reserved.