⇒ Index (Frames) | ⇒ Index (No Frames) | ⇒ Package | ⇒ Package Tree | ⇒ Full Tree 
com.tildemh.debbug

Class Bug

java.lang.Object|
+--com.tildemh.debbug.Bug

All Implemented Interfaces:
BugListener, Serializable


publicclass Bug
extends java.lang.Object
implements Serializable, BugListener

Java representation of a Debian Bug Tracking System report

This is released under the terms of the GNU Lesser General public License (LGPL). See the COPYING file for details.

Author:
© Mark Howard <mh@debian.org> 2002

Method Summary

synchronized void

addListener(BugListener listener)

Register an object to receive notification of events on this object

void

addListing(ListingStub stub)

void

addMerged(int merge)

void

addTagOthers(String tag)

void

bugDownloaded(Bug bug)

Called when downloading of a bug report has completed

boolean

bugException(Bug bug,Exception e)

void

bugSeverityChanged(Bug bug,Severity oldSeverity)

void

bugStatusChanged(Bug bug,Status oldStatus)

void

bugUpdated(Bug bug)

void

eventDownloadedBug()

this is called by wwwbugparser only.

void

eventRetrievingBug()

this is called by wwwbugparser only.

static int

findListener(Vector list,Object listener)

Give us a way to locate a specific listener in a Vector.

int

getAge()

WARNING: THIS DOES NOT WORK.

int

getCommentCount()

LinkedList

getComments()

boolean

getComplete()

long

getCreated()

Object

getData()

String

getDone()

String

getForwarded()

boolean

getIsDone()

boolean

getIsForwarded()

long

getLastUpdated()

Vector

getListings()

int[]

getMerged()

int

getNumber()

String

getPackageName()

Severity

getSeverity()

Status

getStatus()

String

getSubmitter()

boolean

getTagConfirmed()

boolean

getTagD_I()

boolean

getTagExperimental()

boolean

getTagFixed()

boolean

getTagFixedInExperimental()

boolean

getTagFixedUpstream()

boolean

getTagHelp()

boolean

getTagIPV6()

boolean

getTagLFS()

boolean

getTagMoreinfo()

Vector

getTagOthers()

Returns a Vector of strings of tags not known by debbuggtk

boolean

getTagPatch()

boolean

getTagPending()

boolean

getTagPotato()

LinkedList

getTags()

boolean

getTagSarge()

boolean

getTagSecurity()

boolean

getTagSid()

boolean

getTagUnreproducible()

boolean

getTagUpstream()

boolean

getTagWontfix()

boolean

getTagWoody()

String

getTitle()

int

hashcode()

static Bug

makeBug(Integer bugNumber)

Creates a new bug report object

static Bug

makeBug()

void

parseTag(String tag)

void

parseTags(String tags)

synchronized void

removeListener(BugListener listener)

Unregister an object that was receiving event notification.

void

removeListing(ListingStub stub)

void

retrievingBug(Bug bug)

Called when a bug is being retrieved, If verbose progress notifications have been requested

void

setAge(int age)

void

setComments(LinkedList comments)

void

setComplete(boolean complete)

void

setCreated(long created)

void

setData(Object data)

void

setDone(String done)

void

setForwarded(String forwarded)

void

setLastUpdated(long date)

void

setListings(Vector listings)

Sets listings

void

setMerged(int[] merged)

void

setNoWrite(boolean setting)

