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 ListEntries implements org.apache.myfaces.config.element.ListEntries 27 { 28 29 private String valueClass; 30 private List entries = new ArrayList (); 31 32 33 public String getValueClass() 34 { 35 return valueClass; 36 } 37 38 39 public void setValueClass(String valueClass) 40 { 41 this.valueClass = valueClass; 42 } 43 44 45 46 public void addEntry(Entry entry) 47 { 48 entries.add(entry); 49 } 50 51 52 public Iterator getListEntries() 53 { 54 return entries.iterator(); 55 } 56 57 58 public static class Entry implements org.apache.myfaces.config.element.ListEntry { 59 private boolean nullValue; 60 private String value; 61 62 63 public boolean isNullValue() 64 { 65 return nullValue; 66 } 67 68 69 public void setNullValue() 70 { 71 this.nullValue = true; 72 } 73 74 75 public String getValue() 76 { 77 return value; 78 } 79 80 81 public void setValue(String value) 82 { 83 this.value = value; 84 } 85 } 86 } 87 | Popular Tags |