Interface OpenMBeanAttributeInfo
- All Superinterfaces:
OpenMBeanParameterInfo
- All Known Implementing Classes:
OpenMBeanAttributeInfoSupport
Describes an attribute of an open MBean.
This interface declares the same methods as the class MBeanAttributeInfo. A class implementing this
interface (typically OpenMBeanAttributeInfoSupport) should
extend MBeanAttributeInfo.
- Since:
- 1.5
-
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares the specified obj parameter with thisOpenMBeanAttributeInfoinstance for equality.inthashCode()Returns the hash code value for thisOpenMBeanAttributeInfoinstance.booleanisIs()Returnstrueif the attribute described by thisOpenMBeanAttributeInfoinstance is accessed through aisXXXgetter (applies only tobooleanandBooleanvalues),falseotherwise.booleanReturnstrueif the attribute described by thisOpenMBeanAttributeInfoinstance is readable,falseotherwise.booleanReturnstrueif the attribute described by thisOpenMBeanAttributeInfoinstance is writable,falseotherwise.toString()Returns a string representation of thisOpenMBeanAttributeInfoinstance.Methods declared in interface javax.management.openmbean.OpenMBeanParameterInfo
getDefaultValue, getDescription, getLegalValues, getMaxValue, getMinValue, getName, getOpenType, hasDefaultValue, hasLegalValues, hasMaxValue, hasMinValue, isValue
-
Method Details
-
isReadable
boolean isReadable()Returnstrueif the attribute described by thisOpenMBeanAttributeInfoinstance is readable,falseotherwise.- Returns:
- true if the attribute is readable.
-
isWritable
boolean isWritable()Returnstrueif the attribute described by thisOpenMBeanAttributeInfoinstance is writable,falseotherwise.- Returns:
- true if the attribute is writable.
-
isIs
boolean isIs()Returnstrueif the attribute described by thisOpenMBeanAttributeInfoinstance is accessed through aisXXXgetter (applies only tobooleanandBooleanvalues),falseotherwise.- Returns:
- true if the attribute is accessed through
isXXX.
-
equals
Compares the specified obj parameter with thisOpenMBeanAttributeInfoinstance for equality.Returns
trueif and only if all of the following statements are true:- obj is non null,
- obj also implements the
OpenMBeanAttributeInfointerface, - their names are equal
- their open types are equal
- their access properties (isReadable, isWritable and isIs) are equal
- their default, min, max and legal values are equal.
equalsmethod works properly for obj parameters which are different implementations of theOpenMBeanAttributeInfointerface.
- Specified by:
equalsin interfaceOpenMBeanParameterInfo- Overrides:
equalsin classObject- Parameters:
obj- the object to be compared for equality with thisOpenMBeanAttributeInfoinstance;- Returns:
trueif the specified object is equal to thisOpenMBeanAttributeInfoinstance.- See Also:
-
hashCode
int hashCode()Returns the hash code value for thisOpenMBeanAttributeInfoinstance.The hash code of an
OpenMBeanAttributeInfoinstance is the sum of the hash codes of all elements of information used inequalscomparisons (ie: its name, its open type, and its default, min, max and legal values).This ensures that
t1.equals(t2)implies thatt1.hashCode()==t2.hashCode()for any twoOpenMBeanAttributeInfoinstancest1andt2, as required by the general contract of the methodObject.hashCode().- Specified by:
hashCodein interfaceOpenMBeanParameterInfo- Overrides:
hashCodein classObject- Returns:
- the hash code value for this
OpenMBeanAttributeInfoinstance - See Also:
-
toString
String toString()Returns a string representation of thisOpenMBeanAttributeInfoinstance.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:
toStringin interfaceOpenMBeanParameterInfo- Overrides:
toStringin classObject- Returns:
- a string representation of this
OpenMBeanAttributeInfoinstance
-