Coverage Report - org.mule.config.spring.parsers.assembly.configuration.SinglePropertyWrapper
 
Classes in this File Line Coverage Branch Coverage Complexity
SinglePropertyWrapper
0%
0/13
N/A
1
 
 1  
 /*
 2  
  * $Id: SinglePropertyWrapper.java 10256 2008-01-08 15:20:25Z dfeist $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
 5  
  *
 6  
  * The software in this package is published under the terms of the CPAL v1.0
 7  
  * license, a copy of which has been included with this distribution in the
 8  
  * LICENSE.txt file.
 9  
  */
 10  
 
 11  
 package org.mule.config.spring.parsers.assembly.configuration;
 12  
 
 13  
 public class SinglePropertyWrapper implements SingleProperty
 14  
 {
 15  
 
 16  
     private String oldName;
 17  
     private PropertyConfiguration config;
 18  
 
 19  
     public SinglePropertyWrapper(String oldName, PropertyConfiguration config)
 20  0
     {
 21  0
         this.oldName = oldName;
 22  0
         this.config = config;
 23  0
     }
 24  
 
 25  
     public boolean isCollection()
 26  
     {
 27  0
         return config.isCollection(oldName);
 28  
     }
 29  
 
 30  
     public void setCollection()
 31  
     {
 32  0
         config.addCollection(oldName);
 33  0
     }
 34  
 
 35  
     public boolean isIgnored()
 36  
     {
 37  0
         return config.isIgnored(oldName);
 38  
     }
 39  
 
 40  
     public void setIgnored()
 41  
     {
 42  0
         config.addIgnored(oldName);
 43  0
     }
 44  
 
 45  
     public boolean isReference()
 46  
     {
 47  0
         return config.isReference(oldName);
 48  
     }
 49  
 
 50  
     public void setReference()
 51  
     {
 52  0
         config.addReference(oldName);
 53  0
     }
 54  
     
 55  
 }