org.apache.bcel.verifier

Class VerificationResult

public class VerificationResult extends Object

A VerificationResult is what a PassVerifier returns after verifying.

Version: $Id: VerificationResult.java 386056 2006-03-15 11:31:56Z tcurdt $

Author: Enver Haase

Field Summary
StringdetailMessage
The detailed message.
intnumeric
The numeric status.
static intVERIFIED_NOTYET
Constant to indicate verification has not been tried yet.
static StringVERIFIED_NOTYET_MSG
This string is the canonical message for verifications that have not been tried yet.
static intVERIFIED_OK
Constant to indicate verification was passed.
static StringVERIFIED_OK_MSG
This string is the canonical message for passed verification passes.
static intVERIFIED_REJECTED
Constant to indicate verfication failed.
static VerificationResultVR_NOTYET
Canonical VerificationResult for not-yet-tried verifications.
static VerificationResultVR_OK
Canonical VerificationResult for passed verifications.
Constructor Summary
VerificationResult(int status, String message)
The usual constructor.
Method Summary
booleanequals(Object o)
Returns if two VerificationResult instances are equal.
StringgetMessage()
Returns a detailed message.
intgetStatus()
Returns one one the VERIFIED_OK, VERIFIED_NOTYET, VERIFIED_REJECTED constants.
inthashCode()
StringtoString()
Returns a String representation of the VerificationResult.

Field Detail

detailMessage

private String detailMessage
The detailed message.

numeric

private int numeric
The numeric status.

VERIFIED_NOTYET

public static final int VERIFIED_NOTYET
Constant to indicate verification has not been tried yet. This happens if some earlier verification pass did not return VERIFIED_OK.

VERIFIED_NOTYET_MSG

private static final String VERIFIED_NOTYET_MSG
This string is the canonical message for verifications that have not been tried yet. This happens if some earlier verification pass did not return VERIFIED_OK.

VERIFIED_OK

public static final int VERIFIED_OK
Constant to indicate verification was passed.

VERIFIED_OK_MSG

private static final String VERIFIED_OK_MSG
This string is the canonical message for passed verification passes.

VERIFIED_REJECTED

public static final int VERIFIED_REJECTED
Constant to indicate verfication failed.

VR_NOTYET

public static final VerificationResult VR_NOTYET
Canonical VerificationResult for not-yet-tried verifications. This happens if some earlier verification pass did not return VERIFIED_OK.

VR_OK

public static final VerificationResult VR_OK
Canonical VerificationResult for passed verifications.

Constructor Detail

VerificationResult

public VerificationResult(int status, String message)
The usual constructor.

Method Detail

equals

public boolean equals(Object o)
Returns if two VerificationResult instances are equal.

getMessage

public String getMessage()
Returns a detailed message.

getStatus

public int getStatus()
Returns one one the VERIFIED_OK, VERIFIED_NOTYET, VERIFIED_REJECTED constants.

hashCode

public int hashCode()

Returns: a hash code value for the object.

toString

public String toString()
Returns a String representation of the VerificationResult.