|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Dictionary<K,V> java.util.Hashtable ie.ncl.msg.Attributes
public class Attributes
The Attributes object (or attribute set) is used to
group a set of attribute name and value pairs.
Each attribute has a unique name. Its value
can be any object type.
An interface defining message attribute names should extend the
AttributesName interface.
AttributeNames
,
Serialized FormConstructor Summary | |
---|---|
Attributes()
Create an empty set of message properties. |
|
Attributes(java.util.Hashtable hashtable)
Create a set of attributes initilized with the values from the hashtable paramater. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clone this Attributes object. |
boolean |
contains(Attributes other)
Check that this set of attributes contains the 'other' set of attribute AND the values of the other set match this one. |
Attributes |
copy()
|
java.lang.Object |
get(java.lang.String name)
Get the Object value of an attribute as specified by its unique name. |
boolean |
getBoolean(java.lang.String name)
Get the boolean value of an attribute as specified by its unique name. |
java.util.Date |
getDate(java.lang.String name)
Get the Date value of an attribute as specified by its unique name. |
int |
getInt(java.lang.String name)
Get the int value of an attribute as specified by its unique name. |
java.lang.String |
getString(java.lang.String name)
Get the String value of an attribute as specified by its unique name. |
void |
merge(Attributes other)
Merge this set of attributes with the 'other' set. |
void |
put(java.lang.String name,
boolean value)
Add an attribute with a boolean value to the set of attributes. |
void |
put(java.lang.String name,
java.util.Date value)
Add an attribute with a Date value to the set of attributes. |
void |
put(java.lang.String name,
int value)
Add an attribute with a int value to the set of attributes. |
void |
put(java.lang.String name,
java.lang.Object value)
Add an attribute with an Object value to the set of attributes. |
void |
put(java.lang.String name,
java.lang.String value)
Add an attribute with a String value to the set of attributes. |
java.lang.Object |
remove(java.lang.String name)
Remove an Object attribute as specified by its unique name. |
java.lang.String |
toString()
This string representation of name/value pairs, each on a new line. |
Methods inherited from class java.util.Hashtable |
---|
clear, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, values |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Attributes()
public Attributes(java.util.Hashtable hashtable)
Method Detail |
---|
public void put(java.lang.String name, java.lang.String value)
public void put(java.lang.String name, java.util.Date value)
public void put(java.lang.String name, int value)
public void put(java.lang.String name, boolean value)
public void put(java.lang.String name, java.lang.Object value)
public java.lang.String getString(java.lang.String name)
public java.util.Date getDate(java.lang.String name)
public int getInt(java.lang.String name)
public boolean getBoolean(java.lang.String name)
public java.lang.Object get(java.lang.String name)
public java.lang.Object remove(java.lang.String name)
public boolean contains(Attributes other)
public void merge(Attributes other)
public java.lang.String toString()
toString
in class java.util.Hashtable
public java.lang.Object clone()
clone
in class java.util.Hashtable
public Attributes copy()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |