Coverage Report - org.kuali.rice.krms.framework.engine.PropositionResult
 
Classes in this File Line Coverage Branch Coverage Complexity
PropositionResult
90%
9/10
50%
1/2
1.25
 
 1  
 /**
 2  
  * Copyright 2005-2011 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl2.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.krms.framework.engine;
 17  
 
 18  
 import java.util.Collections;
 19  
 import java.util.Map;
 20  
 
 21  
 public class PropositionResult {
 22  
 
 23  
         final boolean result;
 24  
         Map<String,?> executionDetails;
 25  
 
 26  
         public PropositionResult(boolean result) {
 27  38
             this(result, null);
 28  38
         }
 29  
 
 30  38
         public PropositionResult(boolean result, Map<String,?> executionDetails) {
 31  38
                 this.result = result;
 32  
                 
 33  38
                 if (executionDetails == null) {
 34  38
                     this.executionDetails = Collections.emptyMap();
 35  
                 } else {
 36  0
                     this.executionDetails = Collections.unmodifiableMap(executionDetails);
 37  
                 }
 38  38
         }
 39  
 
 40  
         public boolean getResult() {
 41  43
                 return result;
 42  
         }
 43  
         
 44  
         public Map<String,?> getExecutionDetails() {
 45  3
                 return executionDetails;
 46  
         }
 47  
                 
 48  
 }