|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nitido.qabase.ResultStatus
public class ResultStatus
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 |
---|
protected int _intResult
protected java.lang.String _stringResult
protected java.lang.String _msg
public static final int INT_PASS
public static final int INT_FAIL
public static final int INT_FATAL
public static final java.lang.String STRING_PASS
public static final java.lang.String STRING_FAIL
public static final java.lang.String STRING_FATAL
public static final ResultStatus PASS
public static final ResultStatus FAIL
public static final ResultStatus FATAL
Constructor Detail |
---|
public ResultStatus(int intResult, java.lang.String stringResult)
intResult
- Integer representation of the result statusstringResult
- String representation of the result statuspublic ResultStatus(ResultStatus status)
status
- The result status object that is being copiedMethod Detail |
---|
public final void setMessage(java.lang.String msg)
msg
- The message to be associated with the resultpublic final java.lang.String getMessage()
public final int toInt()
public final java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(ResultStatus result)
|
Nitido NiM 2.5 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.