org.apache.axis2.transport.jms
Class MapUtils

java.lang.Object
  extended byorg.apache.axis2.transport.jms.MapUtils

public class MapUtils
extends Object

MapUtils provides convenience methods for accessing a java.util.Map


Constructor Summary
MapUtils()
           
 
Method Summary
static boolean removeBooleanProperty(Map properties, String key, boolean defaultValue)
          Returns a boolean property from a Map and removes it.
static int removeIntProperty(Map properties, String key, int defaultValue)
          Returns an int property from a Map and removes it.
static long removeLongProperty(Map properties, String key, long defaultValue)
          Returns a long property from a Map and removes it.
static Object removeObjectProperty(Map properties, String key, Object defaultValue)
          Returns an Object property from a Map and removes it.
static String removeStringProperty(Map properties, String key, String defaultValue)
          Returns a String property from a Map and removes it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapUtils

public MapUtils()
Method Detail

removeBooleanProperty

public static boolean removeBooleanProperty(Map properties,
                                            String key,
                                            boolean defaultValue)
Returns a boolean property from a Map and removes it.

Parameters:
properties -
key -
defaultValue -
Returns:
old value

removeIntProperty

public static int removeIntProperty(Map properties,
                                    String key,
                                    int defaultValue)
Returns an int property from a Map and removes it.

Parameters:
properties -
key -
defaultValue -
Returns:
old value

removeLongProperty

public static long removeLongProperty(Map properties,
                                      String key,
                                      long defaultValue)
Returns a long property from a Map and removes it.

Parameters:
properties -
key -
defaultValue -
Returns:
old value

removeObjectProperty

public static Object removeObjectProperty(Map properties,
                                          String key,
                                          Object defaultValue)
Returns an Object property from a Map and removes it.

Parameters:
properties -
key -
defaultValue -
Returns:
old value

removeStringProperty

public static String removeStringProperty(Map properties,
                                          String key,
                                          String defaultValue)
Returns a String property from a Map and removes it.

Parameters:
properties -
key -
defaultValue -
Returns:
old value