Clover Coverage Report - Kuali Student 1.2-M2-SNAPSHOT (Aggregated)
Coverage timestamp: Fri Apr 22 2011 04:03:20 EST
../../../../../../../img/srcFileCovDistChart9.png 32% of files have more coverage
7   71   5   1.4
0   27   0.71   5
5     1  
1    
 
  BooleanMessageImpl       Line # 20 7 0% 5 2 83.3% 0.8333333
 
  (41)
 
1    /**
2    * Copyright 2010 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10    * software distributed under the License is distributed on an "AS IS"
11    * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12    * or implied. See the License for the specific language governing
13    * permissions and limitations under the License.
14    */
15   
16    package org.kuali.student.common.messagebuilder.booleanmessage.ast;
17   
18    import org.kuali.student.common.messagebuilder.booleanmessage.BooleanMessage;
19   
 
20    public class BooleanMessageImpl implements BooleanMessage {
21    private String messageId;
22    private Boolean successful;
23    private String message;
24   
25    /**
26    * Constructs a new boolean message.
27    *
28    * @param messageId Message id
29    * @param succesful Success or failure
30    * @param message Success or failure message
31    */
 
32  229 toggle public BooleanMessageImpl(String messageId, Boolean successful, String message) {
33  229 this.messageId = messageId;
34  229 this.successful = successful;
35  229 this.message = message;
36    }
37   
38    /**
39    * Gets the message id.
40    *
41    * @return Message id
42    */
 
43  221 toggle public String getMessageId() {
44  221 return this.messageId;
45    }
46   
47    /**
48    * Returns whether the message is a success or failure.
49    *
50    * @return True if successful; otherwise false
51    */
 
52  228 toggle public Boolean isSuccesful() {
53  228 return this.successful;
54    }
55   
56    /**
57    * Returns either the success or failure message.
58    *
59    * @param Success or failure message
60    */
 
61  229 toggle public String getMessage() {
62  229 return this.message;
63    }
64   
 
65  0 toggle public String toString() {
66  0 return "[messageId=" + this.messageId
67    + ", successful='" + this.successful
68    + ", message='" + this.message
69    + "']";
70    }
71    }