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  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 3  
  * The software in this package is published under the terms of the CPAL v1.0
 4  
  * license, a copy of which has been included with this distribution in the
 5  
  * LICENSE.txt file.
 6  
  */
 7  
 package org.mule.config.spring.parsers.assembly.configuration;
 8  
 
 9  
 public class SinglePropertyWrapper implements SingleProperty
 10  
 {
 11  
 
 12  
     private String oldName;
 13  
     private PropertyConfiguration config;
 14  
 
 15  
     public SinglePropertyWrapper(String oldName, PropertyConfiguration config)
 16  0
     {
 17  0
         this.oldName = oldName;
 18  0
         this.config = config;
 19  0
     }
 20  
 
 21  
     public boolean isCollection()
 22  
     {
 23  0
         return config.isCollection(oldName);
 24  
     }
 25  
 
 26  
     public void setCollection()
 27  
     {
 28  0
         config.addCollection(oldName);
 29  0
     }
 30  
 
 31  
     public boolean isIgnored()
 32  
     {
 33  0
         return config.isIgnored(oldName);
 34  
     }
 35  
 
 36  
     public void setIgnored()
 37  
     {
 38  0
         config.addIgnored(oldName);
 39  0
     }
 40  
 
 41  
     public boolean isReference()
 42  
     {
 43  0
         return config.isReference(oldName);
 44  
     }
 45  
 
 46  
     public void setReference()
 47  
     {
 48  0
         config.addReference(oldName);
 49  0
     }
 50  
     
 51  
 }