cdx.scorebot.net.tests
Class TestEvent.ResultInfoPair

java.lang.Object
  extended by cdx.scorebot.net.tests.TestEvent.ResultInfoPair
Enclosing class:
TestEvent

public class TestEvent.ResultInfoPair
extends java.lang.Object

stores results from the test and any audits of those results

Author:
David Underhill

Constructor Summary
TestEvent.ResultInfoPair(java.lang.Object originalValue)
          default constructor
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.Object getAuditedValue()
          gets the audited test result (null if not audited)
 java.lang.String getComments()
          gets any comments regarding the event or audit
 java.lang.String getName()
          gets the name of the result
 java.lang.Object getOriginalValue()
          gets the original test result
 java.lang.Object getValue()
          returns the audited value if there is one, otherwise the original value
 boolean isAudited()
          returns true if the value has been audited
 void setAuditedValue(java.lang.Object auditedValue)
          sets the audited test result (null if not audited)
 void setComments(java.lang.String comments)
          sets any comments regarding the event or audit
 void setName(java.lang.String name)
          sets the name of the result
 java.lang.String toString()
          returns the name of the TestEvent, if any and the empty string if name is null
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestEvent.ResultInfoPair

public TestEvent.ResultInfoPair(java.lang.Object originalValue)
default constructor

Parameters:
originalValue - the original test result
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getValue

public java.lang.Object getValue()
returns the audited value if there is one, otherwise the original value

Returns:
current value of the result

getOriginalValue

public java.lang.Object getOriginalValue()
gets the original test result


getAuditedValue

public java.lang.Object getAuditedValue()
gets the audited test result (null if not audited)


isAudited

public boolean isAudited()
returns true if the value has been audited


setAuditedValue

public void setAuditedValue(java.lang.Object auditedValue)
sets the audited test result (null if not audited)


getComments

public java.lang.String getComments()
gets any comments regarding the event or audit


setComments

public void setComments(java.lang.String comments)
sets any comments regarding the event or audit


getName

public java.lang.String getName()
gets the name of the result


setName

public void setName(java.lang.String name)
sets the name of the result


toString

public java.lang.String toString()
returns the name of the TestEvent, if any and the empty string if name is null

Overrides:
toString in class java.lang.Object