This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.management.openmbean
class SimpleType

java.lang.Object extended by javax.management.openmbean.OpenType extended by javax.management.openmbean.SimpleType
All Implemented Interfaces:
Serializable

public final class SimpleType
extends OpenType

The SimpleType class is the open type class whose instances describe all open data values which are neither arrays, nor {@link CompositeData CompositeData} values, nor {@link TabularData 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 name 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.


Field Summary
static SimpleType BIGDECIMAL
          The SimpleType instance describing values whose Java class name is java.math.BigDecimal.
static SimpleType BIGINTEGER
          The SimpleType instance describing values whose Java class name is java.math.BigInteger.
static SimpleType BOOLEAN
          The SimpleType instance describing values whose Java class name is java.lang.Boolean.
static SimpleType BYTE
          The SimpleType instance describing values whose Java class name is java.lang.Byte.
static SimpleType CHARACTER
          The SimpleType instance describing values whose Java class name is java.lang.Character.
static SimpleType DATE
          The SimpleType instance describing values whose Java class name is java.util.Date.
static SimpleType DOUBLE
          The SimpleType instance describing values whose Java class name is java.lang.Double.
static SimpleType FLOAT
          The SimpleType instance describing values whose Java class name is java.lang.Float.
static SimpleType INTEGER
          The SimpleType instance describing values whose Java class name is java.lang.Integer.
static SimpleType LONG
          The SimpleType instance describing values whose Java class name is java.lang.Long.
static SimpleType OBJECTNAME
          The SimpleType instance describing values whose Java class name is javax.management.ObjectName.
static SimpleType SHORT
          The SimpleType instance describing values whose Java class name is java.lang.Short.
static SimpleType STRING
          The SimpleType instance describing values whose Java class name is java.lang.String.
static SimpleType VOID
          The SimpleType instance describing values whose Java class name is java.lang.Void.
 
Fields inherited from class javax.management.openmbean.OpenType
ALLOWED_CLASSNAMES, ALLOWED_CLASSNAMES_LIST
 
Method Summary
 boolean

          Compares the specified obj parameter with this SimpleType instance for equality.
 int

          Returns the hash code value for this SimpleType instance.
 boolean

          Tests whether obj is a value for this SimpleType instance.
 Object

          Replace an object read from an java.io.ObjectInputStream with the unique instance for that value.
 String

          Returns a string representation of this SimpleType instance.
 
Methods inherited from class javax.management.openmbean.OpenType
equals, getClassName, getDescription, getTypeName, hashCode, isArray, isValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BIGDECIMAL

public static final SimpleType BIGDECIMAL
The SimpleType instance describing values whose Java class name is java.math.BigDecimal.

BIGINTEGER

public static final SimpleType BIGINTEGER
The SimpleType instance describing values whose Java class name is java.math.BigInteger.

BOOLEAN

public static final SimpleType BOOLEAN
The SimpleType instance describing values whose Java class name is java.lang.Boolean.

BYTE

public static final SimpleType BYTE
The SimpleType instance describing values whose Java class name is java.lang.Byte.

CHARACTER

public static final SimpleType CHARACTER
The SimpleType instance describing values whose Java class name is java.lang.Character.

DATE

public static final SimpleType DATE
The SimpleType instance describing values whose Java class name is java.util.Date.

DOUBLE

public static final SimpleType DOUBLE
The SimpleType instance describing values whose Java class name is java.lang.Double.

FLOAT

public static final SimpleType FLOAT
The SimpleType instance describing values whose Java class name is java.lang.Float.

INTEGER

public static final SimpleType INTEGER
The SimpleType instance describing values whose Java class name is java.lang.Integer.

LONG

public static final SimpleType LONG
The SimpleType instance describing values whose Java class name is java.lang.Long.

OBJECTNAME

public static final SimpleType OBJECTNAME
The SimpleType instance describing values whose Java class name is javax.management.ObjectName.

SHORT

public static final SimpleType SHORT
The SimpleType instance describing values whose Java class name is java.lang.Short.

STRING

public static final SimpleType STRING
The SimpleType instance describing values whose Java class name is java.lang.String.

VOID

public static final SimpleType VOID
The SimpleType instance describing values whose Java class name is java.lang.Void.
Method Detail

equals

public boolean equals(Object obj)
Compares the specified obj parameter with this SimpleType instance for equality.

Two SimpleType instances are equal if and only if their {@link OpenType#getClassName() getClassName} methods return the same value.

Overrides:
equals in class OpenType
Parameters:
obj - the object to be compared for equality with this SimpleType instance; if obj is null or is not an instance of the class SimpleType, equals returns false.
Returns:
true if the specified object is equal to this SimpleType instance.

hashCode

public int hashCode()
Returns the hash code value for this SimpleType instance. The hash code of a SimpleType instance is the the hash code of the string value returned by the {@link OpenType#getClassName() getClassName} method.

As SimpleType instances are immutable, the hash code for this instance is calculated once, on the first call to hashCode, and then the same value is returned for subsequent calls.

Overrides:
hashCode in class OpenType
Returns:
the hash code value for this SimpleType instance

isValue

public boolean isValue(Object obj)
Tests whether obj is a value for this SimpleType instance.

This method returns true if and only if obj is not null and obj's class name is the same as the className field defined for this SimpleType instance (ie the class name returned by the {@link OpenType#getClassName() getClassName} method).

Overrides:
isValue in class OpenType
Parameters:
obj - the object to be tested.
Returns:
true if obj is a value for this SimpleType instance.

readResolve

public Object readResolve()
                   throws ObjectStreamException
Replace an object read from an {@link java.io.ObjectInputStream} with the unique instance for that value.

Returns:
the replacement object.
Throws:
ObjectStreamException - if the read object cannot be resolved.

toString

public String toString()
Returns a string representation of this SimpleType instance.

The string representation consists of the name of this class (ie javax.management.openmbean.SimpleType) and the type name for this instance (which is the java class name of the values this SimpleType instance represents).

As SimpleType instances are immutable, the string representation for this instance is calculated once, on the first call to toString, and then the same value is returned for subsequent calls.

Overrides:
toString in class OpenType
Returns:
a string representation of this SimpleType instance


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.