Coverage Report - org.apache.myfaces.config.impl.digester.elements.ConverterImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
ConverterImpl
0%
0/26
0%
0/8
1.6
 
 1  
 /*
 2  
  * Licensed to the Apache Software Foundation (ASF) under one
 3  
  * or more contributor license agreements.  See the NOTICE file
 4  
  * distributed with this work for additional information
 5  
  * regarding copyright ownership.  The ASF licenses this file
 6  
  * to you under the Apache License, Version 2.0 (the
 7  
  * "License"); you may not use this file except in compliance
 8  
  * with the License.  You may obtain a copy of the License at
 9  
  *
 10  
  *   http://www.apache.org/licenses/LICENSE-2.0
 11  
  *
 12  
  * Unless required by applicable law or agreed to in writing,
 13  
  * software distributed under the License is distributed on an
 14  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 15  
  * KIND, either express or implied.  See the License for the
 16  
  * specific language governing permissions and limitations
 17  
  * under the License.
 18  
  */
 19  
 package org.apache.myfaces.config.impl.digester.elements;
 20  
 
 21  
 import java.io.Serializable;
 22  
 import java.util.ArrayList;
 23  
 import java.util.Collection;
 24  
 import java.util.Collections;
 25  
 import java.util.List;
 26  
 
 27  
 
 28  
 /**
 29  
  * @author <a href="mailto:oliver@rossmueller.com">Oliver Rossmueller</a>
 30  
  */
 31  0
 public class ConverterImpl extends org.apache.myfaces.config.element.Converter implements Serializable
 32  
 {
 33  
 
 34  
     private String converterId;
 35  
     private String forClass;
 36  
     private String converterClass;
 37  0
     private List<org.apache.myfaces.config.element.Property> _properties = null;
 38  0
     private List<org.apache.myfaces.config.element.Attribute> _attributes = null;
 39  
 
 40  
 
 41  
     public String getConverterId()
 42  
     {
 43  0
         return converterId;
 44  
     }
 45  
 
 46  
 
 47  
     public void setConverterId(String converterId)
 48  
     {
 49  0
         this.converterId = converterId;
 50  0
     }
 51  
 
 52  
 
 53  
     public String getForClass()
 54  
     {
 55  0
         return forClass;
 56  
     }
 57  
 
 58  
 
 59  
     public void setForClass(String forClass)
 60  
     {
 61  0
         this.forClass = forClass;
 62  0
     }
 63  
 
 64  
 
 65  
     public String getConverterClass()
 66  
     {
 67  0
         return converterClass;
 68  
     }
 69  
 
 70  
 
 71  
     public void setConverterClass(String converterClass)
 72  
     {
 73  0
         this.converterClass = converterClass;
 74  0
     }
 75  
 
 76  
     public void addProperty(org.apache.myfaces.config.element.Property value)
 77  
     {
 78  0
         if(_properties == null)
 79  
         {
 80  0
             _properties = new ArrayList<org.apache.myfaces.config.element.Property>();
 81  
         }
 82  
 
 83  0
         _properties.add(value);
 84  0
     }
 85  
 
 86  
     public Collection<? extends org.apache.myfaces.config.element.Property> getProperties()
 87  
     {
 88  0
         if(_properties == null)
 89  
         {
 90  0
             return Collections.emptyList();
 91  
         }
 92  
 
 93  0
         return _properties;
 94  
     }
 95  
     
 96  
     public void addAttribute(org.apache.myfaces.config.element.Attribute value)
 97  
     {
 98  0
         if(_attributes == null)
 99  
         {
 100  0
             _attributes = new ArrayList<org.apache.myfaces.config.element.Attribute>();
 101  
         }
 102  
 
 103  0
         _attributes.add(value);
 104  0
     }
 105  
 
 106  
     public Collection<? extends org.apache.myfaces.config.element.Attribute> getAttributes()
 107  
     {
 108  0
         if(_attributes == null)
 109  
         {
 110  0
             return Collections.emptyList();
 111  
         }
 112  
 
 113  0
         return _attributes;
 114  
     }
 115  
 }