FileDocCategorySizeDatePackage
ResultManager.javaAPI DocGlassfish v2 API3972Fri May 04 22:33:24 BST 2007com.sun.enterprise.tools.verifier

ResultManager

public class ResultManager extends Object
This class is responsible for collecting the result and error data
author
Sudipto Ghosh

Fields Summary
private Vector
failedResults
private Vector
okayResults
private Vector
warningResults
private Vector
naResults
private Vector
error
Constructors Summary
Methods Summary
public voidadd(Result result)

        Result r = result;
        addToResult(r);
    
private voidaddToResult(Result r)
add the result object to specific Vector based on the status.

param
r

        if (r.getStatus() == Result.FAILED) {
            failedResults.add(r);
        } else if (r.getStatus() == Result.PASSED) {
            okayResults.add(r);
        } else if (r.getStatus() == Result.WARNING) {
            warningResults.add(r);
        } else if ((r.getStatus() == Result.NOT_APPLICABLE) ||
                (r.getStatus() == Result.NOT_RUN) ||
                (r.getStatus() == Result.NOT_IMPLEMENTED)) {
            naResults.add(r);
        }
    
public java.util.VectorgetError()

        return error;
    
public intgetErrorCount()

        return (error == null) ? 0 : error.size();
    
public intgetFailedCount()

        return (failedResults == null) ? 0 : failedResults.size();
    
public java.util.VectorgetFailedResults()

        return failedResults;
    
public java.util.VectorgetNaResults()

        return naResults;
    
public java.util.VectorgetOkayResults()

        return okayResults;
    
public intgetWarningCount()

        return (warningResults == null) ? 0 : warningResults.size();
    
public java.util.VectorgetWarningResults()

        return warningResults;
    
public voidlog(java.util.logging.LogRecord logRecord)

        error.add(logRecord);