test.compliance.openmbean
Class OpenTypeTestCase.MyOpenType

java.lang.Object
  extended byjavax.management.openmbean.OpenType (src) 
      extended bytest.compliance.openmbean.OpenTypeTestCase.MyOpenType
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
OpenTypeTestCase (src)

public static class OpenTypeTestCase.MyOpenType
extends OpenType (src)

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.management.openmbean.OpenType (src)
ALLOWED_CLASSNAMES
 
Constructor Summary
OpenTypeTestCase.MyOpenType(java.lang.String className, java.lang.String typeName, java.lang.String description)
           
 
Method Summary
 boolean equals(java.lang.Object other)
          Compares two object types for equality
 int hashCode()
          Retrieve the hashCode for this OpenType
 boolean isValue(java.lang.Object other)
          Whether the passed value is one of those described by this open type.
 java.lang.String toString()
          Retrieve a string representation of this open type
 
Methods inherited from class javax.management.openmbean.OpenType (src)
getClassName, getDescription, getTypeName, isArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OpenTypeTestCase.MyOpenType

public OpenTypeTestCase.MyOpenType(java.lang.String className,
                                   java.lang.String typeName,
                                   java.lang.String description)
                            throws OpenDataException (src) 
Method Detail

equals

public boolean equals(java.lang.Object other)
Description copied from class: OpenType (src)
Compares two object types for equality

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

hashCode

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

Specified by:
hashCode in class OpenType (src)
Returns:
the hash code

isValue

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

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

toString

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

Specified by:
toString in class OpenType (src)
Returns:
the string representation