|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozdev.MacroTracker.classes.Bug
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.
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 |
---|
public final java.util.List<UserComment> comments
public final java.util.List<User> cc
public final java.util.List<Bug> blocks
public final java.util.List<Bug> dependsOn
Constructor Detail |
---|
public Bug()
public Bug(int bugNumber)
public Bug(int bugNumber, java.lang.String summary)
bugNumber
- The number of the bug.
(Precondition: bugNumber > 0)summary
- The summary of the bug.Method Detail |
---|
public int getBugNumber()
public Status getStatus()
public Status getResolution()
public User getAssignedTo()
public double getVersion()
public int getPriority()
public java.lang.String getSeverity()
public User getQAContact()
public Product getProduct()
public java.lang.String getComponent()
public java.lang.String getDescription()
public java.lang.String getURL()
public java.lang.String getSummary()
public java.lang.String getStatusWB()
public java.lang.String getKeywords()
public java.lang.String getHardware()
public java.lang.String getOS()
public double getTM()
public User getReporter()
public void setBugNumber(int bugNumber) throws java.lang.IllegalArgumentException
bugNumber
- The number the bug should be.java.lang.IllegalArgumentException
public void setStatus(Status status)
status
- The status object to make this bug's status equal.public void setResolution(Status resolution)
resolution
- The resolution object to set this bug's resolution to.public void setAssignedTo(User name)
public void setVersion(double version)
version
- The version of the product that this bug was found in.public void setPriority(byte priority)
priority
- The priority of this bug.public void setSeverity(java.lang.String severity)
severity
- The severity of the bug.public void setQAContact(User qaContact)
qaContact
- The person who is responsible for QA work on the bug.public void setProduct(Product product)
public void setComponent(java.lang.String component)
public void setDescription(java.lang.String description)
description
- An expanded version of the summary.public void setURL(java.lang.String url)
public void setSummary(java.lang.String summary)
summary
- The summary of the bug.public void setStatusWB(java.lang.String statusWhtbd)
statusWhtbd
- The text to set in the status whiteboard field.public void setHardware(java.lang.String hardware)
hardware
- The hardware the bug was found on.public void setOS(java.lang.String os)
os
- The OS this bug was found on.public void setTargetMilestone(double tm)
tm
- The date this bug should be fixed by.public void setReporter(User reporter)
reporter
- The reporter of this bug.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |