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 {@link 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: hashCode
Returns: the class name.
Returns: the description.
Returns: the type name.
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 {@link java.lang.String} representation of this type.