javax.management.openmbean
Class ArrayType

java.lang.Object
  extended byjavax.management.openmbean.OpenType (src) 
      extended byjavax.management.openmbean.ArrayType
All Implemented Interfaces:
java.io.Serializable

public class ArrayType
extends OpenType (src)
implements java.io.Serializable

Array types.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.management.openmbean.OpenType (src)
ALLOWED_CLASSNAMES
 
Constructor Summary
ArrayType(int dimension, OpenType (src)  elementType)
          Construct an ArrayType.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares two object types for equality
 int getDimension()
          Get the dimension of the array
 OpenType (src) getElementOpenType()
          Get the open type of the array elements
 int hashCode()
          Retrieve the hashCode for this OpenType
 boolean isValue(java.lang.Object obj)
          Whether the passed value is one of those described by this open type.
 java.lang.String toString()
          Retrieve a string representation of this open type
 
Methods inherited from class javax.management.openmbean.OpenType (src)
getClassName, getDescription, getTypeName, isArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayType

public ArrayType(int dimension,
                 OpenType (src)  elementType)
          throws OpenDataException (src) 
Construct an ArrayType.

Parameters:
dimension - the number of dimensions in the array
elementType - the open type of the array elements
Throws:
OpenDataException (src) - when open type is an ArrayType
java.lang.IllegalArgumentException - for a null argument or non-negative dimension
Method Detail

getDimension

public int getDimension()
Get the dimension of the array

Returns:
the dimension

getElementOpenType

public OpenType (src)  getElementOpenType()
Get the open type of the array elements

Returns:
the element type

isValue

public boolean isValue(java.lang.Object obj)
Description copied from class: OpenType (src)
Whether the passed value is one of those described by this open type.

Specified by:
isValue in class OpenType (src)
Parameters:
obj - the object to test
Returns:
true when it is value for this open type, false otherwise

equals

public boolean equals(java.lang.Object obj)
Description copied from class: OpenType (src)
Compares two object types for equality

Specified by:
equals in class OpenType (src)
Returns:
obj the object to test with this one

hashCode

public int hashCode()
Description copied from class: OpenType (src)
Retrieve the hashCode for this OpenType

Specified by:
hashCode in class OpenType (src)
Returns:
the hash code

toString

public java.lang.String toString()
Description copied from class: OpenType (src)
Retrieve a string representation of this open type

Specified by:
toString in class OpenType (src)
Returns:
the string representation