Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.management
Class AttributeValueExp  view AttributeValueExp download AttributeValueExp.java

java.lang.Object
  extended byjavax.management.ValueExpSupport
      extended byjavax.management.AttributeValueExp
All Implemented Interfaces:
java.io.Serializable, ValueExp
Direct Known Subclasses:
ClassAttributeValueExp, QualifiedAttributeValueExp

public class AttributeValueExp
extends ValueExpSupport

A String that is an arguement to a query.

Revisions:

20020317 Adrian Brock:

20020711 Adrian Brock:

Version:
$Revision: 1.3.6.1 $

Field Summary
private  java.lang.String attr
          The attribute name
private static long serialVersionUID
           
 
Constructor Summary
AttributeValueExp()
          Construct an attribute value expression for the null attribute name
AttributeValueExp(java.lang.String attr)
          Construct an attribute value expression for the passed attribute name
 
Method Summary
 ValueExp apply(ObjectName name)
          Apply this value expression to an MBean.
protected  java.lang.Object getAttribute(ObjectName name)
          Get the value of the attribute for a given object name
 java.lang.String getAttributeName()
          Get the attribute name.
(package private)  MBeanServer getMBeanServer()
          Get the MBean server
 void setMBeanServer(MBeanServer server)
          Set the MBeanServer for this expression.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

attr

private java.lang.String attr
The attribute name

Constructor Detail

AttributeValueExp

public AttributeValueExp()
Construct an attribute value expression for the null attribute name


AttributeValueExp

public AttributeValueExp(java.lang.String attr)
Construct an attribute value expression for the passed attribute name

Method Detail

getAttributeName

public java.lang.String getAttributeName()
Get the attribute name.


apply

public ValueExp apply(ObjectName name)
               throws BadStringOperationException,
                      BadBinaryOpValueExpException,
                      BadAttributeValueExpException,
                      InvalidApplicationException
Description copied from interface: ValueExp
Apply this value expression to an MBean.

Specified by:
apply in interface ValueExp
Overrides:
apply in class ValueExpSupport

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


getAttribute

protected java.lang.Object getAttribute(ObjectName name)
Get the value of the attribute for a given object name


setMBeanServer

public void setMBeanServer(MBeanServer server)
Description copied from interface: ValueExp
Set the MBeanServer for this expression. Only MBeans registered in this server can be used in queries.

Specified by:
setMBeanServer in interface ValueExp

getMBeanServer

MBeanServer getMBeanServer()
Get the MBean server