| java.lang.Object javax.management.openmbean.OpenType javax.management.openmbean.CompositeType
Constructor Summary | |
public | CompositeType(String typeName, String description, String[] itemNames, String[] itemDescriptions, OpenType[] itemTypes) The CompositeType class is the open type class whose instances describe the types of CompositeData values
The Java class name of composite data values this composite type represents (ie the class name returned by
the getClassName method) is set to the string value returned by CompositeData.class.getName().
Parameters:<
typeName - The name given to the composite type this instance represents; cannot be a null or empty string
description - The human readable description of the composite type this instance represents; cannot be a null or empty string
itemNames - The n/b>ames of the items contained in the composite data values described by this composite type instance, cannot be null, and should contain at
least one element, no element can be null, or an empty string.
NOTE: the order in which the item names are given is not important to differentiate one CompositeType from another. |
CompositeType | public CompositeType(String typeName, String description, String[] itemNames, String[] itemDescriptions, OpenType[] itemTypes) throws OpenDataException(Code) | | The CompositeType class is the open type class whose instances describe the types of CompositeData values
The Java class name of composite data values this composite type represents (ie the class name returned by
the getClassName method) is set to the string value returned by CompositeData.class.getName().
Parameters:<
typeName - The name given to the composite type this instance represents; cannot be a null or empty string
description - The human readable description of the composite type this instance represents; cannot be a null or empty string
itemNames - The n/b>ames of the items contained in the composite data values described by this composite type instance, cannot be null, and should contain at
least one element, no element can be null, or an empty string.
NOTE: the order in which the item names are given is not important to differentiate one CompositeType from another. The item names are stored internally sorted in
ascending alphanumeric order
itemDescriptions - the descriptions in the same order as the itemNames, same size as itemNames, with no item null or an empty String.
itemTypes - The openType instances, in the same order as itemNames, describing the items contained in the compositeData values described by this instance.
Should be the same size as itemNames and no element can be null.
Throws:
IllegalArgumentException - If typeName or description is a null or empty string, or itemNames or itemDescriptions or itemTypes is null, or any element of
itemNames or itemDescriptions is a null or empty string, or any element of itemTypes is null, or itemNames or itemDescriptions or itemTypes are not of the same size.
OpenDataException - If itemNames contains duplicate item names (case sensitive, but leading and trailing whitespaces removed).
|
containsKey | public boolean containsKey(String itemName)(Code) | | check if the key itemName is present
Parameters: itemName - the name of the key to look for true if the key is present, false otherwise |
equals | public boolean equals(Object object)(Code) | | tests object passed in is equal to the CompositeType instance
Parameters: object - the Object to test if it is equal to this CompositeType instance true if the objects are equal as tested by taking the most significant fields and testing they are equal |
getDescription | public String getDescription(String itemName)(Code) | | Retrieve the description value for the given key
Parameters: itemName - the key the corresponding value |
getType | public OpenType getType(String itemName)(Code) | | Retrieve the OpenType for the given key
Parameters: itemName - the key for which to fetch the openType value OpenType or null if there is no value for the given key, or no matching key |
hashCode | public int hashCode()(Code) | | the calculated hashcode |
isValue | public boolean isValue(Object object)(Code) | | Test whether object is a value which could be described by this CompositeType instance.
Parameters: object - the Object to test if is a value which can be described by this CompositeType instance true if object is a value which can be described by this CompositeType instance, false otherwise. |
keySet | public Set keySet()(Code) | | Retrieve an unmodifiable set of keys
a Set of the keys |
toString | public String toString()(Code) | | human readable representation of this class |
Fields inherited from javax.management.openmbean.OpenType | final public static String[] ALLOWED_CLASSNAMES(Code)(Java Doc)
|
|
|