javax.management
Class Attribute
java.lang.Object
|
+--javax.management.Attribute
- public class Attribute
- extends java.lang.Object
- implements java.io.Serializable
This class is used for representing a pair (attribute name, attribute value).
The MBean server and other objects use this class to get and
set attributes values.
- See Also:
- Serialized Form
|
Constructor Summary |
Attribute(java.lang.String name,
java.lang.Object value)
Allows an attribute to be created for an attribute. |
|
Method Summary |
boolean |
equals(java.lang.Object obj)
Compares the current Attribute Object with another Attribute Object. |
java.lang.String |
getName()
Returns the name of the attribute. |
java.lang.Object |
getValue()
Returns the value. |
| Methods inherited from class java.lang.Object |
,
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Attribute
public Attribute(java.lang.String name,
java.lang.Object value)
- Allows an attribute to be created for an attribute.
- Parameters:
name - The name of the attribute to be created.value - The value assigned to the attribute.
getName
public java.lang.String getName()
- Returns the name of the attribute.
- Returns:
- name of the attribute
getValue
public java.lang.Object getValue()
- Returns the value.
- Returns:
- value of the attribute as Object
equals
public boolean equals(java.lang.Object obj)
- Compares the current Attribute Object with another Attribute Object.
- Overrides:
- equals in class java.lang.Object
- Parameters:
obj - The Attribute that the current Attribute is to be compared with.- Returns:
- True if the two Attribute objects are equal, otherwise false.