|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.openmbean.OpenType javax.management.openmbean.CompositeType
The CompositeType is an OpenType that describes CompositeData.
CompositeData
,
Serialized FormField Summary |
Fields inherited from class javax.management.openmbean.OpenType |
ALLOWED_CLASSNAMES |
Constructor Summary | |
CompositeType(String typeName,
String description,
String[] itemNames,
String[] itemDescriptions,
OpenType[] itemTypes)
Construct a composite type. |
Method Summary | |
boolean |
containsKey(String itemName)
Determine whether this CompositeType contains the itemName |
boolean |
equals(Object obj)
Tests for equality with another composite type |
String |
getDescription(String itemName)
Retrieve the description for an item name |
OpenType |
getType(String itemName)
Retrieve the open type for an item name |
int |
hashCode()
Retrieve the hashCode for this OpenType |
boolean |
isValue(Object obj)
Determines whether the object is a value of the this composite type. |
Set |
keySet()
Retrieve an unmodifiable Set view of all the item names in ascending order. |
String |
toString()
Retrieve a string representation of this open type |
Methods inherited from class javax.management.openmbean.OpenType |
getClassName, getDescription, getTypeName, isArray |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CompositeType(String typeName, String description, String[] itemNames, String[] itemDescriptions, OpenType[] itemTypes) throws OpenDataException
The three arrays are internally copied. Future changes to these arrays do not alter the composite type.
getClassName() returns javax.management.openbean.CompositeData
typeName
- the name of the composite type, cannot be null or
emptydescription
- the human readable description of the composite type,
cannot be null or emptyitemNames
- the names of the items described by this type. Cannot
be null, must contain at least one element, the elements cannot
be null or empty. The order of the items is unimportant when
determining equality.itemDescriptions
- the human readable descriptions of the items
in the same order as the itemNames, cannot be null must have the
same number of elements as the itemNames. The elements cannot
be null or empty.itemTypes
- the OpenTypes of the items in the same order as the
item names, cannot be null must have the
same number of elements as the itemNames. The elements cannot
be null.
OpenDataException
- when itemNames contains a duplicate name.
The names are case sensitive, leading and trailing whitespace
is ignored.
IllegalArgumentException
- when a parameter does not match
what is described above.Method Detail |
public boolean containsKey(String itemName)
itemName
- the item name
public String getDescription(String itemName)
itemName
- the item name
public OpenType getType(String itemName)
itemName
- the item name
public Set keySet()
public boolean isValue(Object obj)
The object must not be null and it must be an instance of javax.management.openbean.CompositeData. The CompositeType of the CompositeData have equality with this CompositeType.
obj
- the object to test
public boolean equals(Object obj)
The type names must be equal.
The item names and types are equal.
obj
- the other composite type to test
public int hashCode()
OpenType
public String toString()
OpenType
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |