01: /* Copyright 2005 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal.tools.checks;
07:
08: /**
09: * Represents a description of a check as well as the result of having performed that
10: * check.
11: * @version $Revision: 35833 $ $Date: 2005-05-19 18:51:40 -0700 (Thu, 19 May 2005) $
12: * @since uPortal 2.5
13: */
14: public class CheckAndResult {
15:
16: /**
17: * A String describing what check was performed.
18: */
19: private final String checkDescription;
20:
21: /**
22: * The result of the check.
23: */
24: private final CheckResult result;
25:
26: public CheckAndResult(String checkDescription, CheckResult result) {
27: this .checkDescription = checkDescription;
28: this .result = result;
29: }
30:
31: /**
32: * @return Returns the checkDescription.
33: */
34: public String getCheckDescription() {
35: return this .checkDescription;
36: }
37:
38: /**
39: * @return Returns the result.
40: */
41: public CheckResult getResult() {
42: return this .result;
43: }
44:
45: public boolean isSuccess() {
46: return this.result.isSuccess();
47: }
48: }
|