com.starteam
Class User.License

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

public static final class User.License
extends EnumeratedValue

The current license .

See Also:
Serialized Form

Field Summary
static User.License[] ALL
          All legal licenses
static User.License LICENSE_SERVER
          Borland License Server (BLS and BLS licenses are provided through Embarcadero Software)
static User.License STARTEAM
          StarTeam
static User.License UNASSIGNED
          License Unassigned
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this object with another License for equality
static User.License fromID(int id)
          Gets the LicenseType value corresponding to the given ID.
 int getCode()
          Return the enum code for this object.
 java.lang.String getDisplayName()
          Returns the display name of the License.
 int getID()
          The ID of the corresponding License
 java.lang.String getName()
          A friendly name for this license
 int hashCode()
          Returns a hashCode for this License
 
Methods inherited from class com.starteam.EnumeratedValue
addChild, assignParent, copy, disable, enable, findChild, getChildValues, getDebugString, getDepthInHierarchy, 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 User.License STARTEAM
StarTeam


LICENSE_SERVER

public static final User.License LICENSE_SERVER
Borland License Server (BLS and BLS licenses are provided through Embarcadero Software)


UNASSIGNED

public static final User.License UNASSIGNED
License Unassigned


ALL

public static final User.License[] ALL
All legal licenses

Method Detail

getCode

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

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

getName

public java.lang.String getName()
A friendly name for this license

Returns:
a friendly name for this license

getDisplayName

public java.lang.String getDisplayName()
Returns the display name of the License.

Overrides:
getDisplayName in class EnumeratedValue
Returns:
the display name of this License

getID

public int getID()
The ID of the corresponding License

Returns:
The ID of this License.

fromID

public static User.License fromID(int id)
Gets the LicenseType value corresponding to the given ID.

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

equals

public boolean equals(java.lang.Object o)
Compares this object with another License for equality

Overrides:
equals in class EnumeratedValue
Parameters:
o - the Object to compare
Returns:
true if the two are identical

hashCode

public int hashCode()
Returns a hashCode for this License

Overrides:
hashCode in class EnumeratedValue
Returns:
a hashCode for this license


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