javax.management.openmbean
Class SimpleType

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

public class SimpleType
extends OpenType
implements java.io.Serializable

The SimpleType class is the open type class whose instances describe all open data values which are neither arrays, nor CompositeData values, nor TabularData values. It predefines all its possible instances as static fields, and has no public constructor.

Given a SimpleType instance describing values whose Java class name is className, the internal fields corresponding to the TypeName and description of this SimpleType instance are also set to className. In other words, its methods getClassName, getTypeName and getDescription all return the same string value className.

Version:
$Revision: 1.8 $
Author:
Bronwen Cassidy
See Also:
Serialized Form

Field Summary
static SimpleType BIGDECIMAL
           
static SimpleType BIGINTEGER
           
static SimpleType BOOLEAN
           
static SimpleType BYTE
           
static SimpleType CHARACTER
           
static SimpleType DOUBLE
           
static SimpleType FLOAT
           
static SimpleType INTEGER
           
static SimpleType LONG
           
static SimpleType OBJECTNAME
           
static SimpleType SHORT
           
static SimpleType STRING
           
static SimpleType VOID
           
 
Fields inherited from class javax.management.openmbean.OpenType
ALLOWED_CLASSNAMES
 
Method Summary
 boolean equals(java.lang.Object object)
          Check the given object for equality
 int hashCode()
          Retrieve the hashCode
 boolean isValue(java.lang.Object object)
          Checks if this SimpleType object is value of the given object
 java.lang.Object readResolve()
           
 java.lang.String toString()
          Returns a human readable representation of this SimpleType object
 
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
 

Field Detail

BIGDECIMAL

public static SimpleType BIGDECIMAL

BIGINTEGER

public static SimpleType BIGINTEGER

BOOLEAN

public static SimpleType BOOLEAN

BYTE

public static SimpleType BYTE

CHARACTER

public static SimpleType CHARACTER

DOUBLE

public static SimpleType DOUBLE

FLOAT

public static SimpleType FLOAT

INTEGER

public static SimpleType INTEGER

LONG

public static SimpleType LONG

OBJECTNAME

public static SimpleType OBJECTNAME

SHORT

public static SimpleType SHORT

STRING

public static SimpleType STRING

VOID

public static SimpleType VOID
Method Detail

isValue

public boolean isValue(java.lang.Object object)
Checks if this SimpleType object is value of the given object

Specified by:
isValue in class OpenType
Parameters:
object - The object to check
Returns:
boolean

readResolve

public java.lang.Object readResolve()
                             throws java.io.ObjectStreamException
Throws:
java.io.ObjectStreamException

equals

public boolean equals(java.lang.Object object)
Check the given object for equality

Specified by:
equals in class OpenType
Returns:
boolean if object is equal

hashCode

public int hashCode()
Retrieve the hashCode

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

toString

public java.lang.String toString()
Returns a human readable representation of this SimpleType object

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


Copyright © 2001-2002 MX4J Team. All Rights Reserved.