allensoft.bug
Class BugReport

java.lang.Object
  |
  +--allensoft.bug.BugReport
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CrashReport

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

A BugReport keeps track of all the details of a bug. This includes information such as the application name and version, the OS name and version and JVM version and vendor etc.

See Also:
Serialized Form

Constructor Summary
BugReport()
          Creates a new bug report.
 
Method Summary
 java.lang.String getApplicationName()
          Gets the name of the application that this bug report is for.
 java.lang.String getApplicationVersion()
          Gets the version of the application that this bug report is for.
 java.lang.String getClassPath()
          Gets the classpath that was being used when this bug occurred.
 java.lang.String getDetails()
          Gets the details of this bug report or null if this was not supllied.
 java.lang.String getHowToReproduce()
          Gets the information on how to reproduce this bug or null if the user did not supply this.
 java.lang.String getJavaClassVersion()
          Gets the Java class version that was being used when this bug occurred.
 java.lang.String getJavaHome()
          Gets the home directory of the JVM that was being used when this bug occurred.
 java.lang.String getJavaVendor()
          Gets the vendor of the JVM that was being used when this bug occurred.
 java.lang.String getJavaVersion()
          Gets the version of the JVM that was being used when this bug occurred.
 java.lang.String getOSArchitecture()
          Gets the OS architecture that was being used when this bug occurred.
 java.lang.String getOSName()
          Gets the OS name that was being used when this bug occurred.
 java.lang.String getOSVersion()
          Gets the OS version that was being used when this bug occurred.
 java.lang.String getSummary()
          Gets a summary of this bug.
 java.lang.String getUserEMail()
          Gets the email address of the user who submitted this bug report or null if this was not supplied.
 java.lang.String getUserName()
          Gets the name of the user who logged this bug or null if this was not supllied.
static void setApplicationName(java.lang.String s)
          Sets the default application name to use for all new bug reports that are created.
static void setApplicationVersion(java.lang.String s)
          Sets the default application version to use for all new bug reports that are created.
 void setDetails(java.lang.String s)
          Sets the details of this bug report.
 void setHowToReproduce(java.lang.String s)
          Sets the information on how to reproduce this bug.
 void setSummary(java.lang.String s)
          Sets a summary of this bug.
 void setUserEMail(java.lang.String s)
          Sets the email address of the user who submitted this bug report.
 void setUserName(java.lang.String s)
          Sets the name of the user who logged this bug.
 java.lang.String toString()
          Converts this bug report to a string that describes all the settings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BugReport

public BugReport()
Creates a new bug report.
Method Detail

getUserName

public java.lang.String getUserName()
Gets the name of the user who logged this bug or null if this was not supllied.

setUserName

public void setUserName(java.lang.String s)
Sets the name of the user who logged this bug.

getSummary

public java.lang.String getSummary()
Gets a summary of this bug. This is generally a one line condensed form of the bug report.

setSummary

public void setSummary(java.lang.String s)
Sets a summary of this bug. This is generally a one line condensed form of the bug report.

getDetails

public java.lang.String getDetails()
Gets the details of this bug report or null if this was not supllied. This should be a detailed description of the bug.

setDetails

public void setDetails(java.lang.String s)
Sets the details of this bug report.

getHowToReproduce

public java.lang.String getHowToReproduce()
Gets the information on how to reproduce this bug or null if the user did not supply this.

setHowToReproduce

public void setHowToReproduce(java.lang.String s)
Sets the information on how to reproduce this bug.

getUserEMail

public java.lang.String getUserEMail()
Gets the email address of the user who submitted this bug report or null if this was not supplied.

setUserEMail

public void setUserEMail(java.lang.String s)
Sets the email address of the user who submitted this bug report.

getClassPath

public java.lang.String getClassPath()
Gets the classpath that was being used when this bug occurred.

getJavaClassVersion

public java.lang.String getJavaClassVersion()
Gets the Java class version that was being used when this bug occurred.

getJavaHome

public java.lang.String getJavaHome()
Gets the home directory of the JVM that was being used when this bug occurred.

getJavaVendor

public java.lang.String getJavaVendor()
Gets the vendor of the JVM that was being used when this bug occurred.

getJavaVersion

public java.lang.String getJavaVersion()
Gets the version of the JVM that was being used when this bug occurred.

getOSArchitecture

public java.lang.String getOSArchitecture()
Gets the OS architecture that was being used when this bug occurred.

getOSName

public java.lang.String getOSName()
Gets the OS name that was being used when this bug occurred.

getOSVersion

public java.lang.String getOSVersion()
Gets the OS version that was being used when this bug occurred.

toString

public java.lang.String toString()
Converts this bug report to a string that describes all the settings. This could then be used as the body of an email message if this bug was being submitted by email for example.
Overrides:
toString in class java.lang.Object

getApplicationName

public java.lang.String getApplicationName()
Gets the name of the application that this bug report is for.

getApplicationVersion

public java.lang.String getApplicationVersion()
Gets the version of the application that this bug report is for.

setApplicationName

public static void setApplicationName(java.lang.String s)
Sets the default application name to use for all new bug reports that are created. This is typically called once at the start of the application main method.

setApplicationVersion

public static void setApplicationVersion(java.lang.String s)
Sets the default application version to use for all new bug reports that are created. This is typically called once at the start of the application main method.