com.starteam
Class Requirement.Priority

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

public static final class Requirement.Priority
extends EnumeratedValue

Priority of the Requirement

See Also:
Serialized Form

Field Summary
static Requirement.Priority[] ALL
          All legal Priority Values
static Requirement.Priority DESIRABLE
          Priority of the requirement is desirable
static Requirement.Priority ESSENTIAL
          Priority of the requirement is essential
static Requirement.Priority UNASSIGNED
          Priority of the requirement is unassigned
static Requirement.Priority USEFUL
          Priority of the requirement is useful
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this EnumeratedValue instance with another one.
static Requirement.Priority fromID(int id)
          Gets the Priority value corresponding to the given ID.
static Requirement.Priority fromValue(EnumeratedValue value)
          Gets the Priority 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 PriorityProperty.
 int hashCode()
          returns a unique hash for this instance
 
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

UNASSIGNED

public static final Requirement.Priority UNASSIGNED
Priority of the requirement is unassigned


ESSENTIAL

public static final Requirement.Priority ESSENTIAL
Priority of the requirement is essential


USEFUL

public static final Requirement.Priority USEFUL
Priority of the requirement is useful


DESIRABLE

public static final Requirement.Priority DESIRABLE
Priority of the requirement is desirable


ALL

public static final Requirement.Priority[] ALL
All legal Priority Values

Method Detail

getID

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

Returns:
The ID of this Priority value.
See Also:
Requirement.Type.PriorityProperty.NAME

getCode

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

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

fromID

public static Requirement.Priority fromID(int id)
Gets the Priority value corresponding to the given ID.

Parameters:
id - A Priority ID.
Returns:
The corresponding Priority value, or null.

fromValue

public static Requirement.Priority fromValue(EnumeratedValue value)
Gets the Priority value corresponding to the given EnumeratedValue.

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

equals

public boolean equals(java.lang.Object o)
Description copied from class: EnumeratedValue
Compares this EnumeratedValue instance with another one. Returns true if their properties match, false otherwise

Overrides:
equals in class EnumeratedValue
Parameters:
o - The other EnumeratedValue instance
Returns:
boolean true if the two EnumeratedValues are equals

hashCode

public int hashCode()
Description copied from class: EnumeratedValue
returns a unique hash for this instance

Overrides:
hashCode in class EnumeratedValue
Returns:
a unique hash for this instance


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