1 64 65 package com.jcorporate.expresso.core.misc.upload; 66 67 import java.io.UnsupportedEncodingException ; 68 import java.math.BigDecimal ; 69 import java.util.Enumeration ; 70 71 72 89 public interface ValueParser { 90 91 95 public static final String URL_CASE_FOLDING = "url.case.folding"; 96 public static final String URL_CASE_FOLDING_NONE = "none"; 97 public static final String URL_CASE_FOLDING_LOWER = "lower"; 98 public static final String URL_CASE_FOLDING_UPPER = "upper"; 99 100 103 public void clear(); 104 105 108 public void setCharacterEncoding(String s); 109 110 113 public String getCharacterEncoding(); 114 115 123 public String convert(String value); 124 125 131 public void add(String name, double value); 132 133 139 public void add(String name, int value); 140 141 147 public void add(String name, Integer value); 148 149 155 public void add(String name, long value); 156 157 163 public void add(String name, String value); 164 165 173 public void append(String name, String value); 174 175 182 public Object remove(String name); 183 184 192 public boolean containsKey(Object key); 193 194 205 public Enumeration keys(); 206 207 216 public Object [] getKeys(); 217 218 226 public boolean getBoolean(String name, boolean defaultValue); 227 228 235 public boolean getBoolean(String name); 236 237 245 public Boolean getBool(String name, boolean defaultValue); 246 247 254 public Boolean getBool(String name); 255 256 264 public double getDouble(String name, double defaultValue); 265 266 273 public double getDouble(String name); 274 275 283 public float getFloat(String name, float defaultValue); 284 285 292 public float getFloat(String name); 293 294 302 public BigDecimal getBigDecimal(String name, BigDecimal defaultValue); 303 304 311 public BigDecimal getBigDecimal(String name); 312 313 320 public BigDecimal [] getBigDecimals(String name); 321 322 330 public int getInt(String name, int defaultValue); 331 332 339 public int getInt(String name); 340 341 349 public Integer getInteger(String name, int defaultValue); 350 351 360 public Integer getInteger(String name, Integer def); 361 362 369 public Integer getInteger(String name); 370 371 378 public int[] getInts(String name); 379 380 387 public Integer [] getIntegers(String name); 388 389 397 public long getLong(String name, long defaultValue); 398 399 406 public long getLong(String name); 407 408 415 public long[] getLongs(String name); 416 417 424 public Long [] getLongObjects(String name); 425 426 434 public byte getByte(String name, byte defaultValue); 435 436 443 public byte getByte(String name); 444 445 453 public byte[] getBytes(String name) 454 throws UnsupportedEncodingException ; 455 456 463 public String getString(String name); 464 465 477 public String get(String name); 478 479 487 public String getString(String name, String defaultValue); 488 489 498 public void setString(String name, String value); 499 500 507 public String [] getStrings(String name); 508 509 517 public String [] getStrings(String name, String [] defaultValue); 518 519 528 public void setStrings(String name, String [] values); 529 530 537 public Object getObject(String name); 538 539 546 public Object [] getObjects(String name); 547 548 556 public void setProperties(Object bean) 557 throws Exception ; 558 559 565 public String toString(); 566 567 } | Popular Tags |