Coverage Report - org.kuali.rice.core.impl.parameter.AlwaysSucceedParameterEvaluatorImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
AlwaysSucceedParameterEvaluatorImpl
0%
0/12
N/A
1
 
 1  
 /*
 2  
  * Copyright 2007-2009 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.core.impl.parameter;
 17  
 
 18  
 
 19  
 import org.kuali.rice.core.api.parameter.ParameterEvaluator;
 20  
 
 21  
 /**
 22  
  * This implementation of ParameterEvaluator is returned by ParameterServiceImpl when evaluation involves a constraining value and
 23  
  * neither the allow nor deny parameter have restrictions for that value.
 24  
  */
 25  
 public class AlwaysSucceedParameterEvaluatorImpl implements ParameterEvaluator {
 26  0
     private static final AlwaysSucceedParameterEvaluatorImpl instance = new AlwaysSucceedParameterEvaluatorImpl();
 27  
 
 28  
     public static ParameterEvaluator getInstance() {
 29  0
         return instance;
 30  
     }
 31  
 
 32  0
     private AlwaysSucceedParameterEvaluatorImpl() {
 33  0
     }
 34  
 
 35  
     public boolean constraintIsAllow() {
 36  0
         return Boolean.TRUE;
 37  
     }
 38  
 
 39  
 
 40  
     public boolean evaluateAndAddError(Class businessObjectOrDocumentClass, String constrainedPropertyName, String userEditablePropertyName) {
 41  0
         return evaluationSucceeds();
 42  
     }
 43  
 
 44  
     public boolean evaluateAndAddError(Class businessObjectOrDocumentClass, String constrainedPropertyName) {
 45  0
         return evaluationSucceeds();
 46  
     }
 47  
 
 48  
     public boolean evaluationSucceeds() {
 49  0
         return Boolean.TRUE;
 50  
     }
 51  
 
 52  
     public String getName() {
 53  0
         return AlwaysSucceedParameterEvaluatorImpl.class.getName();
 54  
     }
 55  
 
 56  
     public String getParameterValuesForMessage() {
 57  0
         return AlwaysSucceedParameterEvaluatorImpl.class.getName();
 58  
     }
 59  
 
 60  
     public String getValue() {
 61  0
         return AlwaysSucceedParameterEvaluatorImpl.class.getName();
 62  
     }
 63  
 
 64  
     public void setConstrainedValue(String constrainedValue) {
 65  0
     }
 66  
 }