javax.management.openmbean
Interface OpenMBeanAttributeInfo

All Superinterfaces:
OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo
All Known Implementing Classes:
OpenMBeanAttributeInfoSupport sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport

public interface OpenMBeanAttributeInfo
extends OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo

Describes an attribute of an open MBean.

This interface declares the same methods as the class MBeanAttributeInfo sample code for javax.management.MBeanAttributeInfo definition code for javax.management.MBeanAttributeInfo . A class implementing this interface (typically OpenMBeanAttributeInfoSupport sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport ) should extend MBeanAttributeInfo sample code for javax.management.MBeanAttributeInfo definition code for javax.management.MBeanAttributeInfo .

Since:
1.5

Method Summary
 boolean equals sample code for javax.management.openmbean.OpenMBeanAttributeInfo.equals(java.lang.Object) definition code for javax.management.openmbean.OpenMBeanAttributeInfo.equals(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  obj)
          Compares the specified obj parameter with this OpenMBeanAttributeInfo instance for equality.
 int hashCode sample code for javax.management.openmbean.OpenMBeanAttributeInfo.hashCode() definition code for javax.management.openmbean.OpenMBeanAttributeInfo.hashCode() ()
          Returns the hash code value for this OpenMBeanAttributeInfo instance.
 boolean isIs sample code for javax.management.openmbean.OpenMBeanAttributeInfo.isIs() definition code for javax.management.openmbean.OpenMBeanAttributeInfo.isIs() ()
          Returns true if the attribute described by this OpenMBeanAttributeInfo instance is accessed through a isXXX getter (applies only to boolean and Boolean values), false otherwise.
 boolean isReadable sample code for javax.management.openmbean.OpenMBeanAttributeInfo.isReadable() definition code for javax.management.openmbean.OpenMBeanAttributeInfo.isReadable() ()
          Returns true if the attribute described by this OpenMBeanAttributeInfo instance is readable, false otherwise.
 boolean isWritable sample code for javax.management.openmbean.OpenMBeanAttributeInfo.isWritable() definition code for javax.management.openmbean.OpenMBeanAttributeInfo.isWritable() ()
          Returns true if the attribute described by this OpenMBeanAttributeInfo instance is writable, false otherwise.
 String sample code for java.lang.String definition code for java.lang.String toString sample code for javax.management.openmbean.OpenMBeanAttributeInfo.toString() definition code for javax.management.openmbean.OpenMBeanAttributeInfo.toString() ()
          Returns a string representation of this OpenMBeanAttributeInfo instance.
 
Methods inherited from interface javax.management.openmbean.OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo
getDefaultValue sample code for javax.management.openmbean.OpenMBeanParameterInfo.getDefaultValue() definition code for javax.management.openmbean.OpenMBeanParameterInfo.getDefaultValue() , getDescription sample code for javax.management.openmbean.OpenMBeanParameterInfo.getDescription() definition code for javax.management.openmbean.OpenMBeanParameterInfo.getDescription() , getLegalValues sample code for javax.management.openmbean.OpenMBeanParameterInfo.getLegalValues() definition code for javax.management.openmbean.OpenMBeanParameterInfo.getLegalValues() , getMaxValue sample code for javax.management.openmbean.OpenMBeanParameterInfo.getMaxValue() definition code for javax.management.openmbean.OpenMBeanParameterInfo.getMaxValue() , getMinValue sample code for javax.management.openmbean.OpenMBeanParameterInfo.getMinValue() definition code for javax.management.openmbean.OpenMBeanParameterInfo.getMinValue() , getName sample code for javax.management.openmbean.OpenMBeanParameterInfo.getName() definition code for javax.management.openmbean.OpenMBeanParameterInfo.getName() , getOpenType sample code for javax.management.openmbean.OpenMBeanParameterInfo.getOpenType() definition code for javax.management.openmbean.OpenMBeanParameterInfo.getOpenType() , hasDefaultValue sample code for javax.management.openmbean.OpenMBeanParameterInfo.hasDefaultValue() definition code for javax.management.openmbean.OpenMBeanParameterInfo.hasDefaultValue() , hasLegalValues sample code for javax.management.openmbean.OpenMBeanParameterInfo.hasLegalValues() definition code for javax.management.openmbean.OpenMBeanParameterInfo.hasLegalValues() , hasMaxValue sample code for javax.management.openmbean.OpenMBeanParameterInfo.hasMaxValue() definition code for javax.management.openmbean.OpenMBeanParameterInfo.hasMaxValue() , hasMinValue sample code for javax.management.openmbean.OpenMBeanParameterInfo.hasMinValue() definition code for javax.management.openmbean.OpenMBeanParameterInfo.hasMinValue() , isValue sample code for javax.management.openmbean.OpenMBeanParameterInfo.isValue(java.lang.Object) definition code for javax.management.openmbean.OpenMBeanParameterInfo.isValue(java.lang.Object)
 

