public class

StringValueExp

extends Object
implements ValueExp
java.lang.Object
   ↳ javax.management.StringValueExp

Class Overview

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

Summary

Public Constructors
StringValueExp()
Basic constructor.
StringValueExp(String val)
Creates a new StringValueExp representing the given string.
Public Methods
ValueExp apply(ObjectName name)
Applies the ValueExp on a MBean.
String getValue()
Returns the string represented by the StringValueExp instance.
void setMBeanServer(MBeanServer s)
Sets the MBean server on which the query is to be performed.
String toString()
Returns the string representing the object.
[Expand]
Inherited Methods
From class java.lang.Object
From interface javax.management.ValueExp

Public Constructors

public StringValueExp ()

Basic constructor.

public StringValueExp (String val)

Creates a new StringValueExp representing the given string.

Parameters
val the string that will be the value of this expression

Public Methods

public ValueExp apply (ObjectName name)

Applies the ValueExp on a MBean.

Parameters
name The name of the MBean on which the ValueExp will be applied.
Returns
  • The ValueExp.
Throws
BadStringOperationException
BadBinaryOpValueExpException
BadAttributeValueExpException
InvalidApplicationException
BadAttributeValueExpException
BadBinaryOpValueExpException
BadStringOperationException

public String getValue ()

Returns the string represented by the StringValueExp instance.

Returns
  • the string.

public void setMBeanServer (MBeanServer s)

Sets the MBean server on which the query is to be performed.

Parameters
s The MBean server on which the query is to be performed.

public String toString ()

Returns the string representing the object.

Returns
  • a string representation of the object.