javax.management.openmbean
Interface OpenMBeanParameterInfo

All Known Subinterfaces:
OpenMBeanAttributeInfo (src)
All Known Implementing Classes:
OpenMBeanAttributeInfoSupport (src) , OpenMBeanConstructorInfoSupportTestCase.MyOpenMBeanParameterInfo (src) , OpenMBeanInfoSupportTestCase.MyOpenMBeanAttributeInfoSupport (src) , OpenMBeanInfoSupportTestCase.MyOpenMBeanParameterInfo (src) , OpenMBeanOperationInfoSupportTestCase.MyOpenMBeanParameterInfo (src) , OpenMBeanParameterInfoSupport (src)

public interface OpenMBeanParameterInfo

An open MBean parameter info implements this interface as well as extending MBeanParameterInfo.

OpenMBeanParameterInfoSupport (src) is an example of such a class.


Method Summary
 boolean equals(java.lang.Object obj)
          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 obj)
          Tests whether an object is acceptable as a paramter value
 java.lang.String toString()
          A string representation of the open mbean parameter info.
 

Method Detail

getDescription

public java.lang.String getDescription()
Retrieve a human readable description of the open MBean parameter the implementation of this interface describes.

Returns:
the description.

getName

public java.lang.String getName()
Retrieve the name of the parameter described.

Returns:
the name.

getOpenType

public OpenType (src)  getOpenType()
Retrieve the open type for this parameter

Returns:
the open type.

getDefaultValue

public java.lang.Object getDefaultValue()
Retrieve the default value for this parameter or null if there is no default

Returns:
the default value

getLegalValues

public java.util.Set getLegalValues()
Retrieve the legal values values for this parameter or null if this is not specified

Returns:
the legal value

getMinValue

public java.lang.Comparable getMinValue()
Retrieve the minimum values values for this parameter or null if this is not specified

Returns:
the minimum value

getMaxValue

public java.lang.Comparable getMaxValue()
Retrieve the maximum values values for this parameter or null if this is not specified

Returns:
the maximum value

hasDefaultValue

public boolean hasDefaultValue()
Discover wether this parameter has a default value specified

Returns:
true when a default value is specified or false otherwise

hasLegalValues

public boolean hasLegalValues()
Discover wether this parameter has legal values specified

Returns:
true when the legal values are specified or false otherwise

hasMinValue

public boolean hasMinValue()
Discover wether this parameter has a minimum value specified

Returns:
true when a minimum value is specified or false otherwise

hasMaxValue

public boolean hasMaxValue()
Discover wether this parameter has a maximum value specified

Returns:
true when a maximum value is specified or false otherwise

isValue

public boolean isValue(java.lang.Object obj)
Tests whether an object is acceptable as a paramter value

Parameters:
obj - the object to test
Returns:
true when it is a valid value, or false otherwise

equals

public boolean equals(java.lang.Object obj)
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

Parameters:
obj - the object to test
Returns:
true when above is true, false otherwise

hashCode

public int hashCode()
Generates a hashcode for the implementation.

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

Returns:
the calculated hashcode

toString

public java.lang.String toString()
A string representation of the open mbean parameter info.

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

Returns:
the string