javax.management
Class StringValueExp

java.lang.Object
  |
  +--javax.management.StringValueExp

public class StringValueExp
extends java.lang.Object
implements ValueExp

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

See Also:
Serialized Form

Field Summary
(package private)  int type
           
 
Constructor Summary
  StringValueExp()
          Constructs a StringValueExp with default val
  StringValueExp(java.lang.String val)
          Creates a new StringValueExp representing the string literal val.
(package private) StringValueExp(StringValueExp v1, StringValueExp v2, int type)
           
 
Method Summary
 ValueExp apply(ObjectName object)
          Implements the method in the ValueExp.
(package private)  java.lang.Object getObject()
           
 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
 

Field Detail

type

int type
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

StringValueExp

StringValueExp(StringValueExp v1,
               StringValueExp v2,
               int type)
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 object)
               throws BadStringOperationException,
                      BadBinaryOpValueExpException,
                      BadAttributeValueExpException,
                      InvalidApplicationException
Implements the method in the ValueExp.
Specified by:
apply in interface 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

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

getObject

java.lang.Object getObject()

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