javax.management.openmbean
public abstract class OpenType<T> extends Object implements Serializable
Since: 1.5
Field Summary | |
---|---|
static List<String> | ALLOWED_CLASSNAMES_LIST
A list which defines the set of Java types that may be
used as open types. |
Constructor Summary | |
---|---|
protected | OpenType(String className, String name, String desc)
Constructs a new OpenType for the specified class
with the given name and description. |
Method Summary | |
---|---|
abstract boolean | equals(Object obj)
Performs an equality test on this object and the one specified.
|
String | getClassName()
Returns the name of the Java class this type represents. |
String | getDescription()
Returns a description of this open type.
|
String | getTypeName()
Returns the name of this open type.
|
abstract int | hashCode()
Returns a hash code for this open type. |
boolean | isArray()
Returns true if this open type represents an array type.
|
abstract boolean | isValue(Object obj)
Returns true if the specified object is a member of this
type.
|
abstract String | toString()
Returns a textual representation of this type.
|
null
or the empty string.
Parameters: className the name of the Java class this type represents. name the name of the type. desc the description of the type.
Throws: IllegalArgumentException if either of name
or desc
are
null
or the empty
string. OpenDataException if the class name does not reference
a listed class (from @{link ALLOWED_CLASSNAMES})
Parameters: obj the object to test against this one.
Returns: true if the two objects are equivalent.
See Also: java.lang.Object#hashCode()
Returns: the class name.
Returns: the description.
Returns: the type name.
equals()
method.
Thus, it should continue to return the same value while
the values used by the equals()
method remain
the same, and should return different hash codes for
objects which are judged to be different using the
equals()
method.
Returns: the hash code of this instance.
Returns: true if this open type represents an array type.
Parameters: obj the object to test for membership.
Returns: true if the object is a member of this type.
Returns: a java.lang.String representation of this type.