org.itracker.model
Enum IssueActivityType

java.lang.Object
  extended by java.lang.Enum<IssueActivityType>
      extended by org.itracker.model.IssueActivityType
All Implemented Interfaces:
Serializable, Comparable<IssueActivityType>, IntCodeEnum<IssueActivityType>

public enum IssueActivityType
extends Enum<IssueActivityType>
implements IntCodeEnum<IssueActivityType>


Enum Constant Summary
COMPONENTS_MODIFIED
           
DESCRIPTION_CHANGE
           
ISSUE_CREATED
           
ISSUE_MOVE
           
OWNER_CHANGE
           
RELATION_ADDED
           
RELATION_REMOVED
           
REMOVE_HISTORY
           
RESOLUTION_CHANGE
           
SEVERITY_CHANGE
           
STATUS_CHANGE
           
SYSTEM_UPDATE
           
TARGETVERSION_CHANGE
           
VERSIONS_MODIFIED
           
 
Field Summary
 
Fields inherited from interface org.itracker.model.IntCodeEnum
DEFAULT_CODE
 
Method Summary
static IssueActivityType forCode(int type)
          Deprecated.  
 IssueActivityType fromCode(int code)
          Returns a java.lang.Enum constant matching the given integer value.
 int getCode()
          Returns the integer value representing this enum constant.
static IssueActivityType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IssueActivityType[] 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

ISSUE_CREATED

public static final IssueActivityType ISSUE_CREATED

STATUS_CHANGE

public static final IssueActivityType STATUS_CHANGE

OWNER_CHANGE

public static final IssueActivityType OWNER_CHANGE

SEVERITY_CHANGE

public static final IssueActivityType SEVERITY_CHANGE

COMPONENTS_MODIFIED

public static final IssueActivityType COMPONENTS_MODIFIED

VERSIONS_MODIFIED

public static final IssueActivityType VERSIONS_MODIFIED

REMOVE_HISTORY

public static final IssueActivityType REMOVE_HISTORY

ISSUE_MOVE

public static final IssueActivityType ISSUE_MOVE

SYSTEM_UPDATE

public static final IssueActivityType SYSTEM_UPDATE

TARGETVERSION_CHANGE

public static final IssueActivityType TARGETVERSION_CHANGE

DESCRIPTION_CHANGE

public static final IssueActivityType DESCRIPTION_CHANGE

RESOLUTION_CHANGE

public static final IssueActivityType RESOLUTION_CHANGE

RELATION_ADDED

public static final IssueActivityType RELATION_ADDED

RELATION_REMOVED

public static final IssueActivityType RELATION_REMOVED
Method Detail

values

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

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

valueOf

public static IssueActivityType 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

forCode

public static final IssueActivityType forCode(int type)
Deprecated. 

Parameters:
type -
Returns:

fromCode

public IssueActivityType fromCode(int code)
Description copied from interface: IntCodeEnum
Returns a java.lang.Enum constant matching the given integer value.

This method should actually be static, so that we don't need an enum constant instance to lookup another instance by code.
However Java interfaces don't allow static methods and Java 5 enums must inherit java.lang.Enum directly. So there's no way to create a common base class with a static fromCode(int) method for all enums in our application for EnumCodeUserType to use in a type-safe way!

Specified by:
fromCode in interface IntCodeEnum<IssueActivityType>
Parameters:
code - unique enum constant as defined in iTracker 2
Returns:
java.lang.Enum constant instance for the given code

getCode

public int getCode()
Description copied from interface: IntCodeEnum
Returns the integer value representing this enum constant.

Specified by:
getCode in interface IntCodeEnum<IssueActivityType>
Returns:
unique constant as defined in iTracker 2


Copyright © 2002-2012 itracker. All Rights Reserved.