javax.management.openmbean
Class ArrayType

java.lang.Object
  |
  +--javax.management.openmbean.OpenType
        |
        +--javax.management.openmbean.ArrayType
All Implemented Interfaces:
java.io.Serializable

public class ArrayType
extends OpenType
implements java.io.Serializable

The ArrayType class is the open type class whose instances describe all open data values which are n-dimensional arrays of open data values

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.management.openmbean.OpenType
ALLOWED_CLASSNAMES
 
Constructor Summary
ArrayType(int dimension, javax.management.openmbean.OpenType elementType)
          Constructs an ArrayType instance describing open data values which are arrays with dimension dimension of elements whose open type is elementType.
 
Method Summary
 boolean equals(java.lang.Object object)
          Check if object is equal with this ArrayType
 int getDimension()
          Returns the Dimension described by this ArrayType
 javax.management.openmbean.OpenType getElementOpenType()
          Returns the OpenType of element values contained in in the arrays described by this ArrayType instance
 int hashCode()
          Compute the hashCode of this ArrayType
 boolean isValue(java.lang.Object object)
          Test whether object is a value for this ArrayType instance.
 java.lang.String toString()
          Format this ArrayType is a String
 
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

ArrayType

public ArrayType(int dimension,
                 javax.management.openmbean.OpenType elementType)
          throws OpenDataException
Constructs an ArrayType instance describing open data values which are arrays with dimension dimension of elements whose open type is elementType.

Parameters:
dimension - The dimension of this ArrayType and should be greater than 0;
elementType - The OpenType element of this ArrayType
Throws:
OpenDataException - if elementType is instance of ArrayType
java.lang.IllegalArgumentException - if dimension is less than or zero
Method Detail

getDimension

public int getDimension()
Returns the Dimension described by this ArrayType

Returns:
int The dimension

getElementOpenType

public javax.management.openmbean.OpenType getElementOpenType()
Returns the OpenType of element values contained in in the arrays described by this ArrayType instance

Returns:
OpenType The OpenType instance

isValue

public boolean isValue(java.lang.Object object)
Test whether object is a value for this ArrayType instance.

Specified by:
isValue in class OpenType
Returns:
boolean True if object is a value

equals

public boolean equals(java.lang.Object object)
Check if object is equal with this ArrayType

Specified by:
equals in class OpenType
Returns:
true If Equal

hashCode

public int hashCode()
Compute the hashCode of this ArrayType

Specified by:
hashCode in class OpenType
Returns:
int The computed hashCode

toString

public java.lang.String toString()
Format this ArrayType is a String

Specified by:
toString in class OpenType
Returns:
String The readable format