Method Detail

isReadable sample code for javax.management.openmbean.OpenMBeanAttributeInfo.isReadable() definition code for javax.management.openmbean.OpenMBeanAttributeInfo.isReadable()

boolean isReadable()
Returns true if the attribute described by this OpenMBeanAttributeInfo instance is readable, false otherwise.

Returns:
true if the attribute is readable.

isWritable sample code for javax.management.openmbean.OpenMBeanAttributeInfo.isWritable() definition code for javax.management.openmbean.OpenMBeanAttributeInfo.isWritable()

boolean isWritable()
Returns true if the attribute described by this OpenMBeanAttributeInfo instance is writable, false otherwise.

Returns:
true if the attribute is writable.

isIs sample code for javax.management.openmbean.OpenMBeanAttributeInfo.isIs() definition code for javax.management.openmbean.OpenMBeanAttributeInfo.isIs()

boolean isIs()
Returns true if the attribute described by this OpenMBeanAttributeInfo instance is accessed through a isXXX getter (applies only to boolean and Boolean values), false otherwise.

Returns:
true if the attribute is accessed through isXXX.

equals sample code for javax.management.openmbean.OpenMBeanAttributeInfo.equals(java.lang.Object) definition code for javax.management.openmbean.OpenMBeanAttributeInfo.equals(java.lang.Object)

boolean equals(Object sample code for java.lang.Object definition code for java.lang.Object  obj)
Compares the specified obj parameter with this OpenMBeanAttributeInfo instance for equality.

Returns true if and only if all of the following statements are true:

This ensures that this equals method works properly for obj parameters which are different implementations of the OpenMBeanAttributeInfo interface.
 

Specified by:
equals sample code for javax.management.openmbean.OpenMBeanParameterInfo.equals(java.lang.Object) definition code for javax.management.openmbean.OpenMBeanParameterInfo.equals(java.lang.Object) in interface OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo
Overrides:
equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) in class Object sample code for java.lang.Object definition code for java.lang.Object
Parameters:
obj - the object to be compared for equality with this OpenMBeanAttributeInfo instance;
Returns:
true if the specified object is equal to this OpenMBeanAttributeInfo instance.
See Also:
Object.hashCode() sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

hashCode sample code for javax.management.openmbean.OpenMBeanAttributeInfo.hashCode() definition code for javax.management.openmbean.OpenMBeanAttributeInfo.hashCode()

int hashCode()
Returns the hash code value for this OpenMBeanAttributeInfo instance.

The hash code of an OpenMBeanAttributeInfo instance is the sum of the hash codes of all elements of information used in equals comparisons (ie: its name, its open type, and its default, min, max and legal values).

This ensures that t1.equals(t2) implies that t1.hashCode()==t2.hashCode() for any two OpenMBeanAttributeInfo instances t1 and t2, as required by the general contract of the method Object.hashCode() sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() .

Specified by:
hashCode sample code for javax.management.openmbean.OpenMBeanParameterInfo.hashCode() definition code for javax.management.openmbean.OpenMBeanParameterInfo.hashCode() in interface OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo
Overrides:
hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
the hash code value for this OpenMBeanAttributeInfo instance
See Also:
Object.equals(java.lang.Object) sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

toString sample code for javax.management.openmbean.OpenMBeanAttributeInfo.toString() definition code for javax.management.openmbean.OpenMBeanAttributeInfo.toString()

String sample code for java.lang.String definition code for java.lang.String  toString()
Returns a string representation of this OpenMBeanAttributeInfo instance.

The string representation consists of the name of this class (ie javax.management.openmbean.OpenMBeanAttributeInfo), the string representation of the name and open type of the described attribute, and the string representation of its default, min, max and legal values.

Specified by:
toString sample code for javax.management.openmbean.OpenMBeanParameterInfo.toString() definition code for javax.management.openmbean.OpenMBeanParameterInfo.toString() in interface OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo
Overrides:
toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a string representation of this OpenMBeanAttributeInfo instance