Methods Summary |
---|
private java.lang.Object | actual_get(java.lang.Object key, java.lang.Object def)
Object result = super.get(key);
return (result == null) ? (def) : (result);
|
public java.lang.String | get(java.lang.Object key, java.lang.String def)
return (String) actual_get(key, def);
|
public java.lang.Boolean | get(java.lang.Object key, java.lang.Boolean def)
return (Boolean) actual_get(key, def);
|
public java.lang.Integer | get(java.lang.Object key, int def)
return (Integer) actual_get(key, new Integer(def));
|
public java.lang.Object | get(java.lang.Object key, java.lang.Object def)
return actual_get(key, def);
|
public java.lang.Integer | get(java.lang.Object key, java.lang.Integer def)
return (Integer) actual_get(key, def);
|
public java.lang.Boolean | getBoolean(java.lang.Object key)
return getBoolean(key, null);
|
public java.lang.Boolean | getBoolean(java.lang.Object key, java.lang.Boolean def)
try
{
return (Boolean) actual_get(key, def);
}
catch (ClassCastException e)
{
return null;
}
|
public byte[] | getByteArray(java.lang.Object key)
return getByteArray(key, null);
|
public byte[] | getByteArray(java.lang.Object key, byte[] def)
try
{
return (byte[]) actual_get(key, def);
}
catch (ClassCastException e)
{
return null;
}
|
public java.util.Date | getDate(java.lang.Object key)
return getDate(key, null);
|
public java.util.Date | getDate(java.lang.Object key, java.util.Date def)
try
{
return (Date) actual_get(key, def);
}
catch (ClassCastException e)
{
return null;
}
|
public java.lang.Double | getDouble(java.lang.Object key)
return getDouble(key, null);
|
public java.lang.Double | getDouble(java.lang.Object key, java.lang.Double def)
try
{
return (Double) actual_get(key, def);
}
catch (ClassCastException e)
{
return null;
}
|
public java.io.File | getFile(java.lang.Object key)
return getFile(key, null);
|
public java.io.File | getFile(java.lang.Object key, java.io.File def)
try
{
return (File) actual_get(key, def);
}
catch (ClassCastException e)
{
return null;
}
|
public java.lang.Float | getFloat(java.lang.Object key)
return getFloat(key, null);
|
public java.lang.Float | getFloat(java.lang.Object key, java.lang.Float def)
try
{
return (Float) actual_get(key, def);
}
catch (ClassCastException e)
{
return null;
}
|
public java.lang.Integer | getInteger(java.lang.Object key)
return getInteger(key, null);
|
public java.lang.Integer | getInteger(java.lang.Object key, java.lang.Integer def)
try
{
return (Integer) actual_get(key, def);
}
catch (ClassCastException e)
{
return null;
}
|
public java.util.Map | getMap(java.lang.Object key)
return getMap(key, null);
|
public java.util.Map | getMap(java.lang.Object key, java.util.Map def)
try
{
return (Map) actual_get(key, def);
}
catch (ClassCastException e)
{
return null;
}
|
public java.lang.Number | getNumber(java.lang.Object key)
return getNumber(key, null);
|
public java.lang.Number | getNumber(java.lang.Object key, java.lang.Number def)
try
{
return (Number) actual_get(key, def);
}
catch (ClassCastException e)
{
return null;
}
|
public final java.lang.Object | getRequired(java.lang.Object key)
Object result = actual_get(key, null);
if (result == null)
throw new Exception("missing: " + key);
return result;
|
public final java.lang.Boolean | getRequiredBoolean(java.lang.Object key)
Boolean result = getBoolean(key);
if (result == null)
throw new Exception("missing: " + key);
return result;
|
public final java.lang.Number | getRequiredNumber(java.lang.Object key)
Number result = getNumber(key);
if (result == null)
throw new Exception("missing: " + key);
return result;
|
public final java.lang.String | getRequiredString(java.lang.Object key)
String result = getString(key);
if (result == null)
throw new Exception("missing: " + key);
return result;
|
public java.lang.String | getString(java.lang.Object key)
return getString(key, null);
|
public java.lang.String | getString(java.lang.Object key, java.lang.String def)
try
{
return (String) actual_get(key, def);
}
catch (ClassCastException e)
{
return null;
}
|
public java.util.Vector | getVector(java.lang.Object key)
return getVector(key, null);
|
public java.util.Vector | getVector(java.lang.Object key, java.util.Vector def)
try
{
return (Vector) actual_get(key, def);
}
catch (ClassCastException e)
{
return null;
}
|
public final java.lang.Object | put(java.lang.Object key, long value)
return put(key, new Long(value));
|
public final java.lang.Object | put(java.lang.Object key, int value)
return put(key, new Integer(value));
|
public final java.lang.Object | put(java.lang.Object key, boolean value)
return put(key, new Boolean(value));
|
public final java.lang.Object | put(java.lang.Object key, char value)
return put(key, new Character(value));
|
public final java.lang.Object | put(java.lang.Object key, double value)
return put(key, new Double(value));
|
public final java.lang.Object | put(java.lang.Object key, float value)
return put(key, new Float(value));
|
public final java.lang.Object | put(java.lang.Object key, byte value)
return put(key, new Byte(value));
|
public final java.lang.Object | put(java.lang.Object key, short value)
return put(key, new Short(value));
|
public final java.lang.Object | put(java.lang.Object key, java.lang.Object value)
if ((key != null) && (value != null))
return super.put(key, value);
super.remove(key);
return null;
// return super.get(key);
|