XMOJO 5 API Docs

javax.management
Class StringValueExp

java.lang.Object
  |
  +--javax.management.StringValueExp
All Implemented Interfaces:
java.io.Serializable, ValueExp

public class StringValueExp
extends java.lang.Object
implements ValueExp

Represents strings that are arguments to relational constraints. A StringValueExp may be used anywhere a ValueExp is required.

See Also:
Serialized Form

Constructor Summary
StringValueExp()
          Constructs a StringValueExp with default val
StringValueExp(java.lang.String val)
          Creates a new StringValueExp representing the string literal val.
 
Method Summary
 ValueExp apply(ObjectName name)
          Applies the ValueExp on a MBean.
 java.lang.String getValue()
          Returns the string represented by the StringValueExp instance.
 void setMBeanServer(MBeanServer server)
          Sets the MBeanServer on which the query is to be accessed.
 java.lang.String toString()
          Returns the string representing the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringValueExp

public StringValueExp()
Constructs a StringValueExp with default val

StringValueExp

public StringValueExp(java.lang.String val)
Creates a new StringValueExp representing the string literal val.
Parameters:
val - Creates a StringValueExp representing the string literal val
Method Detail

getValue

public java.lang.String getValue()
Returns the string represented by the StringValueExp instance.
Returns:
This returns the string represented by the StringValueExp instance.

apply

public ValueExp apply(ObjectName name)
               throws BadStringOperationException,
                      BadBinaryOpValueExpException,
                      BadAttributeValueExpException,
                      InvalidApplicationException
Applies the ValueExp on a MBean. Implements the method in the ValueExp.
Specified by:
apply in interface ValueExp
Parameters:
name - The name of the MBean on which the ValueExp will be applied.
Returns:
The ValueExp.
Throws:
BadStringOperationException - This exception is thrown when an invalid string operation is passed to a method for constructing a query.
BadBinaryOpValueExpException - This exception is thrown when an invalid expression is passed to a method for constructing a query.
BadAttributeValueExpException - The BadAttributeValueExpException is thrown when an invalid MBean attribute is passed to a query constructing method.
InvalidApplicationException - This exception is thrown when an attempt is made to apply either of the following: A subquery expression to an MBean A qualified attribute expression to an MBean of the wrong class

setMBeanServer

public void setMBeanServer(MBeanServer server)
Sets the MBeanServer on which the query is to be accessed.
Specified by:
setMBeanServer in interface ValueExp
Parameters:
server - - The MBeanServer on which the query is to be accessed

toString

public java.lang.String toString()
Returns the string representing the object.
Overrides:
toString in class java.lang.Object
Returns:
Returns the string representation of object

XMOJO 5 API Docs

Copyright ©2003 XMOJO.org. All Rights Reserved.