Coverage Report - org.apache.myfaces.config.impl.digester.elements.MapEntries
 
Classes in this File Line Coverage Branch Coverage Complexity
MapEntries
0%
0/12
N/A
0
MapEntries$Entry
0%
0/11
N/A
0
 
 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.util.ArrayList;
 22  
 import java.util.List;
 23  
 import java.util.Iterator;
 24  
 
 25  
 
 26  
 /**
 27  
  * @author <a href="mailto:oliver@rossmueller.com">Oliver Rossmueller</a>
 28  
  */
 29  0
 public class MapEntries implements org.apache.myfaces.config.element.MapEntries
 30  
 {
 31  
 
 32  
     private String keyClass;
 33  
     private String valueClass;
 34  0
     private List<Entry> entries = new ArrayList<Entry>();
 35  
 
 36  
 
 37  
     public String getKeyClass()
 38  
     {
 39  0
         return keyClass;
 40  
     }
 41  
 
 42  
 
 43  
     public void setKeyClass(String keyClass)
 44  
     {
 45  0
         this.keyClass = keyClass;
 46  0
     }
 47  
 
 48  
 
 49  
     public String getValueClass()
 50  
     {
 51  0
         return valueClass;
 52  
     }
 53  
 
 54  
 
 55  
     public void setValueClass(String valueClass)
 56  
     {
 57  0
         this.valueClass = valueClass;
 58  0
     }
 59  
 
 60  
     public void addEntry(Entry entry) {
 61  0
         entries.add(entry);
 62  0
     }
 63  
 
 64  
 
 65  
     public Iterator<Entry> getMapEntries()
 66  
     {
 67  0
         return entries.iterator();
 68  
     }
 69  
 
 70  
 
 71  0
     public static class Entry implements org.apache.myfaces.config.element.MapEntry {
 72  
        String key;
 73  0
         boolean nullValue = false;
 74  
         String value;
 75  
 
 76  
 
 77  
         public String getKey()
 78  
         {
 79  0
             return key;
 80  
         }
 81  
 
 82  
 
 83  
         public void setKey(String key)
 84  
         {
 85  0
             this.key = key;
 86  0
         }
 87  
 
 88  
 
 89  
         public boolean isNullValue()
 90  
         {
 91  0
             return nullValue;
 92  
         }
 93  
 
 94  
 
 95  
         public void setNullValue()
 96  
         {
 97  0
             this.nullValue = true;
 98  0
         }
 99  
 
 100  
 
 101  
         public String getValue()
 102  
         {
 103  0
             return value;
 104  
         }
 105  
 
 106  
 
 107  
         public void setValue(String value)
 108  
         {
 109  0
             this.value = value;
 110  0
         }
 111  
     }
 112  
 }