站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 jmx API Documentation 英文版文档

StringValueExp (JBoss/JMX API) - JBoss 4.0.1 sp1 jmx API Documentation 英文版文档


javax.management
Class StringValueExp

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

public class StringValueExp
extends Object
implements ValueExp

A String that is an arguement to a query.

Version:
$Revision: 1.8 $
Author:
Adrian.Brock@jboss.org
See Also:
Serialized Form

Constructor Summary
StringValueExp()
          Construct a string value expression for the null string.
StringValueExp(String value)
          Construct a string value expression for the passed string
 
Method Summary
 ValueExp apply(ObjectName name)
          Apply this value expression to an MBean.
 String getValue()
          Get the value of the string.
 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

StringValueExp

public StringValueExp()
Construct a string value expression for the null string.


StringValueExp

public StringValueExp(String value)
Construct a string value expression for the passed string

Parameters:
value - the string
Method Detail

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
Parameters:
name - the object name of the mbean
Returns:
this value expression
Throws:
BadBinaryOpValueExpException - when an invalid binary operation is used during query construction
InvalidApplicationException - when trying to apply a subquery expression to an MBean or an attribute expression to an MBean of the wrong class.
BadStringOperationException - when an invalid string operation is used during query construction
BadAttributeValueExpException - when an invalid MBean attribute is used during query construction

getValue

public String getValue()
Get the value of the string.

Returns:
the string value

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

toString

public String toString()


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