javax.management
Class Attribute

java.lang.Object
  extended byjavax.management.Attribute
All Implemented Interfaces:
java.io.Serializable

public class Attribute
extends java.lang.Object
implements java.io.Serializable

A representation of an MBean attribute. It is a pair, a Name and a Value.

An Attribute is returned by a getter operation or passed to a a setter operation.

See Also:
Serialized Form

Constructor Summary
Attribute(java.lang.String name, java.lang.Object value)
          Contruct a new attribute given a name and value.
 
Method Summary
 boolean equals(java.lang.Object object)
          Compares two attributes for equality.
 java.lang.String getName()
          Retrieves the name of the attribute.
 java.lang.Object getValue()
          Retrieves the value of the attribute.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute(java.lang.String name,
                 java.lang.Object value)
Contruct a new attribute given a name and value.

Parameters:
name - the name of the attribute.
value - the value of the attribute.
Method Detail

getName

public java.lang.String getName()
Retrieves the name of the attribute.

Returns:
the name of the attribute.

getValue

public java.lang.Object getValue()
Retrieves the value of the attribute.

Returns:
the value of the attribute.

equals

public boolean equals(java.lang.Object object)
Compares two attributes for equality.

Returns:
true when the name value objects are equal, false otherwise.

hashCode

public int hashCode()

toString

public java.lang.String toString()
Returns:
human readable string.