Nitido Inc.

com.nitido.qabase
Class ResultStatus

java.lang.Object
  extended by com.nitido.qabase.ResultStatus

public class ResultStatus
extends java.lang.Object

This class encapsulates the results of a test sequence.


Field Summary
protected  int _intResult
           
protected  java.lang.String _msg
           
protected  java.lang.String _stringResult
           
static ResultStatus FAIL
          Object representation of a FAIL result status.
static ResultStatus FATAL
          Object representation of a FATAL result status
static int INT_FAIL
          Integer representation of a FAIL result status
static int INT_FATAL
          Integer representation of a FATAL result status
static int INT_PASS
          Integer representation of a PASS result status
static ResultStatus PASS
          Object representation of a PASS result status
static java.lang.String STRING_FAIL
          String representation of a FAIL result status
static java.lang.String STRING_FATAL
          String representation of a FATAL result status
static java.lang.String STRING_PASS
          String representation of a PASS result status
 
Constructor Summary
ResultStatus(int intResult, java.lang.String stringResult)
          This constructor creates a new ResultStatus given the integer and string representations of the result status
ResultStatus(ResultStatus status)
          This constructor creates a deep copy of the give result status object
 
Method Summary
 boolean equals(ResultStatus result)
          Returns true if the two ResultStatus objects represent the same result status
 java.lang.String getMessage()
          This method gets the message associated to the result status
 void setMessage(java.lang.String msg)
          This method sets a message to be associated with the result status
 int toInt()
          This method returns the integer representation of the result status
 java.lang.String toString()
          This method returns the string representation of the result status
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_intResult

protected int _intResult

_stringResult

protected java.lang.String _stringResult

_msg

protected java.lang.String _msg

INT_PASS

public static final int INT_PASS
Integer representation of a PASS result status

See Also:
Constant Field Values

INT_FAIL

public static final int INT_FAIL
Integer representation of a FAIL result status

See Also:
Constant Field Values

INT_FATAL

public static final int INT_FATAL
Integer representation of a FATAL result status

See Also:
Constant Field Values

STRING_PASS

public static final java.lang.String STRING_PASS
String representation of a PASS result status

See Also:
Constant Field Values

STRING_FAIL

public static final java.lang.String STRING_FAIL
String representation of a FAIL result status

See Also:
Constant Field Values

STRING_FATAL

public static final java.lang.String STRING_FATAL
String representation of a FATAL result status

See Also:
Constant Field Values

PASS

public static final ResultStatus PASS
Object representation of a PASS result status


FAIL

public static final ResultStatus FAIL
Object representation of a FAIL result status.


FATAL

public static final ResultStatus FATAL
Object representation of a FATAL result status

Constructor Detail

ResultStatus

public ResultStatus(int intResult,
                    java.lang.String stringResult)
This constructor creates a new ResultStatus given the integer and string representations of the result status

Parameters:
intResult - Integer representation of the result status
stringResult - String representation of the result status

ResultStatus

public ResultStatus(ResultStatus status)
This constructor creates a deep copy of the give result status object

Parameters:
status - The result status object that is being copied
Method Detail

setMessage

public final void setMessage(java.lang.String msg)
This method sets a message to be associated with the result status

Parameters:
msg - The message to be associated with the result

getMessage

public final java.lang.String getMessage()
This method gets the message associated to the result status

Returns:
The message associated to the result status

toInt

public final int toInt()
This method returns the integer representation of the result status

Returns:
The integer representation of the result status

toString

public final java.lang.String toString()
This method returns the string representation of the result status

Overrides:
toString in class java.lang.Object
Returns:
The string representation of the result status

equals

public boolean equals(ResultStatus result)
Returns true if the two ResultStatus objects represent the same result status

Returns:
true if the two ResultStatus objects represent the same result status

Nitido NiM 2.5 Java API

These JavaDoc pages are generated for release/nim_2_5-2.5.44

Copyright © 1999-2009 Nitido Inc.    Proprietary and Confidential.    All Rights Reserved.