|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.Attribute
public class Attribute
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.
Revisions:
20020730 Adrian Brock:
20020930 Juha Lindfors:
Constructor Summary | |
---|---|
Attribute(String name,
Object value)
Contruct a new attribute given a name and value. |
Method Summary | |
---|---|
boolean |
equals(Object object)
Compares two attributes for equality. |
String |
getName()
Retrieves the name of the attribute. |
Object |
getValue()
Retrieves the value of the attribute. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Attribute(String name, Object value)
name
- the name of the attribute.value
- the value of the attribute.Method Detail |
---|
public String getName()
public Object getValue()
public boolean equals(Object object)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |