1 16 package org.springframework.webflow.core.collection; 17 18 import org.springframework.binding.collection.MapAdaptable; 19 import org.springframework.binding.convert.ConversionException; 20 import org.springframework.web.multipart.MultipartFile; 21 22 28 public interface ParameterMap extends MapAdaptable { 29 30 34 public boolean isEmpty(); 35 36 40 public int size(); 41 42 47 public boolean contains(String parameterName); 48 49 55 public String get(String parameterName); 56 57 63 public String get(String parameterName, String defaultValue); 64 65 72 public String [] getArray(String parameterName); 73 74 82 public Object [] getArray(String parameterName, Class targetElementType) throws ConversionException; 83 84 92 public Object get(String parameterName, Class targetType) throws ConversionException; 93 94 103 public Object get(String parameterName, Class targetType, Object defaultValue) throws ConversionException; 104 105 111 public String getRequired(String parameterName) throws IllegalArgumentException ; 112 113 119 public String [] getRequiredArray(String parameterName) throws IllegalArgumentException ; 120 121 129 public Object [] getRequiredArray(String parameterName, Class targetElementType) throws IllegalArgumentException , 130 ConversionException; 131 132 140 public Object getRequired(String parameterName, Class targetType) throws IllegalArgumentException , 141 ConversionException; 142 143 151 public Number getNumber(String parameterName, Class targetType) throws ConversionException; 152 153 161 public Number getNumber(String parameterName, Class targetType, Number defaultValue) throws ConversionException; 162 163 171 public Number getRequiredNumber(String parameterName, Class targetType) throws IllegalArgumentException , 172 ConversionException; 173 174 181 public Integer getInteger(String parameterName) throws ConversionException; 182 183 191 public Integer getInteger(String parameterName, Integer defaultValue) throws ConversionException; 192 193 201 public Integer getRequiredInteger(String parameterName) throws IllegalArgumentException , ConversionException; 202 203 210 public Long getLong(String parameterName) throws ConversionException; 211 212 220 public Long getLong(String parameterName, Long defaultValue) throws ConversionException; 221 222 230 public Long getRequiredLong(String parameterName) throws IllegalArgumentException , ConversionException; 231 232 239 public Boolean getBoolean(String parameterName) throws ConversionException; 240 241 249 public Boolean getBoolean(String parameterName, Boolean defaultValue) throws ConversionException; 250 251 259 public Boolean getRequiredBoolean(String parameterName) throws IllegalArgumentException , ConversionException; 260 261 267 public MultipartFile getMultipartFile(String parameterName); 268 269 275 public MultipartFile getRequiredMultipartFile(String parameterName); 276 277 281 public AttributeMap asAttributeMap(); 282 283 } | Popular Tags |