org.fopps.model
Class ProjectStatus

java.lang.Object
  |
  +--org.fopps.model.ProjectStatus
All Implemented Interfaces:
Enum

public class ProjectStatus
extends java.lang.Object
implements Enum

ProjectStatus represents all possible states of a project.


Field Summary
static int _BLOCKED
           
static int _FINISHED
           
static int _IN_PROGRESS_25
           
static int _IN_PROGRESS_50
           
static int _IN_PROGRESS_75
           
static int _NOT_STARTED
           
static ProjectStatus Blocked
           
static ProjectStatus Finished
           
static ProjectStatus InProgress25
           
static ProjectStatus InProgress50
           
static ProjectStatus InProgress75
           
static ProjectStatus[] INSTANCES
           
static int MAX_VALUE
           
static ProjectStatus NotStarted
           
static java.lang.String[] VERBOSE
           
 
Method Summary
static ProjectStatus byString(java.lang.String pType)
          Return the instance to a given string value.
 java.lang.Object getDefault()
          Returns the default value of the enumeration
 java.lang.Object[] getInstances()
          Returns all possible instances of this enumeration
 int getValue()
          Returns the numeric representation of the enumeration
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_NOT_STARTED

public static final int _NOT_STARTED
See Also:
Constant Field Values

_IN_PROGRESS_25

public static final int _IN_PROGRESS_25
See Also:
Constant Field Values

_IN_PROGRESS_50

public static final int _IN_PROGRESS_50
See Also:
Constant Field Values

_IN_PROGRESS_75

public static final int _IN_PROGRESS_75
See Also:
Constant Field Values

_FINISHED

public static final int _FINISHED
See Also:
Constant Field Values

_BLOCKED

public static final int _BLOCKED
See Also:
Constant Field Values

MAX_VALUE

public static final int MAX_VALUE
See Also:
Constant Field Values

NotStarted

public static final ProjectStatus NotStarted

InProgress25

public static final ProjectStatus InProgress25

InProgress50

public static final ProjectStatus InProgress50

InProgress75

public static final ProjectStatus InProgress75

Finished

public static final ProjectStatus Finished

Blocked

public static final ProjectStatus Blocked

VERBOSE

public static final java.lang.String[] VERBOSE

INSTANCES

public static final ProjectStatus[] INSTANCES
Method Detail

byString

public static ProjectStatus byString(java.lang.String pType)
Return the instance to a given string value.

Returns:
Instance corresponding to pType or null, if no instance was found

getValue

public int getValue()
Returns the numeric representation of the enumeration

Specified by:
getValue in interface Enum

getInstances

public java.lang.Object[] getInstances()
Returns all possible instances of this enumeration

Specified by:
getInstances in interface Enum

getDefault

public java.lang.Object getDefault()
Returns the default value of the enumeration

Specified by:
getDefault in interface Enum

toString

public java.lang.String toString()
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object.


Fopps 0.19 - Copyright © 2002 Oliver Wieland. All Rights Reserved.