org.jboss.jms.util
Class JMSMap
java.lang.Object
org.jboss.jms.util.JMSMap
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- MessageProperties (src)
- public class JMSMap
- extends java.lang.Object
- implements java.io.Serializable
JMS specific map backed by a HashMap
. Does not implement
Map
but instead implements the body elements of the
MapMessage
(src) . Serves as he basis for MessageProperties
(src)
and the body for the MapMessage
.
- See Also:
- Serialized Form
Field Summary |
protected java.util.HashMap |
contents
|
Method Summary |
void |
clear()
|
static JMSMap (src) |
createInstance(java.lang.Class type)
|
boolean |
getBoolean(java.lang.String name)
|
byte |
getByte(java.lang.String name)
|
byte[] |
getBytes(java.lang.String name)
|
char |
getChar(java.lang.String name)
|
double |
getDouble(java.lang.String name)
|
float |
getFloat(java.lang.String name)
|
int |
getInt(java.lang.String name)
|
long |
getLong(java.lang.String name)
|
java.util.Enumeration |
getMapNames()
|
java.lang.Object |
getObject(java.lang.String name)
|
short |
getShort(java.lang.String name)
|
java.lang.String |
getString(java.lang.String name)
|
boolean |
itemExists(java.lang.String name)
|
void |
setBoolean(java.lang.String name,
boolean value)
|
void |
setByte(java.lang.String name,
byte value)
|
void |
setBytes(java.lang.String name,
byte[] value)
|
void |
setBytes(java.lang.String name,
byte[] value,
int offset,
int length)
|
void |
setChar(java.lang.String name,
char value)
|
void |
setDouble(java.lang.String name,
double value)
|
void |
setFloat(java.lang.String name,
float value)
|
void |
setInt(java.lang.String name,
int value)
|
void |
setLong(java.lang.String name,
long value)
|
void |
setObject(java.lang.String name,
java.lang.Object value)
|
void |
setShort(java.lang.String name,
short value)
|
void |
setString(java.lang.String name,
java.lang.String value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
contents
protected java.util.HashMap contents
JMSMap
public JMSMap()
createInstance
public static final JMSMap (src) createInstance(java.lang.Class type)
clear
public final void clear()
getBoolean
public boolean getBoolean(java.lang.String name)
throws JMSException (src)
- Throws:
JMSException (src)
getByte
public byte getByte(java.lang.String name)
throws JMSException (src)
- Throws:
JMSException (src)
getBytes
public byte[] getBytes(java.lang.String name)
throws JMSException (src)
- Throws:
JMSException (src)
getChar
public char getChar(java.lang.String name)
throws JMSException (src)
- Throws:
JMSException (src)
getDouble
public double getDouble(java.lang.String name)
throws JMSException (src)
- Throws:
JMSException (src)
getFloat
public float getFloat(java.lang.String name)
throws JMSException (src)
- Throws:
JMSException (src)
getInt
public int getInt(java.lang.String name)
throws JMSException (src)
- Throws:
JMSException (src)
getLong
public long getLong(java.lang.String name)
throws JMSException (src)
- Throws:
JMSException (src)
getMapNames
public java.util.Enumeration getMapNames()
throws JMSException (src)
- Throws:
JMSException (src)
getObject
public java.lang.Object getObject(java.lang.String name)
throws JMSException (src)
- Throws:
JMSException (src)
getShort
public short getShort(java.lang.String name)
throws JMSException (src)
- Throws:
JMSException (src)
getString
public java.lang.String getString(java.lang.String name)
throws JMSException (src)
- Throws:
JMSException (src)
itemExists
public boolean itemExists(java.lang.String name)
setBoolean
public void setBoolean(java.lang.String name,
boolean value)
throws JMSException (src)
- Throws:
JMSException (src)
setByte
public void setByte(java.lang.String name,
byte value)
throws JMSException (src)
- Throws:
JMSException (src)
setBytes
public void setBytes(java.lang.String name,
byte[] value)
throws JMSException (src)
- Throws:
JMSException (src)
setBytes
public void setBytes(java.lang.String name,
byte[] value,
int offset,
int length)
throws JMSException (src)
- Throws:
JMSException (src)
setChar
public void setChar(java.lang.String name,
char value)
throws JMSException (src)
- Throws:
JMSException (src)
setDouble
public void setDouble(java.lang.String name,
double value)
throws JMSException (src)
- Throws:
JMSException (src)
setFloat
public void setFloat(java.lang.String name,
float value)
throws JMSException (src)
- Throws:
JMSException (src)
setInt
public void setInt(java.lang.String name,
int value)
throws JMSException (src)
- Throws:
JMSException (src)
setLong
public void setLong(java.lang.String name,
long value)
throws JMSException (src)
- Throws:
JMSException (src)
setObject
public void setObject(java.lang.String name,
java.lang.Object value)
throws JMSException (src)
- Throws:
JMSException (src)
setShort
public void setShort(java.lang.String name,
short value)
throws JMSException (src)
- Throws:
JMSException (src)
setString
public void setString(java.lang.String name,
java.lang.String value)
throws JMSException (src)
- Throws:
JMSException (src)