com.starteam
Class Task.Origin

java.lang.Object
  extended by com.starteam.EnumeratedValue
      extended by com.starteam.Task.Origin
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Task

public static final class Task.Origin
extends EnumeratedValue

Task Origin

See Also:
Serialized Form

Field Summary
static Task.Origin[] ALL
          All possible Task Origins
static Task.Origin MSPROJECT
          Task was created in the application or exported to the application from Microsoft Project.
static Task.Origin STARTEAM
          Task created in StarTeam
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this Task Origins with the Object o
static Task.Origin fromID(int id)
          Gets the Origin value corresponding to the given ID.
static Task.Origin fromValue(EnumeratedValue value)
          Gets the Origin value corresponding to the given EnumeratedValue.
 int getCode()
          Return the enum code for this object.
 int getID()
          The ID of the corresponding EnumeratedValue, as defined in OriginProperty.
 int hashCode()
          Returns hashcode of the task origin
 
Methods inherited from class com.starteam.EnumeratedValue
addChild, assignParent, copy, disable, enable, findChild, getChildValues, getDebugString, getDepthInHierarchy, getDisplayName, getDisplayNameTranslations, getInternalName, getParentValue, getSortOrder, hasChildValues, isClosedState, isDisabled, isEnabled, isEqualTo, isLeafValue, isRootValue, isSelectable, setAfter, setChildValues, setClosedState, setDisplayName, setDisplayNameTranslations, setEnabled, setInternalName, setSelectable, setSortOrder, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

STARTEAM

public static final Task.Origin STARTEAM
Task created in StarTeam


MSPROJECT

public static final Task.Origin MSPROJECT
Task was created in the application or exported to the application from Microsoft Project.


ALL

public static final Task.Origin[] ALL
All possible Task Origins

Method Detail

getID

public int getID()
The ID of the corresponding EnumeratedValue, as defined in OriginProperty.

Returns:
The ID of this Origin value.
See Also:
Task.Type.OriginProperty.NAME

getCode

public int getCode()
Return the enum code for this object.

Overrides:
getCode in class EnumeratedValue
Returns:
the enum code for this object.

fromValue

public static Task.Origin fromValue(EnumeratedValue value)
Gets the Origin value corresponding to the given EnumeratedValue.

Parameters:
value - One of the EnumeratedValues of a OriginProperty.
Returns:
The corresponding Origin value, or null.

equals

public boolean equals(java.lang.Object o)
Compares this Task Origins with the Object o

Overrides:
equals in class EnumeratedValue
Parameters:
o - the Object to compare too for equality
Returns:
true if this instance and Object o are identical

fromID

public static Task.Origin fromID(int id)
Gets the Origin value corresponding to the given ID.

Parameters:
id - An Origin ID.
Returns:
The corresponding Origin value, or null.

hashCode

public int hashCode()
Returns hashcode of the task origin

Overrides:
hashCode in class EnumeratedValue
Returns:
hashcode of the task origin


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.