test.compliance.openmbean
Class OpenMBeanInfoSupportTestCase.MyOpenMBeanParameterInfo

java.lang.Object
  extended bytest.compliance.openmbean.OpenMBeanInfoSupportTestCase.MyOpenMBeanParameterInfo
All Implemented Interfaces:
OpenMBeanParameterInfo (src)
Direct Known Subclasses:
OpenMBeanInfoSupportTestCase.MyOpenMBeanAttributeInfoSupport (src)
Enclosing class:
OpenMBeanInfoSupportTestCase (src)

public static class OpenMBeanInfoSupportTestCase.MyOpenMBeanParameterInfo
extends java.lang.Object
implements OpenMBeanParameterInfo (src)


Constructor Summary
OpenMBeanInfoSupportTestCase.MyOpenMBeanParameterInfo()
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares an object for equality with the implementing class.
 java.lang.Object getDefaultValue()
          Retrieve the default value for this parameter or null if there is no default
 java.lang.String getDescription()
          Retrieve a human readable description of the open MBean parameter the implementation of this interface describes.
 java.util.Set getLegalValues()
          Retrieve the legal values values for this parameter or null if this is not specified
 java.lang.Comparable getMaxValue()
          Retrieve the maximum values values for this parameter or null if this is not specified
 java.lang.Comparable getMinValue()
          Retrieve the minimum values values for this parameter or null if this is not specified
 java.lang.String getName()
          Retrieve the name of the parameter described.
 OpenType (src) getOpenType()
          Retrieve the open type for this parameter
 boolean hasDefaultValue()
          Discover wether this parameter has a default value specified
 int hashCode()
          Generates a hashcode for the implementation.
 boolean hasLegalValues()
          Discover wether this parameter has legal values specified
 boolean hasMaxValue()
          Discover wether this parameter has a maximum value specified
 boolean hasMinValue()
          Discover wether this parameter has a minimum value specified
 boolean isValue(java.lang.Object o)
          Tests whether an object is acceptable as a paramter value
 java.lang.String toString()
          A string representation of the open mbean parameter info.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OpenMBeanInfoSupportTestCase.MyOpenMBeanParameterInfo

public OpenMBeanInfoSupportTestCase.MyOpenMBeanParameterInfo()
Method Detail

equals

public boolean equals(java.lang.Object o)
Description copied from interface: OpenMBeanParameterInfo (src)
Compares an object for equality with the implementing class.

The object is not null
The object implements the open mbean attribute info interface
The parameter names are equal
The open types are equal
The default, min, max and legal values are equal

Specified by:
equals in interface OpenMBeanParameterInfo (src)

getDefaultValue

public java.lang.Object getDefaultValue()
Description copied from interface: OpenMBeanParameterInfo (src)
Retrieve the default value for this parameter or null if there is no default

Specified by:
getDefaultValue in interface OpenMBeanParameterInfo (src)
Returns:
the default value

getDescription

public java.lang.String getDescription()
Description copied from interface: OpenMBeanParameterInfo (src)
Retrieve a human readable description of the open MBean parameter the implementation of this interface describes.

Specified by:
getDescription in interface OpenMBeanParameterInfo (src)
Returns:
the description.

getLegalValues

public java.util.Set getLegalValues()
Description copied from interface: OpenMBeanParameterInfo (src)
Retrieve the legal values values for this parameter or null if this is not specified

Specified by:
getLegalValues in interface OpenMBeanParameterInfo (src)
Returns:
the legal value

getMaxValue

public java.lang.Comparable getMaxValue()
Description copied from interface: OpenMBeanParameterInfo (src)
Retrieve the maximum values values for this parameter or null if this is not specified

Specified by:
getMaxValue in interface OpenMBeanParameterInfo (src)
Returns:
the maximum value

getMinValue

public java.lang.Comparable getMinValue()
Description copied from interface: OpenMBeanParameterInfo (src)
Retrieve the minimum values values for this parameter or null if this is not specified

Specified by:
getMinValue in interface OpenMBeanParameterInfo (src)
Returns:
the minimum value

getName

public java.lang.String getName()
Description copied from interface: OpenMBeanParameterInfo (src)
Retrieve the name of the parameter described.

Specified by:
getName in interface OpenMBeanParameterInfo (src)
Returns:
the name.

getOpenType

public OpenType (src)  getOpenType()
Description copied from interface: OpenMBeanParameterInfo (src)
Retrieve the open type for this parameter

Specified by:
getOpenType in interface OpenMBeanParameterInfo (src)
Returns:
the open type.

hasDefaultValue

public boolean hasDefaultValue()
Description copied from interface: OpenMBeanParameterInfo (src)
Discover wether this parameter has a default value specified

Specified by:
hasDefaultValue in interface OpenMBeanParameterInfo (src)
Returns:
true when a default value is specified or false otherwise

hasLegalValues

public boolean hasLegalValues()
Description copied from interface: OpenMBeanParameterInfo (src)
Discover wether this parameter has legal values specified

Specified by:
hasLegalValues in interface OpenMBeanParameterInfo (src)
Returns:
true when the legal values are specified or false otherwise

hashCode

public int hashCode()
Description copied from interface: OpenMBeanParameterInfo (src)
Generates a hashcode for the implementation.

The sum of the hashCodes for the elements mentioned in the equals method

Specified by:
hashCode in interface OpenMBeanParameterInfo (src)

hasMaxValue

public boolean hasMaxValue()
Description copied from interface: OpenMBeanParameterInfo (src)
Discover wether this parameter has a maximum value specified

Specified by:
hasMaxValue in interface OpenMBeanParameterInfo (src)
Returns:
true when a maximum value is specified or false otherwise

hasMinValue

public boolean hasMinValue()
Description copied from interface: OpenMBeanParameterInfo (src)
Discover wether this parameter has a minimum value specified

Specified by:
hasMinValue in interface OpenMBeanParameterInfo (src)
Returns:
true when a minimum value is specified or false otherwise

isValue

public boolean isValue(java.lang.Object o)
Description copied from interface: OpenMBeanParameterInfo (src)
Tests whether an object is acceptable as a paramter value

Specified by:
isValue in interface OpenMBeanParameterInfo (src)
Parameters:
o - the object to test
Returns:
true when it is a valid value, or false otherwise

toString

public java.lang.String toString()
Description copied from interface: OpenMBeanParameterInfo (src)
A string representation of the open mbean parameter info.

It is made up of implementation class and the values mentioned in the equals method

Specified by:
toString in interface OpenMBeanParameterInfo (src)