javax.management
Class MBeanAttributeInfo

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.management.MBeanFeatureInfo sample code for javax.management.MBeanFeatureInfo definition code for javax.management.MBeanFeatureInfo 
      extended by javax.management.MBeanAttributeInfo
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable
Direct Known Subclasses:
ModelMBeanAttributeInfo sample code for javax.management.modelmbean.ModelMBeanAttributeInfo definition code for javax.management.modelmbean.ModelMBeanAttributeInfo , OpenMBeanAttributeInfoSupport sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport

public class MBeanAttributeInfo
extends MBeanFeatureInfo sample code for javax.management.MBeanFeatureInfo definition code for javax.management.MBeanFeatureInfo
implements Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable

Describes an MBean attribute exposed for management. Instances of this class are immutable. Subclasses may be mutable but this is not recommended.

Since:
1.5
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.management.MBeanFeatureInfo sample code for javax.management.MBeanFeatureInfo definition code for javax.management.MBeanFeatureInfo
description sample code for javax.management.MBeanFeatureInfo.description definition code for javax.management.MBeanFeatureInfo.description , name sample code for javax.management.MBeanFeatureInfo.name definition code for javax.management.MBeanFeatureInfo.name
 
Constructor Summary
MBeanAttributeInfo sample code for javax.management.MBeanAttributeInfo.MBeanAttributeInfo(java.lang.String, java.lang.String, java.lang.reflect.Method, java.lang.reflect.Method) definition code for javax.management.MBeanAttributeInfo.MBeanAttributeInfo(java.lang.String, java.lang.String, java.lang.reflect.Method, java.lang.reflect.Method) (String sample code for java.lang.String definition code for java.lang.String  name, String sample code for java.lang.String definition code for java.lang.String  description, Method sample code for java.lang.reflect.Method definition code for java.lang.reflect.Method  getter, Method sample code for java.lang.reflect.Method definition code for java.lang.reflect.Method  setter)
          This constructor takes the name of a simple attribute, and Method objects for reading and writing the attribute.
MBeanAttributeInfo sample code for javax.management.MBeanAttributeInfo.MBeanAttributeInfo(java.lang.String, java.lang.String, java.lang.String, boolean, boolean, boolean) definition code for javax.management.MBeanAttributeInfo.MBeanAttributeInfo(java.lang.String, java.lang.String, java.lang.String, boolean, boolean, boolean) (String sample code for java.lang.String definition code for java.lang.String  name, String sample code for java.lang.String definition code for java.lang.String  type, String sample code for java.lang.String definition code for java.lang.String  description, boolean isReadable, boolean isWritable, boolean isIs)
          Constructs an MBeanAttributeInfo object.
 
Method Summary
 Object sample code for java.lang.Object definition code for java.lang.Object clone sample code for javax.management.MBeanAttributeInfo.clone() definition code for javax.management.MBeanAttributeInfo.clone() ()
          Returns a shallow clone of this instance.
 boolean equals sample code for javax.management.MBeanAttributeInfo.equals(java.lang.Object) definition code for javax.management.MBeanAttributeInfo.equals(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  o)
          Compare this MBeanAttributeInfo to another.
 String sample code for java.lang.String definition code for java.lang.String getType sample code for javax.management.MBeanAttributeInfo.getType() definition code for javax.management.MBeanAttributeInfo.getType() ()
          Returns the class name of the attribute.
 int hashCode sample code for javax.management.MBeanAttributeInfo.hashCode() definition code for javax.management.MBeanAttributeInfo.hashCode() ()
          Returns a hash code value for the object.
 boolean isIs sample code for javax.management.MBeanAttributeInfo.isIs() definition code for javax.management.MBeanAttributeInfo.isIs() ()
          Indicates if this attribute has an "is" getter.
 boolean isReadable sample code for javax.management.MBeanAttributeInfo.isReadable() definition code for javax.management.MBeanAttributeInfo.isReadable() ()
          Whether the value of the attribute can be read.
 boolean isWritable sample code for javax.management.MBeanAttributeInfo.isWritable() definition code for javax.management.MBeanAttributeInfo.isWritable() ()
          Whether new values can be written to the attribute.
 
Methods inherited from class javax.management.MBeanFeatureInfo sample code for javax.management.MBeanFeatureInfo definition code for javax.management.MBeanFeatureInfo
getDescription sample code for javax.management.MBeanFeatureInfo.getDescription() definition code for javax.management.MBeanFeatureInfo.getDescription() , getName sample code for javax.management.MBeanFeatureInfo.getName() definition code for javax.management.MBeanFeatureInfo.getName()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

MBeanAttributeInfo sample code for javax.management.MBeanAttributeInfo(java.lang.String, java.lang.String, java.lang.String, boolean, boolean, boolean) definition code for javax.management.MBeanAttributeInfo(java.lang.String, java.lang.String, java.lang.String, boolean, boolean, boolean)

public MBeanAttributeInfo(String sample code for java.lang.String definition code for java.lang.String  name,
                          String sample code for java.lang.String definition code for java.lang.String  type,
                          String sample code for java.lang.String definition code for java.lang.String  description,
                          boolean isReadable,
                          boolean isWritable,
                          boolean isIs)
                   throws IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException 
Constructs an MBeanAttributeInfo object.

