org.mozdev.MacroTracker.classes
Class Bug

java.lang.Object
  extended by org.mozdev.MacroTracker.classes.Bug
All Implemented Interfaces:
java.io.Serializable

public class Bug
extends java.lang.Object
implements java.io.Serializable

Class Bug represents a bug held in the MacroTracker bug tracking system. The Bug holds any resolution, status, assignee, reporter, and other information that describes who should fix this bug, general info about the bug, and information that can help the bug to become the FIXED status.

Version:
1.0
Author:
R.J. Keller
See Also:
Serialized Form

Field Summary
 java.util.List<Bug> blocks
           
 java.util.List<User> cc
           
 java.util.List<UserComment> comments
           
 java.util.List<Bug> dependsOn
           
 
Constructor Summary
Bug()
          Creates a Bug object with default settings (everything 0).
Bug(int bugNumber)
          Creates a Bug object with the bug number set.
Bug(int bugNumber, java.lang.String summary)
          Creates a Bug object with the Bug number and the summary set in the constructor.
 
Method Summary
 User getAssignedTo()
          Returns the name of the person responsible for fixing the bug.
 int getBugNumber()
          Returns the bug number of the bug.
 java.lang.String getComponent()
          Returns the component of the Product the bug was found in.
 java.lang.String getDescription()
          Returns a long description of the bug.
 java.lang.String getHardware()
          Returns the Platform the bug was found in.
 java.lang.String getKeywords()
          Returns any keywords that this bug describes.
 java.lang.String getOS()
          Returns the Operating System that the bug in the Product was found in.
 int getPriority()
          Returns the priority of this bug to get fixed.
 Product getProduct()
          Returns the Product this bug was found in.
 User getQAContact()
          Returns the QA Contact of this bug.
 User getReporter()
          Returns the User who reported the bug.
 Status getResolution()
          Returns the resolution (if any) of this bug according to the status constants.
 java.lang.String getSeverity()
          Returns the severity of the bug.
 Status getStatus()
          Returns the status of this bug according to the status constants.
 java.lang.String getStatusWB()
          Returns the Status Whiteboard of the bug.
 java.lang.String getSummary()
          Returns a short summary of the bug.
 double getTM()
          Returns the version of the product the bug is planned on being fixed in.
 java.lang.String getURL()
          Returns the URL that may contain a testcase or other information related to the bug.
 double getVersion()
          Returns the product version this bug was found in.
 void setAssignedTo(User name)
          This is the person in charge of resolving the bug.
 void setBugNumber(int bugNumber)
          Changes the bug number of the current bug.
 void setComponent(java.lang.String component)
           
 void setDescription(java.lang.String description)
          Sets the description of the bug.
 void setHardware(java.lang.String hardware)
          Sets the hardware that the bug found in the Product was found on.
 void setOS(java.lang.String os)
          The operating system that the bug in the Product was found on.
 void setPriority(byte priority)
          Sets how high of a priority this bug is to be fixed (on a scale of 1 to 5, 1 being the highest).
 void setProduct(Product product)
           
 void setQAContact(User qaContact)
          Sets the person who is responsible for QA and making sure the resolution was the approripate one.
 void setReporter(User reporter)
          Sets the person who reported this bug.
 void setResolution(Status resolution)
          A resolution field indicates what happened to this bug.
 void setSeverity(java.lang.String severity)
          Sets the severity of the bug according to the severity constants.
 void setStatus(Status status)
          The status field indicates the general health of a bug.
 void setStatusWB(java.lang.String statusWhtbd)
          Sets the status whiteboard of the bug.
 void setSummary(java.lang.String summary)
          Sets the summary, which should be a sentence that summarizes the problem.
 void setTargetMilestone(double tm)
          Sets the estimated date that this bug should be fixed by.
 void setURL(java.lang.String url)
          URL that demonostrates the problem you are seeing.
 void setVersion(double version)
          Sets the version of the Product that this bug was found in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

comments

public final java.util.List<UserComment> comments

cc

public final java.util.List<User> cc

blocks

public final java.util.List<Bug> blocks

dependsOn

public final java.util.List<Bug> dependsOn
Constructor Detail

Bug

public Bug()
Creates a Bug object with default settings (everything 0).


Bug

public Bug(int bugNumber)
Creates a Bug object with the bug number set.


Bug

public Bug(int bugNumber,
           java.lang.String summary)
Creates a Bug object with the Bug number and the summary set in the constructor.

Parameters:
bugNumber - The number of the bug. (Precondition: bugNumber > 0)
summary - The summary of the bug.
Method Detail

getBugNumber

public int getBugNumber()
Returns the bug number of the bug.


