wt.projmgmt.admin
Class ProjectRiskValue

java.lang.Object
  extended bywt.fc.EnumeratedType
      extended bywt.projmgmt.admin.ProjectRiskValue
All Implemented Interfaces:
EnumeratedType, LocalizableMessage, LocalizableMetadata, Message, Serializable

public class ProjectRiskValue
extends EnumeratedType
implements Serializable

ProjectRiskValue is a specialization of EnumeratedType to provide localizable risk values. The localized risk values are maintained in a resource bundle ProjectRiskValueRB, and its locale derivatives

Supported API: true

Extendable: false

See Also:
EnumeratedType, wt.projmgmt.admin.ProjectRiskValueRB, Serialized Form

Nested Class Summary
 
Nested classes inherited from class wt.fc.EnumeratedType
 
Field Summary
private static String CLASS_RESOURCE
           
private static String CLASSNAME
           
static ProjectRiskValue HIGH
          The Project Risk Value of High

Supported API: false
private static Hashtable localeSets
           
static ProjectRiskValue LOW
          The Project Risk Value of Low

Supported API: false
static ProjectRiskValue MEDIUM
          The Project Risk Value of Medium

Supported API: false
private static String RESOURCE
           
static ProjectRiskValue UNAVAILABLE
          The Project Risk Value of Unavailable

Supported API: false
private static EnumeratedType[] valueSet
           
static ProjectRiskValue VERYHIGH
          The Project Risk Value of Very High

Supported API: false
static ProjectRiskValue VERYLOW
          The Project Risk Value of Very Low

Supported API: false
 
Fields inherited from class wt.fc.EnumeratedType
secretHandshake, SEP_CHAR
 
Fields inherited from interface wt.meta.EnumeratedType
DEFAULT_VALUE, ORDER, SELECTABLE
 
Constructor Summary
protected ProjectRiskValue()
          Used by sub-classes that need a default constructor.
 
Method Summary
protected  EnumeratedType[] getLocaleSet(Locale locale)
          Returns the set of values (instances) for this instance, for the specified locale.
static ProjectRiskValue getProjectRiskValueDefault()
          Returns the default value (instance) for the ProjectRiskValue set.
static ProjectRiskValue[] getProjectRiskValueSet()
          Returns a copy of the set of valid values (instances) for the ProjectRiskValue class.
 EnumeratedType[] getValueSet()
          Returns a copy of the set of valid values (instances) for this instance, for the current user locale.
private static EnumeratedType[] initializeLocaleSet(Locale locale)
           
static ProjectRiskValue newProjectRiskValue(int secretHandshake)
          Used by EnumeratedType for constructing instances of ProjectRiskValue, from a resource bundle.
static ProjectRiskValue toProjectRiskValue(String internal_value)
          Returns the ProjectRiskValue instance for the internal_value argument.
protected  EnumeratedType[] valueSet()
          Returns a reference to the set of valid values (instances) for this instance.
 
Methods inherited from class wt.fc.EnumeratedType
defaultEnumeratedType, dynamicInstance, equals, getAbbreviatedDisplay, getComment, getComment, getDisplay, getDisplay, getFullDisplay, getInternalKey, getLocalizedMessage, getLocalizedValues, getLongDescription, getOrder, getSelectableValueSet, getShortDescription, getShortDescription, getStringValue, getStringValue, getValidSet, getValue, hashCode, instantiateSet, isDefaultValue, isDefaultValue, isPrimaryKey, isSelectable, main, readResolve, toEnumeratedType, toEnumeratedType, toEnumeratedType, toString, validateFriendship
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

CLASS_RESOURCE

private static final String CLASS_RESOURCE
See Also:
Constant Field Values

valueSet

private static final EnumeratedType[] valueSet

localeSets

private static Hashtable localeSets

VERYHIGH

public static final ProjectRiskValue VERYHIGH
The Project Risk Value of Very High

Supported API: false


HIGH

public static final ProjectRiskValue HIGH
The Project Risk Value of High

Supported API: false


MEDIUM

public static final ProjectRiskValue MEDIUM
The Project Risk Value of Medium

Supported API: false


LOW

public static final ProjectRiskValue LOW
The Project Risk Value of Low

Supported API: false


VERYLOW

public static final ProjectRiskValue VERYLOW
The Project Risk Value of Very Low

Supported API: false


UNAVAILABLE

public static final ProjectRiskValue UNAVAILABLE
The Project Risk Value of Unavailable

Supported API: false

Constructor Detail

ProjectRiskValue

protected ProjectRiskValue()
Used by sub-classes that need a default constructor.

Supported API: false

Method Detail

newProjectRiskValue

public static ProjectRiskValue newProjectRiskValue(int secretHandshake)
                                            throws IllegalAccessException
Used by EnumeratedType for constructing instances of ProjectRiskValue, from a resource bundle.

Supported API: false

Parameters:
secretHandshake -
Returns:
ProjectRiskValue
Throws:
IllegalAccessException

toProjectRiskValue

public static ProjectRiskValue toProjectRiskValue(String internal_value)
                                           throws WTInvalidParameterException
Returns the ProjectRiskValue instance for the internal_value argument.

Supported API: true

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

getProjectRiskValueDefault

public static ProjectRiskValue getProjectRiskValueDefault()
Returns the default value (instance) for the ProjectRiskValue set.

Supported API: true

Returns:
ProjectRiskValue

getProjectRiskValueSet

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

Supported API: true

Returns:
ProjectRiskValue[]

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[]

valueSet

protected EnumeratedType[] valueSet()
Returns a reference to the set of valid values (instances) for this instance.

Supported API: false

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

getLocaleSet

protected EnumeratedType[] getLocaleSet(Locale locale)
Returns the set of values (instances) for this instance, for the specified locale.

Supported API: false

Specified by:
getLocaleSet in class EnumeratedType
Parameters:
locale -
Returns:
EnumeratedType[]

initializeLocaleSet

private static EnumeratedType[] initializeLocaleSet(Locale locale)
                                             throws Throwable
Parameters:
locale -
Returns:
EnumeratedType[]
Throws:
Throwable