javax.management
Class Attribute

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.management.Attribute
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable

public class Attribute
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements Serializable sample code for java.io.Serializable definition code for java.io.Serializable

Represents an MBean attribute by associating its name with its value. The MBean server and other objects use this class to get and set attributes values.

Since:
1.5
See Also:
Serialized Form

Constructor Summary
Attribute sample code for javax.management.Attribute.Attribute(java.lang.String, java.lang.Object) definition code for javax.management.Attribute.Attribute(java.lang.String, java.lang.Object) (String sample code for java.lang.String definition code for java.lang.String  name, Object sample code for java.lang.Object definition code for java.lang.Object  value)
          Constructs an Attribute object which associates the given attribute name with the given value.
 
Method Summary
 boolean equals sample code for javax.management.Attribute.equals(java.lang.Object) definition code for javax.management.Attribute.equals(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  object)
          Compares the current Attribute Object with another Attribute Object.
 String sample code for java.lang.String definition code for java.lang.String getName sample code for javax.management.Attribute.getName() definition code for javax.management.Attribute.getName() ()
          Returns a String containing the name of the attribute.
 Object sample code for java.lang.Object definition code for java.lang.Object getValue sample code for javax.management.Attribute.getValue() definition code for javax.management.Attribute.getValue() ()
          Returns an Object that is the value of this attribute.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , 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() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , 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

Attribute sample code for javax.management.Attribute(java.lang.String, java.lang.Object) definition code for javax.management.Attribute(java.lang.String, java.lang.Object)

public Attribute(String sample code for java.lang.String definition code for java.lang.String  name,
                 Object sample code for java.lang.Object definition code for java.lang.Object  value)
Constructs an Attribute object which associates the given attribute name with the given value.

Parameters:
name - A String containing the name of the attribute to be created. Cannot be null.
value - The Object which is assigned to the attribute. This object must be of the same type as the attribute.
Method Detail

getName sample code for javax.management.Attribute.getName() definition code for javax.management.Attribute.getName()

public String sample code for java.lang.String definition code for java.lang.String  getName()
Returns a String containing the name of the attribute.

Returns:
the name of the attribute.

getValue sample code for javax.management.Attribute.getValue() definition code for javax.management.Attribute.getValue()

public Object sample code for java.lang.Object definition code for java.lang.Object  getValue()
Returns an Object that is the value of this attribute.

Returns:
the value of the attribute.

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

public boolean equals(Object sample code for java.lang.Object definition code for java.lang.Object  object)
Compares the current Attribute Object with another Attribute Object.

Overrides:
equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) in class Object sample code for java.lang.Object definition code for java.lang.Object
Parameters:
object - The Attribute that the current Attribute is to be compared with.
Returns:
True if the two Attribute objects are equal, otherwise false.
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