wt.project
Class Role

java.lang.Object
  extended by wt.fc.EnumeratedType
      extended by wt.fc.DynamicEnumType
          extended by wt.project.Role
All Implemented Interfaces:
Serializable, Comparable, EnumeratedType, LocalizableMetadata, LocalizableMessage, Message

public class Role
extends DynamicEnumType
implements Serializable

Role is a specialization of EnumeratedType to provide localizable role names The localized values for roles are maintained in a resource bundle RoleRB, and its locale derivatives

Submitter and Promoter are required roles for life cycle services.

Supported API: true

Extendable: false

See Also:
EnumeratedType, wt.project.RoleRB, Serialized Form

Field Summary
 
Fields inherited from interface wt.meta.EnumeratedType
DEFAULT_VALUE, ORDER, SELECTABLE
 
Method Summary
static Role getRoleDefault()
          Returns the default value (instance) for the Role set.
static Role[] getRoleSet()
          Returns a copy of the set of valid values (instances) for the Role class.
 EnumeratedType[] getValueSet()
          Returns a copy of the set of valid values (instances) for this instance, for the current user locale.
static Role toRole(String internal_value)
          Returns the Role instance for the internal_value argument.
 
Methods inherited from class wt.fc.DynamicEnumType
getDisplay
 
Methods inherited from class wt.fc.EnumeratedType
equals, getAbbreviatedDisplay, getDisplay, getFullDisplay, getLocalizedMessage, getLongDescription, getOrder, getSelectableValueSet, getShortDescription, getStringValue, getStringValue, hashCode, isDefaultValue, isDefaultValue, isSelectable, main, toEnumeratedType, toEnumeratedType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

toRole

public static Role toRole(String internal_value)
                   throws WTInvalidParameterException
Returns the Role instance for the internal_value argument.

Supported API: true

Parameters:
internal_value - The internal (persistent) value for a valid instance of Role.
Returns:
Role
Throws:
WTInvalidParameterException

getRoleDefault

public static Role getRoleDefault()
Returns the default value (instance) for the Role set.

Supported API: true

Returns:
Role

getRoleSet

public static Role[] getRoleSet()
Returns a copy of the set of valid values (instances) for the Role class.

Supported API: true

Returns:
Role[]

getValueSet

public EnumeratedType[] getValueSet()
Returns a copy of the set of valid values (instances) for this instance, for the current user locale.

Supported API: true

Specified by:
getValueSet in class EnumeratedType
Returns:
EnumeratedType[]