javax.management.openmbean
Interface OpenMBeanAttributeInfo

All Superinterfaces:
OpenMBeanParameterInfo (src)
All Known Implementing Classes:
OpenMBeanAttributeInfoSupport (src) , OpenMBeanInfoSupportTestCase.MyOpenMBeanAttributeInfoSupport (src)

public interface OpenMBeanAttributeInfo
extends OpenMBeanParameterInfo (src)

An open MBean attribute info implements this interface as well as extending MBeanAttributeInfo.

OpenMBeanAttributeInfoSupport (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.
 int hashCode()
          Generates a hashcode for the implementation.
 boolean isIs()
          Test whether an attribute is accessed through an isXXX getter.
 boolean isReadable()
          Test whether an attribute is readable.
 boolean isWritable()
          Test whether an attribute is writable.
 java.lang.String toString()
          A string representation of the open mbean parameter info.
 
Methods inherited from interface javax.management.openmbean.OpenMBeanParameterInfo (src)
getDefaultValue, getDescription, getLegalValues, getMaxValue, getMinValue, getName, getOpenType, hasDefaultValue, hasLegalValues, hasMaxValue, hasMinValue, isValue
 

Method Detail

isReadable

public boolean isReadable()
Test whether an attribute is readable.

Returns:
true when the attribute is readable or false otherwise

isWritable

public boolean isWritable()
Test whether an attribute is writable.

Returns:
true when the attribute is writable or false otherwise

isIs

public boolean isIs()
Test whether an attribute is accessed through an isXXX getter.

Returns:
the result of the above test

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 parameter info interface
The parameter names are equal
The open types are equal
The access properties are the same
The default, min, max and legal values are equal

Specified by:
equals in interface OpenMBeanParameterInfo (src)
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

Specified by:
hashCode in interface OpenMBeanParameterInfo (src)
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

Specified by:
toString in interface OpenMBeanParameterInfo (src)
Returns:
the string