1 4 package org.apache.myfaces.config.impl.digester.elements; 5 6 import java.util.List ; 7 import java.util.ArrayList ; 8 import java.util.Iterator ; 9 import java.util.Collections ; 10 11 31 public class Property 32 { 33 private List _description; 34 private List _displayName; 35 private List _icon; 36 private String _propertyName; 37 private String _propertyClass; 38 private String _defaultValue; 39 private String _suggestedValue; 40 private List _propertyExtension; 41 42 43 public void addDescription(String value) 44 { 45 if(_description == null) 46 _description = new ArrayList (); 47 48 _description.add(value); 49 } 50 51 public Iterator getDescriptions() 52 { 53 if(_description==null) 54 return Collections.EMPTY_LIST.iterator(); 55 56 return _description.iterator(); 57 } 58 59 public void addDisplayName(String value) 60 { 61 if(_displayName == null) 62 _displayName = new ArrayList (); 63 64 _displayName.add(value); 65 } 66 67 public Iterator getDisplayNames() 68 { 69 if(_displayName==null) 70 return Collections.EMPTY_LIST.iterator(); 71 72 return _displayName.iterator(); 73 } 74 75 public void addIcon(String value) 76 { 77 if(_icon == null) 78 _icon = new ArrayList (); 79 80 _icon.add(value); 81 } 82 83 public Iterator getIcons() 84 { 85 if(_icon==null) 86 return Collections.EMPTY_LIST.iterator(); 87 88 return _icon.iterator(); 89 } 90 91 public void setPropertyName(String propertyName) 92 { 93 _propertyName = propertyName; 94 } 95 96 public String getPropertyName() 97 { 98 return _propertyName; 99 } 100 101 public void setPropertyClass(String propertyClass) 102 { 103 _propertyClass = propertyClass; 104 } 105 106 public String getPropertyClass() 107 { 108 return _propertyClass; 109 } 110 111 public void setDefaultValue(String defaultValue) 112 { 113 _defaultValue = defaultValue; 114 } 115 116 public String getDefaultValue() 117 { 118 return _defaultValue; 119 } 120 121 public void setSuggestedValue(String suggestedValue) 122 { 123 _suggestedValue = suggestedValue; 124 } 125 126 public String getSuggestedValue() 127 { 128 return _suggestedValue; 129 } 130 131 public void addPropertyExtension(String propertyExtension) 132 { 133 if(_propertyExtension == null) 134 _propertyExtension = new ArrayList (); 135 136 _propertyExtension.add(propertyExtension); 137 } 138 139 public Iterator getPropertyExtensions() 140 { 141 if(_propertyExtension==null) 142 return Collections.EMPTY_LIST.iterator(); 143 144 return _propertyExtension.iterator(); 145 } 146 147 } 148 | Popular Tags |