wt.projmgmt.admin
Class ProjectState

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

public class ProjectState
extends EnumeratedType
implements Serializable

ProjectState is a specialization of EnumeratedType to provide localizable state values. The localized values for project state are maintained in a resource bundle ProjectStateRB, and its locale derivatives

Supported API: false

Extendable: false

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

Nested Class Summary
 
Nested classes inherited from class wt.fc.EnumeratedType
 
Field Summary
static ProjectState CANCELLED
          The Project State of Cancelled

Supported API: false
private static String CLASS_RESOURCE
           
private static String CLASSNAME
           
static ProjectState COMPLETED
          The Project State of Completed

Supported API: false
static ProjectState DEFINED
          The Project State of Defined

Supported API: false
static ProjectState DELETED
          

Supported API: false
private static Hashtable localeSets
           
private static String RESOURCE
           
static ProjectState RUNNING
          The Project State of Running

Supported API: false
static ProjectState SUSPENDED
          The Project State of Suspended

Supported API: false
private static EnumeratedType[] valueSet
           
 
Fields inherited from class wt.fc.EnumeratedType
secretHandshake, SEP_CHAR
 
Fields inherited from interface wt.meta.EnumeratedType
DEFAULT_VALUE, ORDER, SELECTABLE
 
Constructor Summary
protected ProjectState()
          Used by sub-classes that need a default constructor.
 
Method Summary
 ContainerTeamManagedState asCtmState()
          Returns the {@link wt.inf.team.ContainerTeamManagedState) project state that corresponds to the object.
protected  EnumeratedType[] getLocaleSet(Locale locale)
          Returns the set of values (instances) for this instance, for the specified locale.
static ProjectState getProjectState(ContainerTeamManagedState ctm_state)
          Returns the project state that corresponds to the {@link wt.inf.team.ContainerTeamManagedState) passed as argument.
static ProjectState getProjectStateDefault()
          Returns the default value (instance) for the ProjectState set.
static ProjectState[] getProjectStateSet()
          Returns a copy of the set of valid values (instances) for the ProjectState 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 ProjectState newProjectState(int secretHandshake)
          Used by EnumeratedType for constructing instances of ProjectState, from a resource bundle.
static ProjectState toProjectState(String internal_value)
          Returns the ProjectState 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

DEFINED

public static final ProjectState DEFINED
The Project State of Defined

Supported API: false


RUNNING

public static final ProjectState RUNNING
The Project State of Running

Supported API: false


COMPLETED

public static final ProjectState COMPLETED
The Project State of Completed

Supported API: false


SUSPENDED

public static final ProjectState SUSPENDED
The Project State of Suspended

Supported API: false


CANCELLED

public static final ProjectState CANCELLED
The Project State of Cancelled

Supported API: false


DELETED

public static final ProjectState DELETED


Supported API: false

Constructor Detail

ProjectState

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

Supported API: false

Method Detail

newProjectState

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

Supported API: false

Parameters:
secretHandshake -
Returns:
ProjectState
Throws:
IllegalAccessException

toProjectState

public static ProjectState toProjectState(String internal_value)
                                   throws WTInvalidParameterException
Returns the ProjectState instance for the internal_value argument.

Supported API: false

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

getProjectStateDefault

public static ProjectState getProjectStateDefault()
Returns the default value (instance) for the ProjectState set.

Supported API: false

Returns:
ProjectState

getProjectStateSet

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

Supported API: false

Returns:
ProjectState[]

getValueSet

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

Supported API: false

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

asCtmState

public ContainerTeamManagedState asCtmState()
Returns the {@link wt.inf.team.ContainerTeamManagedState) project state that corresponds to the object.

Supported API: false

Returns:
ContainerTeamManagedState

getProjectState

public static ProjectState getProjectState(ContainerTeamManagedState ctm_state)
Returns the project state that corresponds to the {@link wt.inf.team.ContainerTeamManagedState) passed as argument.

Supported API: false

Parameters:
ctm_state -
Returns:
ProjectState