|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.latencybusters.lbm.LBMMessageProperties
public class LBMMessageProperties
Constructor Summary | |
---|---|
LBMMessageProperties()
Create an LBMMessageProperties object, used to associate properties with an outgoing message |
Method Summary | |
---|---|
void |
clear()
Clear all properties from this object. |
void |
clear(java.lang.String key)
Clear the property with the specified key from this object. |
boolean |
containsKey(java.lang.String key)
Test if the specified key is contained in the properties object. |
java.util.Enumeration |
elements()
Returns an enumeration of all LBMMessageProperty objects contained in this collection. |
boolean |
getBoolean(java.lang.String key)
Get the property with the specified key as a boolean. |
byte |
getByte(java.lang.String key)
Get the property with the specified key as a byte. |
double |
getDouble(java.lang.String key)
Get the property with the specified key as a double. |
float |
getFloat(java.lang.String key)
Get the property with the specified key as a float. |
int |
getInteger(java.lang.String key)
Get the property with the specified key as a integer. |
long |
getLong(java.lang.String key)
Get the property with the specified key as a long. |
java.lang.Object |
getObject(java.lang.String key)
Get the property with the specified key as an object. |
short |
getShort(java.lang.String key)
Get the property with the specified key as a short. |
java.lang.String |
getString(java.lang.String key)
Get the property with the specified key as a string. |
java.util.Iterator<LBMMessageProperty> |
iterator()
Returns an iterator over all LBMMessageProperty objects contained in this collection. |
void |
set(java.lang.String key,
boolean value)
Set a property to the provided boolean value. |
void |
set(java.lang.String key,
byte value)
Set a property to the provided byte value. |
void |
set(java.lang.String key,
double value)
Set a property to the provided double value. |
void |
set(java.lang.String key,
float value)
Set a property to the provided float value. |
void |
set(java.lang.String key,
int value)
Set a property to the provided int value. |
void |
set(java.lang.String key,
long value)
Set a property to the provided long value. |
void |
set(java.lang.String key,
java.lang.Object value)
Set a property to the provided object value. |
void |
set(java.lang.String key,
short value)
Set a property to the provided short value. |
void |
set(java.lang.String key,
java.lang.String value)
Set a property to the provided string value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LBMMessageProperties()
Method Detail |
---|
public java.util.Iterator<LBMMessageProperty> iterator()
iterator
in interface java.lang.Iterable<LBMMessageProperty>
public java.util.Enumeration elements()
public void clear()
public void clear(java.lang.String key)
public void set(java.lang.String key, byte value)
key
- The name of the property to be setvalue
- The value to be setpublic void set(java.lang.String key, short value)
key
- The name of the property to be setvalue
- The value to be setpublic void set(java.lang.String key, int value)
key
- The name of the property to be setvalue
- The value to be setpublic void set(java.lang.String key, long value)
key
- The name of the property to be setvalue
- The value to be setpublic void set(java.lang.String key, float value)
key
- The name of the property to be setvalue
- The value to be setpublic void set(java.lang.String key, double value)
key
- The name of the property to be setvalue
- The value to be setpublic void set(java.lang.String key, boolean value)
key
- The name of the property to be setvalue
- The value to be setpublic void set(java.lang.String key, java.lang.String value)
key
- The name of the property to be setvalue
- The value to be setpublic void set(java.lang.String key, java.lang.Object value) throws LBMEInvalException
key
- The name of the property to be setvalue
- The value to be set
LBMEInvalException
public boolean containsKey(java.lang.String key)
key
- The name of the property
public boolean getBoolean(java.lang.String key) throws LBMEInvalException, java.lang.IllegalArgumentException
key
- The name of the property
java.lang.IllegalArgumentException
- if the key is not set.
LBMEInvalException
- if the value is a String, and cannot be converted to a boolean,
or if the value cannot be converted to a boolean.public byte getByte(java.lang.String key) throws LBMEInvalException, java.lang.IllegalArgumentException
key
- The name of the property
java.lang.IllegalArgumentException
- if the key is not set.
LBMEInvalException
- if the value is a String, and cannot be converted to a byte,
or if the value cannot be converted to a byte.public short getShort(java.lang.String key) throws LBMEInvalException, java.lang.IllegalArgumentException
key
- The name of the property
java.lang.IllegalArgumentException
- if the key is not set.
LBMEInvalException
- if the value is a String, and cannot be converted to a short,
or if the value cannot be converted to a short.public int getInteger(java.lang.String key) throws LBMEInvalException, java.lang.IllegalArgumentException
key
- The name of the property
java.lang.IllegalArgumentException
- if the key is not set.
LBMEInvalException
- if the value is a String, and cannot be converted to a integer,
or if the value cannot be converted to a integer.public long getLong(java.lang.String key) throws LBMEInvalException, java.lang.IllegalArgumentException
key
- The name of the property
java.lang.IllegalArgumentException
- if the key is not set.
LBMEInvalException
- if the value is a String, and cannot be converted to a long,
or if the value cannot be converted to a long.public float getFloat(java.lang.String key) throws LBMEInvalException, java.lang.IllegalArgumentException
key
- The name of the property
java.lang.IllegalArgumentException
- if the key is not set.
LBMEInvalException
- if the value is a String, and cannot be converted to a float,
or if the value cannot be converted to a float.public double getDouble(java.lang.String key) throws LBMEInvalException, java.lang.IllegalArgumentException
key
- The name of the property
java.lang.IllegalArgumentException
- if the key is not set.
LBMEInvalException
- if the value is a String, and cannot be converted to a double,
or if the value cannot be converted to a double.public java.lang.String getString(java.lang.String key) throws LBMEInvalException, java.lang.IllegalArgumentException
key
- The name of the property
java.lang.IllegalArgumentException
- if the key is not set.
LBMEInvalException
- if the property cannot be converted to a string.public java.lang.Object getObject(java.lang.String key) throws java.lang.IllegalArgumentException
key
- The name of the property
java.lang.IllegalArgumentException
- if the key is not set.
LBMEInvalException
- if the property cannot be converted to a string.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |