javax.management
Class MBeanAttributeInfo

java.lang.Object
  extended byjavax.management.MBeanFeatureInfo (src) 
      extended byjavax.management.MBeanAttributeInfo
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
ModelMBeanAttributeInfo (src) , OpenMBeanAttributeInfoSupport (src)

public class MBeanAttributeInfo
extends MBeanFeatureInfo (src)
implements java.io.Serializable, java.lang.Cloneable

Represents a management attribute in an MBeans' management interface.

See Also:
MBeanInfo (src) , Serialized Form

Field Summary
 
Fields inherited from class javax.management.MBeanFeatureInfo (src)
description, name
 
Constructor Summary
MBeanAttributeInfo(java.lang.String name, java.lang.String description, java.lang.reflect.Method getter, java.lang.reflect.Method setter)
          Creates an MBean attribute info object using the given accessor methods.
MBeanAttributeInfo(java.lang.String name, java.lang.String type, java.lang.String description, boolean isReadable, boolean isWritable, boolean isIs)
          Creates an MBean attribute info object.
 
Method Summary
 java.lang.Object clone()
          Creates a copy of this object.
 boolean equals(java.lang.Object object)
           
 java.lang.String getType()
          Returns the type string of this attribute.
 int hashCode()
           
 boolean isIs()
          If the attribute is using the boolean isAttributeName naming convention for its read accessor.
 boolean isReadable()
          If the attribute is readable.
 boolean isWritable()
          If the attribute is writable.
 java.lang.String toString()
           
 
Methods inherited from class javax.management.MBeanFeatureInfo (src)
getDescription, getName
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MBeanAttributeInfo

public MBeanAttributeInfo(java.lang.String name,
                          java.lang.String type,
                          java.lang.String description,
                          boolean isReadable,
                          boolean isWritable,
                          boolean isIs)
                   throws java.lang.IllegalArgumentException
Creates an MBean attribute info object.

Parameters:
name - name of the attribute
type - the fully qualified class name of the attribute's type
description - human readable description string of the attribute
isReadable - if attribute is readable
isWritable - if attribute is writable
isIs - if attribute is using the boolean isAttributeName naming convention for its getter method
Throws:
java.lang.IllegalArgumentException - for a true isIs with a non boolean type or the type is not a valid java type or it is a reserved word

MBeanAttributeInfo

public MBeanAttributeInfo(java.lang.String name,
                          java.lang.String description,
                          java.lang.reflect.Method getter,
                          java.lang.reflect.Method setter)
                   throws IntrospectionException (src) 
Creates an MBean attribute info object using the given accessor methods.

Parameters:
name - Name of the attribute.
description - Human readable description string of the attribute's type.
getter - The attribute's read accessor. May be null if the attribute is write-only.
setter - The attribute's write accessor. May be null if the attribute is read-only.
Throws:
IntrospectionException (src) - if the accessor methods are not valid for the attribute
Method Detail

clone

public java.lang.Object clone()
Creates a copy of this object.

Returns:
clone of this object

getType

public java.lang.String getType()
Returns the type string of this attribute.

Returns:
fully qualified class name of the attribute's type

isReadable

public boolean isReadable()
If the attribute is readable.

Returns:
true if attribute is readable; false otherwise

isWritable

public boolean isWritable()
If the attribute is writable.

Returns:
true if attribute is writable; false otherwise

isIs

public boolean isIs()
If the attribute is using the boolean isAttributeName naming convention for its read accessor.

Returns:
true if using isAttributeName getter; false otherwise

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class MBeanFeatureInfo (src)

hashCode

public int hashCode()
Overrides:
hashCode in class MBeanFeatureInfo (src)

toString

public java.lang.String toString()
Overrides:
toString in class MBeanFeatureInfo (src)