- 
- All Superinterfaces:
- OpenMBeanParameterInfo
 - All Known Implementing Classes:
- OpenMBeanAttributeInfoSupport
 
 public interface OpenMBeanAttributeInfo extends OpenMBeanParameterInfo Describes an attribute of an open MBean. This interface declares the same methods as the class MBeanAttributeInfo. A class implementing this interface (typicallyOpenMBeanAttributeInfoSupport) should extendMBeanAttributeInfo.- Since:
- 1.5
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequals(Object obj)Compares 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.booleanisReadable()Returnstrueif the attribute described by thisOpenMBeanAttributeInfoinstance is readable,falseotherwise.booleanisWritable()Returnstrueif the attribute described by thisOpenMBeanAttributeInfoinstance is writable,falseotherwise.StringtoString()Returns a string representation of thisOpenMBeanAttributeInfoinstance.- 
Methods declared in interface javax.management.openmbean.OpenMBeanParameterInfogetDefaultValue, getDescription, getLegalValues, getMaxValue, getMinValue, getName, getOpenType, hasDefaultValue, hasLegalValues, hasMaxValue, hasMinValue, isValue
 
- 
 
- 
- 
- 
Method Detail- 
isReadableboolean isReadable() Returnstrueif the attribute described by thisOpenMBeanAttributeInfoinstance is readable,falseotherwise.- Returns:
- true if the attribute is readable.
 
 - 
isWritableboolean isWritable() Returnstrueif the attribute described by thisOpenMBeanAttributeInfoinstance is writable,falseotherwise.- Returns:
- true if the attribute is writable.
 
 - 
isIsboolean isIs() Returnstrueif the attribute described by thisOpenMBeanAttributeInfoinstance is accessed through aisXXXgetter (applies only tobooleanandBooleanvalues),falseotherwise.- Returns:
- true if the attribute is accessed through isXXX.
 
 - 
equalsboolean equals(Object obj) 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 interface- OpenMBeanParameterInfo
- Overrides:
- equalsin class- Object
- Parameters:
- obj- the object to be compared for equality with this- OpenMBeanAttributeInfoinstance;
- Returns:
- trueif the specified object is equal to this- OpenMBeanAttributeInfoinstance.
- See Also:
- Object.hashCode(),- HashMap
 
 - 
hashCodeint 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 interface- OpenMBeanParameterInfo
- Overrides:
- hashCodein class- Object
- Returns:
- the hash code value for this OpenMBeanAttributeInfoinstance
- See Also:
- Object.equals(java.lang.Object),- System.identityHashCode(java.lang.Object)
 
 - 
toStringString 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 interface- OpenMBeanParameterInfo
- Overrides:
- toStringin class- Object
- Returns:
- a string representation of this OpenMBeanAttributeInfoinstance
 
 
- 
 
-