javax.management.openmbean
Class ArrayType

java.lang.Object
  extended byjavax.management.openmbean.OpenType
      extended byjavax.management.openmbean.ArrayType
All Implemented Interfaces:
Serializable

public class ArrayType
extends OpenType

Array types.

Version:
$Revision: 1.1.2.2 $
Author:
Adrian Brock
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.management.openmbean.OpenType
ALLOWED_CLASSNAMES
 
Constructor Summary
ArrayType(int dimension, OpenType elementType)
          Construct an ArrayType.
 
Method Summary
 boolean equals(Object obj)
          Compares two object types for equality
 int getDimension()
          Get the dimension of the array
 OpenType getElementOpenType()
          Get the open type of the array elements
 int hashCode()
          Retrieve the hashCode for this OpenType
 boolean isValue(Object obj)
          Whether the passed value is one of those described by this open type.
 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

ArrayType

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

Parameters:
dimension - the number of dimensions in the array
elementType - the open type of the array elements
Throws:
OpenDataException - when open type is an ArrayType
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 getElementOpenType()
Get the open type of the array elements

Returns:
the element type

isValue

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

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

equals

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

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

hashCode

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

Specified by:
hashCode in class OpenType
Returns:
the hash code

toString

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

Specified by:
toString in class OpenType
Returns:
the string representation


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.