if setting is true, the bug will not attempt to write itself to disk (used during construction of the report.

void

setNumber(int number)

void

setPackageName(String packageName)

void

setSeverity(Severity severity)

void

setStatus(Status status)

void

setSubmitter(String submitter)

void

setTagConfirmed(boolean setting)

void

setTagD_I(boolean setting)

void

setTagExperimental(boolean setting)

void

setTagFixed(boolean setting)

void

setTagFixedInExperimental(boolean setting)

void

setTagFixedUpstream(boolean setting)

void

setTagHelp(boolean setting)

void

setTagIPV6(boolean setting)

void

setTagLFS(boolean setting)

void

setTagMoreinfo(boolean setting)

void

setTagOthers(Vector setting)

void

setTagPatch(boolean setting)

void

setTagPending(boolean setting)

void

setTagPotato(boolean setting)

void

setTagSarge(boolean setting)

void

setTagSecurity(boolean setting)

void

setTagSid(boolean setting)

void

setTagUnreproducible(boolean setting)

void

setTagUpstream(boolean setting)

void

setTagWontfix(boolean setting)

void

setTagWoody(boolean setting)

void

setTitle(String title)

void

setUpdated()

Sets the last updated field to the current date

String

toString()

void

update()

void

updateVerbose()

Method Details

addListener

publicsynchronized voidaddListener(BugListener listener)

Register an object to receive notification of events on this object

Parameters:
listener

addListing

publicvoidaddListing(ListingStub stub)

Parameters:
stub

addMerged

publicvoidaddMerged(int merge)

Parameters:
merge

addTagOthers

publicvoidaddTagOthers(String tag)

Parameters:
tag

bugDownloaded

publicvoidbugDownloaded(Bug bug)

Called when downloading of a bug report has completed

Parameters:
bug

bugException

publicbooleanbugException(Bug bug,Exception e)

Parameters:
bug
e

bugSeverityChanged

publicvoidbugSeverityChanged(Bug bug,Severity oldSeverity)

Parameters:
bug
oldSeverity

bugStatusChanged

publicvoidbugStatusChanged(Bug bug,Status oldStatus)

Parameters:
bug
oldStatus

bugUpdated

publicvoidbugUpdated(Bug bug)

Parameters:
bug

eventDownloadedBug

publicvoideventDownloadedBug()

this is called by wwwbugparser only. It will be removed at some point in the future


eventRetrievingBug

publicvoideventRetrievingBug()

this is called by wwwbugparser only. It will be removed at some point in the future


findListener

protectedstatic intfindListener(Vector list,Object listener)

Give us a way to locate a specific listener in a Vector.

Parameters:
list - The Vector of listeners to search.
listener - The object that is to be located in the Vector.
Returns:
Returns the index of the listener in the Vector, or -1 if the listener is not contained in the Vector.

getAge

publicintgetAge()

WARNING: THIS DOES NOT WORK.

Returns:
the age of the bug report, in days.

getCommentCount

publicintgetCommentCount()


getComments

publicLinkedListgetComments()


getComplete

publicbooleangetComplete()


getCreated

publiclonggetCreated()


getData

publicObjectgetData()


getDone

publicStringgetDone()


getForwarded

publicStringgetForwarded()


getIsDone

publicbooleangetIsDone()


getIsForwarded

publicbooleangetIsForwarded()


getLastUpdated

publiclonggetLastUpdated()


getListings

publicVectorgetListings()


getMerged

publicint[]getMerged()


getNumber

publicintgetNumber()


getPackageName

publicStringgetPackageName()


getSeverity

publicSeveritygetSeverity()


getStatus

publicStatusgetStatus()


getSubmitter

publicStringgetSubmitter()


getTagConfirmed

publicbooleangetTagConfirmed()


getTagD_I

publicbooleangetTagD_I()


getTagExperimental

publicbooleangetTagExperimental()


getTagFixed

publicbooleangetTagFixed()


getTagFixedInExperimental

publicbooleangetTagFixedInExperimental()


getTagFixedUpstream

publicbooleangetTagFixedUpstream()


getTagHelp

publicbooleangetTagHelp()


getTagIPV6

publicbooleangetTagIPV6()


getTagLFS

publicbooleangetTagLFS()


getTagMoreinfo

publicbooleangetTagMoreinfo()


getTagOthers

publicVectorgetTagOthers()

Returns a Vector of strings of tags not known by debbuggtk


getTagPatch

publicbooleangetTagPatch()


getTagPending

publicbooleangetTagPending()


getTagPotato

publicbooleangetTagPotato()


getTags

publicLinkedListgetTags()


getTagSarge

publicbooleangetTagSarge()


getTagSecurity

publicbooleangetTagSecurity()


getTagSid

publicbooleangetTagSid()


getTagUnreproducible

publicbooleangetTagUnreproducible()


getTagUpstream

publicbooleangetTagUpstream()


getTagWontfix

publicbooleangetTagWontfix()


getTagWoody

publicbooleangetTagWoody()


getTitle

publicStringgetTitle()


hashcode

publicinthashcode()


makeBug

publicstatic BugmakeBug()


makeBug

publicstatic BugmakeBug(Integer bugNumber)

Creates a new bug report object

Parameters:
bugNumber

parseTag

publicvoidparseTag(String tag)

Parameters:
tag

parseTags

publicvoidparseTags(String tags)

Parameters:
tags

removeListener

publicsynchronized voidremoveListener(BugListener listener)

Unregister an object that was receiving event notification.

Parameters:
listener - The object that is to no longer receive

removeListing

publicvoidremoveListing(ListingStub stub)

Parameters:
stub

retrievingBug

publicvoidretrievingBug(Bug bug)

Called when a bug is being retrieved, If verbose progress notifications have been requested

Parameters:
bug

setAge

publicvoidsetAge(int age)

Parameters:
age

setComments

publicvoidsetComments(LinkedList comments)

Parameters:
comments

setComplete

publicvoidsetComplete(boolean complete)

Parameters:
complete

setCreated

publicvoidsetCreated(long created)

Parameters:
created

setData

publicvoidsetData(Object data)

Parameters:
data

setDone

publicvoidsetDone(String done)

Parameters:
done

setForwarded

publicvoidsetForwarded(String forwarded)

Parameters:
forwarded

setLastUpdated

publicvoidsetLastUpdated(long date)

Parameters:
date

setListings

publicvoidsetListings(Vector listings)

Sets listings

Parameters:
listings

setMerged

publicvoidsetMerged(int[] merged)

Parameters:
merged

setNoWrite

publicvoidsetNoWrite(boolean setting)

if setting is true, the bug will not attempt to write itself to disk (used during construction of the report.

Parameters:
setting

setNumber

publicvoidsetNumber(int number)

Parameters:
number

setPackageName

publicvoidsetPackageName(String packageName)

Parameters:
packageName

setSeverity

publicvoidsetSeverity(Severity severity)

Parameters:
severity

setStatus

publicvoidsetStatus(Status status)

Parameters:
status

setSubmitter

publicvoidsetSubmitter(String submitter)

Parameters:
submitter

setTagConfirmed

publicvoidsetTagConfirmed(boolean setting)

Parameters:
setting

setTagD_I

publicvoidsetTagD_I(boolean setting)

Parameters:
setting

setTagExperimental

publicvoidsetTagExperimental(boolean setting)

Parameters:
setting

setTagFixed

publicvoidsetTagFixed(boolean setting)

Parameters:
setting

setTagFixedInExperimental

publicvoidsetTagFixedInExperimental(boolean setting)

Parameters:
setting

setTagFixedUpstream

publicvoidsetTagFixedUpstream(boolean setting)

Parameters:
setting

setTagHelp

publicvoidsetTagHelp(boolean setting)

Parameters:
setting

setTagIPV6

publicvoidsetTagIPV6(boolean setting)

Parameters:
setting

setTagLFS

publicvoidsetTagLFS(boolean setting)

Parameters:
setting

setTagMoreinfo

publicvoidsetTagMoreinfo(boolean setting)

Parameters:
setting

setTagOthers

publicvoidsetTagOthers(Vector setting)

Parameters:
setting

setTagPatch

publicvoidsetTagPatch(boolean setting)

Parameters:
setting

setTagPending

publicvoidsetTagPending(boolean setting)

Parameters:
setting

setTagPotato

publicvoidsetTagPotato(boolean setting)

Parameters:
setting

setTagSarge

publicvoidsetTagSarge(boolean setting)

Parameters:
setting

setTagSecurity

publicvoidsetTagSecurity(boolean setting)

Parameters:
setting

setTagSid

publicvoidsetTagSid(boolean setting)

Parameters:
setting

setTagUnreproducible

publicvoidsetTagUnreproducible(boolean setting)

Parameters:
setting

setTagUpstream

publicvoidsetTagUpstream(boolean setting)

Parameters:
setting

setTagWontfix

publicvoidsetTagWontfix(boolean setting)

Parameters:
setting

setTagWoody

publicvoidsetTagWoody(boolean setting)

Parameters:
setting

setTitle

publicvoidsetTitle(String title)

Parameters:
title

setUpdated

publicvoidsetUpdated()

Sets the last updated field to the current date


toString

publicStringtoString()


update

publicvoidupdate()


updateVerbose

publicvoidupdateVerbose()