1 16 package org.springframework.webflow.core.collection; 17 18 import java.util.Collection ; 19 20 import org.springframework.binding.collection.MapAdaptable; 21 22 30 public interface AttributeMap extends MapAdaptable { 31 32 38 public Object get(String attributeName); 39 40 44 public int size(); 45 46 50 public boolean isEmpty(); 51 52 57 public boolean contains(String attributeName); 58 59 68 public boolean contains(String attributeName, Class requiredType) throws IllegalArgumentException ; 69 70 77 public Object get(String attributeName, Object defaultValue); 78 79 87 public Object get(String attributeName, Class requiredType) throws IllegalArgumentException ; 88 89 99 public Object get(String attributeName, Class requiredType, Object defaultValue) throws IllegalStateException ; 100 101 108 public Object getRequired(String attributeName) throws IllegalArgumentException ; 109 110 119 public Object getRequired(String attributeName, Class requiredType) throws IllegalArgumentException ; 120 121 129 public String getString(String attributeName) throws IllegalArgumentException ; 130 131 140 public String getString(String attributeName, String defaultValue) throws IllegalArgumentException ; 141 142 150 public String getRequiredString(String attributeName) throws IllegalArgumentException ; 151 152 159 public Collection getCollection(String attributeName) throws IllegalArgumentException ; 160 161 170 public Collection getCollection(String attributeName, Class requiredType) throws IllegalArgumentException ; 171 172 180 public Collection getRequiredCollection(String attributeName) throws IllegalArgumentException ; 181 182 191 public Collection getRequiredCollection(String attributeName, Class requiredType) throws IllegalArgumentException ; 192 193 202 public Object [] getArray(String attributeName, Class requiredType) throws IllegalArgumentException ; 203 204 213 public Object [] getRequiredArray(String attributeName, Class requiredType) throws IllegalArgumentException ; 214 215 224 public Number getNumber(String attributeName, Class requiredType) throws IllegalArgumentException ; 225 226 235 public Number getNumber(String attributeName, Class requiredType, Number defaultValue) 236 throws IllegalArgumentException ; 237 238 246 public Number getRequiredNumber(String attributeName, Class requiredType) throws IllegalArgumentException ; 247 248 256 public Integer getInteger(String attributeName) throws IllegalArgumentException ; 257 258 267 public Integer getInteger(String attributeName, Integer defaultValue) throws IllegalArgumentException ; 268 269 277 public Integer getRequiredInteger(String attributeName) throws IllegalArgumentException ; 278 279 287 public Long getLong(String attributeName) throws IllegalArgumentException ; 288 289 298 public Long getLong(String attributeName, Long defaultValue) throws IllegalArgumentException ; 299 300 308 public Long getRequiredLong(String attributeName) throws IllegalArgumentException ; 309 310 318 public Boolean getBoolean(String attributeName) throws IllegalArgumentException ; 319 320 329 public Boolean getBoolean(String attributeName, Boolean defaultValue) throws IllegalArgumentException ; 330 331 339 public Boolean getRequiredBoolean(String attributeName) throws IllegalArgumentException ; 340 341 347 public AttributeMap union(AttributeMap attributes); 348 349 } | Popular Tags |