1 16 package org.apache.myfaces.config.impl.digester.elements; 17 18 import java.util.ArrayList ; 19 import java.util.List ; 20 import java.util.Iterator ; 21 22 23 26 public class MapEntries implements org.apache.myfaces.config.element.MapEntries 27 { 28 29 private String keyClass; 30 private String valueClass; 31 private List entries = new ArrayList (); 32 33 34 public String getKeyClass() 35 { 36 return keyClass; 37 } 38 39 40 public void setKeyClass(String keyClass) 41 { 42 this.keyClass = keyClass; 43 } 44 45 46 public String getValueClass() 47 { 48 return valueClass; 49 } 50 51 52 public void setValueClass(String valueClass) 53 { 54 this.valueClass = valueClass; 55 } 56 57 public void addEntry(Entry entry) { 58 entries.add(entry); 59 } 60 61 62 public Iterator getMapEntries() 63 { 64 return entries.iterator(); 65 } 66 67 68 public static class Entry implements org.apache.myfaces.config.element.MapEntry { 69 String key; 70 boolean nullValue = false; 71 String value; 72 73 74 public String getKey() 75 { 76 return key; 77 } 78 79 80 public void setKey(String key) 81 { 82 this.key = key; 83 } 84 85 86 public boolean isNullValue() 87 { 88 return nullValue; 89 } 90 91 92 public void setNullValue() 93 { 94 this.nullValue = true; 95 } 96 97 98 public String getValue() 99 { 100 return value; 101 } 102 103 104 public void setValue(String value) 105 { 106 this.value = value; 107 } 108 } 109 } 110 | Popular Tags |