openfuture.bugbase.model
Class BugReportStatus

java.lang.Object
  |
  +--openfuture.bugbase.model.BugReportStatus
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class BugReportStatus
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

bug report status Created: Tue May 30 21:06:41 2000

Version:
$Revision: 1.3 $
Author:
Wolfgang Reissenberger
See Also:
Serialized Form

Field Summary
static int STATUS_FIXED
           
static int STATUS_REJECTED
           
static int STATUS_REPORTED
           
static int STATUS_STARTED
           
 
Constructor Summary
BugReportStatus()
          Create a new bug report status object.
BugReportStatus(int status)
          Create a new bug report status object.
 
Method Summary
 int compareTo(java.lang.Object o)
          Compares to another status.
 int getStatus()
          Get the value of status.
 void setStatus(int v)
          Set the value of status.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STATUS_REPORTED

public static final int STATUS_REPORTED

STATUS_STARTED

public static final int STATUS_STARTED

STATUS_FIXED

public static final int STATUS_FIXED

STATUS_REJECTED

public static final int STATUS_REJECTED
Constructor Detail

BugReportStatus

public BugReportStatus(int status)
Create a new bug report status object.
Parameters:
status - report status

BugReportStatus

public BugReportStatus()
Create a new bug report status object.
Method Detail

getStatus

public int getStatus()
Get the value of status.
Returns:
value of status.

setStatus

public void setStatus(int v)
Set the value of status.
Parameters:
v - Value to assign to status.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(java.lang.Object o)
Compares to another status.
reported < started < fixed < rejected.
Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - object to compared with
Returns:
-1 if this status is less developed than o.


Copyright © 2000 -- 2003 openfuture.de. All Rights Reserved.