javax.management
Class StringValueExp

java.lang.Object
  extended byjavax.management.StringValueExp
All Implemented Interfaces:
java.io.Serializable, ValueExp (src)

public class StringValueExp
extends java.lang.Object
implements ValueExp (src)

A String that is an arguement to a query.

See Also:
Serialized Form

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

Parameters:
value - the string
Method Detail

apply

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

Specified by:
apply in interface ValueExp (src)
Parameters:
name - the object name of the mbean
Returns:
this value expression
Throws:
BadAttributeValueExpException (src) - when an invalid MBean attribute is used during query construction
InvalidApplicationException (src) - when trying to apply a subquery expression to an MBean or an attribute expression to an MBean of the wrong class.
BadBinaryOpValueExpException (src) - when an invalid binary operation is used during query construction
BadStringOperationException (src) - when an invalid string operation is used during query construction

getValue

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

Returns:
the string value

setMBeanServer

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

Specified by:
setMBeanServer in interface ValueExp (src)
Parameters:
server - the MBeanServer

toString

public java.lang.String toString()