|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.management.openmbean.CompositeDataSupport
An implementation of CompositeData.
| Constructor Summary | |
CompositeDataSupport(CompositeType compositeType,
Map items)
Construct Composite Data |
|
CompositeDataSupport(CompositeType compositeType,
String[] itemNames,
Object[] itemValues)
Construct Composite Data |
|
| Method Summary | |
boolean |
containsKey(String key)
Tests whether a key is part of this composite data |
boolean |
containsValue(Object value)
Tests whether a item exists with the passed value |
boolean |
equals(Object obj)
Tests whether two composite data objects are equal |
Object |
get(String key)
Retrieve the value for the item with the passed key |
Object[] |
getAll(String[] keys)
Retrieve the arrray of values for the item with the passed keys |
CompositeType |
getCompositeType()
Retrieve the composite type for this composite data |
int |
hashCode()
Generates a hashcode for the implementation. |
String |
toString()
A string representation of the open mbean operation info. |
void |
validateKey(String key)
Validates the key against the composite type |
Collection |
values()
The values of this composite data |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CompositeDataSupport(CompositeType compositeType, String[] itemNames, Object[] itemValues) throws OpenDataException
compositeType - the composite type of the dataitemNames - the names of the valuesitemValues - the values
IllegalArgumentException - for a null or empty argument
OpenDataException - when the items do not match the
CompositeTypepublic CompositeDataSupport(CompositeType compositeType, Map items) throws OpenDataException
compositeType - the composite type of the dataitems - map of strings to values
IllegalArgumentException - for a null or empty argument
OpenDataException - when the items do not match the
CompositeType
ArrayStoreException - when a key to the map is not a String| Method Detail |
public CompositeType getCompositeType()
CompositeData
getCompositeType in interface CompositeDatapublic Object get(String key)
CompositeData
get in interface CompositeDatapublic Object[] getAll(String[] keys)
CompositeData
getAll in interface CompositeDatapublic boolean containsKey(String key)
CompositeData
containsKey in interface CompositeDatapublic boolean containsValue(Object value)
CompositeData
containsValue in interface CompositeDatapublic Collection values()
CompositeDataAn iterator over the returned collection returns result in ascending lexicographic order
values in interface CompositeDatapublic boolean equals(Object obj)
CompositeData
The object is non-null
The object implements this interface
The composite types are equal
The values are equal
equals in interface CompositeDatapublic int hashCode()
CompositeDataThe sum of the hashCodes for the elements mentioned in the equals method
hashCode in interface CompositeDatapublic String toString()
CompositeDataIt is made up of implementation class and the values mentioned in the equals method
toString in interface CompositeDatapublic void validateKey(String key) throws InvalidKeyException
key - the key to check
IllegalArgumentException - for a null or empty key
InvalidKeyException - if the key not a valid item name for the composite type
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||