getStatus

public Status getStatus()
Returns the status of this bug according to the status constants.


getResolution

public Status getResolution()
Returns the resolution (if any) of this bug according to the status constants.


getAssignedTo

public User getAssignedTo()
Returns the name of the person responsible for fixing the bug.


getVersion

public double getVersion()
Returns the product version this bug was found in.


getPriority

public int getPriority()
Returns the priority of this bug to get fixed.


getSeverity

public java.lang.String getSeverity()
Returns the severity of the bug.


getQAContact

public User getQAContact()
Returns the QA Contact of this bug.


getProduct

public Product getProduct()
Returns the Product this bug was found in.


getComponent

public java.lang.String getComponent()
Returns the component of the Product the bug was found in.


getDescription

public java.lang.String getDescription()
Returns a long description of the bug.


getURL

public java.lang.String getURL()
Returns the URL that may contain a testcase or other information related to the bug.


getSummary

public java.lang.String getSummary()
Returns a short summary of the bug.


getStatusWB

public java.lang.String getStatusWB()
Returns the Status Whiteboard of the bug.


getKeywords

public java.lang.String getKeywords()
Returns any keywords that this bug describes.


getHardware

public java.lang.String getHardware()
Returns the Platform the bug was found in.


getOS

public java.lang.String getOS()
Returns the Operating System that the bug in the Product was found in.


getTM

public double getTM()
Returns the version of the product the bug is planned on being fixed in.


getReporter

public User getReporter()
Returns the User who reported the bug.


setBugNumber

public void setBugNumber(int bugNumber)
                  throws java.lang.IllegalArgumentException
Changes the bug number of the current bug.

Parameters:
bugNumber - The number the bug should be.
(Precondition: bugNumber > 0)
Throws:
java.lang.IllegalArgumentException

setStatus

public void setStatus(Status status)
The status field indicates the general health of a bug.

Parameters:
status - The status object to make this bug's status equal.

setResolution

public void setResolution(Status resolution)
A resolution field indicates what happened to this bug. See the resolution constants for more information on specific resolution.

Parameters:
resolution - The resolution object to set this bug's resolution to.

setAssignedTo

public void setAssignedTo(User name)
This is the person in charge of resolving the bug. Every time this field changes, the status changes to NEW to make it easy to see which new bugs have appeared on a person's list. The default status for queries is set to NEW, ASSIGNED and REOPENED. When searching for bugs that have been resolved or verified, remember to set the status field appropriately.


setVersion

public void setVersion(double version)
Sets the version of the Product that this bug was found in.

Parameters:
version - The version of the product that this bug was found in.
(precondition: version > 0)

setPriority

public void setPriority(byte priority)
Sets how high of a priority this bug is to be fixed (on a scale of 1 to 5, 1 being the highest).

Parameters:
priority - The priority of this bug.

setSeverity

public void setSeverity(java.lang.String severity)
Sets the severity of the bug according to the severity constants.

Parameters:
severity - The severity of the bug.
(precondition: severity == BLOCKER, CRITICAL, MAJOR, MINOR, TRIVIAL, ENHANCEMENT, or NORMAL)

setQAContact

public void setQAContact(User qaContact)
Sets the person who is responsible for QA and making sure the resolution was the approripate one.

Parameters:
qaContact - The person who is responsible for QA work on the bug.

setProduct

public void setProduct(Product product)

setComponent

public void setComponent(java.lang.String component)

setDescription

public void setDescription(java.lang.String description)
Sets the description of the bug.

Parameters:
description - An expanded version of the summary.

setURL

public void setURL(java.lang.String url)
URL that demonostrates the problem you are seeing.


setSummary

public void setSummary(java.lang.String summary)
Sets the summary, which should be a sentence that summarizes the problem.

Parameters:
summary - The summary of the bug.

setStatusWB

public void setStatusWB(java.lang.String statusWhtbd)
Sets the status whiteboard of the bug.

Parameters:
statusWhtbd - The text to set in the status whiteboard field.

setHardware

public void setHardware(java.lang.String hardware)
Sets the hardware that the bug found in the Product was found on.

Parameters:
hardware - The hardware the bug was found on.

setOS

public void setOS(java.lang.String os)
The operating system that the bug in the Product was found on.

Parameters:
os - The OS this bug was found on.

setTargetMilestone

public void setTargetMilestone(double tm)
Sets the estimated date that this bug should be fixed by.

Parameters:
tm - The date this bug should be fixed by.

setReporter

public void setReporter(User reporter)
Sets the person who reported this bug.

Parameters:
reporter - The reporter of this bug.


Copyright © 2003-2004 R.J. Keller. All Rights Reserved.