javax.management
Class AttributeValueExp

java.lang.Object
  extended byjavax.management.ValueExpSupport
      extended byjavax.management.AttributeValueExp
All Implemented Interfaces:
Serializable, ValueExp

public class AttributeValueExp
extends javax.management.ValueExpSupport

A String that is an arguement to a query.

Revisions:

20020317 Adrian Brock:

20020711 Adrian Brock:

Version:
$Revision: 1.3.6.2 $
Author:
Adrian Brock.
See Also:
Serialized Form

Constructor Summary
AttributeValueExp()
          Construct an attribute value expression for the null attribute name
AttributeValueExp(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  Object getAttribute(ObjectName name)
          Get the value of the attribute for a given object name
 String getAttributeName()
          Get the attribute name.
 void setMBeanServer(MBeanServer server)
          Set the MBeanServer for this expression.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeValueExp

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


AttributeValueExp

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

Parameters:
attr - the attribute name
Method Detail

getAttributeName

public String getAttributeName()
Get the attribute name.

Returns:
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.

Throws:
BadStringOperationException
BadBinaryOpValueExpException
BadAttributeValueExpException
InvalidApplicationException

toString

public String toString()

getAttribute

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

Returns:
the value of the attribute

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
Parameters:
server - the MBeanServer


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.