Parameters:
name - The name of the attribute.
type - The type or class name of the attribute.
description - A human readable description of the attribute.
isReadable - True if the attribute has a getter method, false otherwise.
isWritable - True if the attribute has a setter method, false otherwise.
isIs - True if this attribute has an "is" getter, false otherwise.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException

MBeanAttributeInfo sample code for javax.management.MBeanAttributeInfo(java.lang.String, java.lang.String, java.lang.reflect.Method, java.lang.reflect.Method) definition code for javax.management.MBeanAttributeInfo(java.lang.String, java.lang.String, java.lang.reflect.Method, java.lang.reflect.Method)

public MBeanAttributeInfo(String sample code for java.lang.String definition code for java.lang.String  name,
                          String sample code for java.lang.String definition code for java.lang.String  description,
                          Method sample code for java.lang.reflect.Method definition code for java.lang.reflect.Method  getter,
                          Method sample code for java.lang.reflect.Method definition code for java.lang.reflect.Method  setter)
                   throws IntrospectionException sample code for javax.management.IntrospectionException definition code for javax.management.IntrospectionException 
This constructor takes the name of a simple attribute, and Method objects for reading and writing the attribute.

Parameters:
name - The programmatic name of the attribute.
description - A human readable description of the attribute.
getter - The method used for reading the attribute value. May be null if the property is write-only.
setter - The method used for writing the attribute value. May be null if the attribute is read-only.
Throws:
IntrospectionException sample code for javax.management.IntrospectionException definition code for javax.management.IntrospectionException - There is a consistency problem in the definition of this attribute.
Method Detail

clone sample code for javax.management.MBeanAttributeInfo.clone() definition code for javax.management.MBeanAttributeInfo.clone()

public Object sample code for java.lang.Object definition code for java.lang.Object  clone()

Returns a shallow clone of this instance. The clone is obtained by simply calling super.clone(), thus calling the default native shallow cloning mechanism implemented by Object.clone(). No deeper cloning of any internal field is made.

Since this class is immutable, cloning is chiefly of interest to subclasses.

Overrides:
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a clone of this instance.
See Also:
Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable

getType sample code for javax.management.MBeanAttributeInfo.getType() definition code for javax.management.MBeanAttributeInfo.getType()

public String sample code for java.lang.String definition code for java.lang.String  getType()
Returns the class name of the attribute.

Returns:
the class name.

isReadable sample code for javax.management.MBeanAttributeInfo.isReadable() definition code for javax.management.MBeanAttributeInfo.isReadable()

public boolean isReadable()
Whether the value of the attribute can be read.

Returns:
True if the attribute can be read, false otherwise.

isWritable sample code for javax.management.MBeanAttributeInfo.isWritable() definition code for javax.management.MBeanAttributeInfo.isWritable()

public boolean isWritable()
Whether new values can be written to the attribute.

Returns:
True if the attribute can be written to, false otherwise.

isIs sample code for javax.management.MBeanAttributeInfo.isIs() definition code for javax.management.MBeanAttributeInfo.isIs()

public boolean isIs()
Indicates if this attribute has an "is" getter.

Returns:
true if this attribute has an "is" getter.

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

public boolean equals(Object sample code for java.lang.Object definition code for java.lang.Object  o)
Compare this MBeanAttributeInfo to another.

Overrides:
equals sample code for javax.management.MBeanFeatureInfo.equals(java.lang.Object) definition code for javax.management.MBeanFeatureInfo.equals(java.lang.Object) in class MBeanFeatureInfo sample code for javax.management.MBeanFeatureInfo definition code for javax.management.MBeanFeatureInfo
Parameters:
o - the object to compare to.
Returns:
true iff o is an MBeanAttributeInfo such that its MBeanFeatureInfo.getName() sample code for javax.management.MBeanFeatureInfo.getName() definition code for javax.management.MBeanFeatureInfo.getName() , getType() sample code for javax.management.MBeanAttributeInfo.getType() definition code for javax.management.MBeanAttributeInfo.getType() , MBeanFeatureInfo.getDescription() sample code for javax.management.MBeanFeatureInfo.getDescription() definition code for javax.management.MBeanFeatureInfo.getDescription() , isReadable() sample code for javax.management.MBeanAttributeInfo.isReadable() definition code for javax.management.MBeanAttributeInfo.isReadable() , isWritable() sample code for javax.management.MBeanAttributeInfo.isWritable() definition code for javax.management.MBeanAttributeInfo.isWritable() , and isIs() sample code for javax.management.MBeanAttributeInfo.isIs() definition code for javax.management.MBeanAttributeInfo.isIs() values are equal (not necessarily identical) to those of this MBeanAttributeInfo.
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.MBeanAttributeInfo.hashCode() definition code for javax.management.MBeanAttributeInfo.hashCode()

public int hashCode()
Description copied from class: Object sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode()
Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided by java.util.Hashtable.

The general contract of hashCode is:

As much as is reasonably practical, the hashCode method defined by class Object does return distinct integers for distinct objects. (This is typically implemented by converting the internal address of the object into an integer, but this implementation technique is not required by the JavaTM programming language.)

Overrides:
hashCode sample code for javax.management.MBeanFeatureInfo.hashCode() definition code for javax.management.MBeanFeatureInfo.hashCode() in class MBeanFeatureInfo sample code for javax.management.MBeanFeatureInfo definition code for javax.management.MBeanFeatureInfo
Returns:
a hash code value for this object.
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