org.jdiagnose
Class DefaultDiagnosticMessage

java.lang.Object
  extended byorg.jdiagnose.DefaultDiagnosticMessage
All Implemented Interfaces:
DiagnosticMessage, java.io.Serializable

public class DefaultDiagnosticMessage
extends java.lang.Object
implements DiagnosticMessage

Default implemenation of the DiagnosticMessage.

Author:
jmccrindle
See Also:
Serialized Form

Constructor Summary
DefaultDiagnosticMessage(DiagnosticMessage message)
           
DefaultDiagnosticMessage(java.lang.String summary)
           
DefaultDiagnosticMessage(java.lang.String summary, java.lang.String body)
           
 
Method Summary
 java.lang.String getBody()
           
 java.lang.String getSummary()
          A summary of the diagnostic result.
 void setBody(java.lang.String body)
           
 void setSummary(java.lang.String summary)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDiagnosticMessage

public DefaultDiagnosticMessage(java.lang.String summary,
                                java.lang.String body)
Parameters:
summary -
body -

DefaultDiagnosticMessage

public DefaultDiagnosticMessage(java.lang.String summary)
Parameters:
summary -

DefaultDiagnosticMessage

public DefaultDiagnosticMessage(DiagnosticMessage message)
Parameters:
message -
Method Detail

getSummary

public java.lang.String getSummary()
Description copied from interface: DiagnosticMessage
A summary of the diagnostic result. Ideally should be only a single line.

Specified by:
getSummary in interface DiagnosticMessage
Returns:
a summary of the diagnostic result message

getBody

public java.lang.String getBody()
Specified by:
getBody in interface DiagnosticMessage
Returns:
more details about the diagnostic result

setBody

public void setBody(java.lang.String body)

setSummary

public void setSummary(java.lang.String summary)


Copyright © 2004-2005 Grape Design Limited. All Rights Reserved.