Clover coverage report - brownies library - 1.0-beta-1
Coverage timestamp: 月 8 16 2004 17:14:42 GMT+09:00
file stats: LOC: 39   Methods: 2
NCLOC: 14   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
SetBodyToPropertyRule.java - 100% 100% 100%
coverage
 1   
 /*
 2   
  * brownies and its relative products are published under the terms
 3   
  * of the Apache Software License.
 4   
  * 
 5   
  * Created on 2004/08/16 17:09:09
 6   
  */
 7   
 package org.asyrinx.brownie.core.xml.digester;
 8   
 
 9   
 import org.apache.commons.beanutils.BeanUtils;
 10   
 import org.apache.commons.digester.Digester;
 11   
 import org.apache.commons.digester.Rule;
 12   
 
 13   
 /**
 14   
  * @author akima
 15   
  */
 16   
 public class SetBodyToPropertyRule extends Rule {
 17   
 
 18   
     /**
 19   
      *  
 20   
      */
 21  1
     public SetBodyToPropertyRule(String propertyName) {
 22  1
         super();
 23  1
         this.propertyName = propertyName;
 24   
     }
 25   
 
 26   
     private final String propertyName;
 27   
 
 28   
     /*
 29   
      * (non-Javadoc)
 30   
      * 
 31   
      * @see org.apache.commons.digester.Rule#body(java.lang.String,
 32   
      *        java.lang.String, java.lang.String)
 33   
      */
 34  1
     public void body(String namespace, String name, String text) throws Exception {
 35  1
         final Object bean = digester.peek(0);
 36  1
         BeanUtils.setProperty(bean, propertyName, text);
 37   
     }
 38   
 
 39   
 }