Coverage Report - org.kuali.rice.kns.web.spring.UifBeanPropertyBindingResult
 
Classes in this File Line Coverage Branch Coverage Complexity
UifBeanPropertyBindingResult
0%
0/5
0%
0/2
1
 
 1  
 /*
 2  
  * Copyright 2007 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 1.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/ecl1.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.kns.web.spring;
 17  
 
 18  
 import org.springframework.beans.BeanWrapper;
 19  
 import org.springframework.util.Assert;
 20  
 import org.springframework.validation.BeanPropertyBindingResult;
 21  
 
 22  
 /**
 23  
  * This is a description of what this class does - swgibson don't forget to fill this in. 
 24  
  * 
 25  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 26  
  */
 27  0
 public class UifBeanPropertyBindingResult extends BeanPropertyBindingResult {
 28  
     private static final long serialVersionUID = -3740046436620585003L;
 29  
 
 30  
     public UifBeanPropertyBindingResult(Object target, String objectName,  boolean autoGrowNestedPaths) {
 31  0
         super(target, objectName, autoGrowNestedPaths);
 32  0
     }
 33  
 
 34  
     /**
 35  
      * Create a new {@link BeanWrapper} for the underlying target object.
 36  
      * @see #getTarget()
 37  
      */
 38  
     @Override
 39  
     protected UifViewBeanWrapper createBeanWrapper() {
 40  0
         Assert.state(super.getTarget() != null, "Cannot access properties on null bean instance '" + getObjectName() + "'!");
 41  0
         return new UifViewBeanWrapper(super.getTarget());
 42  
     }
 43  
 }