javax.management
public class StringValueExp extends Object implements ValueExp
Since: 1.5
Constructor Summary | |
---|---|
StringValueExp()
Constructs a new {@link StringValueExp}. | |
StringValueExp(String val)
Constructs a new {@link StringValueExp} using the
specified value.
|
Method Summary | |
---|---|
ValueExp | apply(ObjectName name)
Applies the {@link StringValueExp} to the specified
management bean by simply returning the value.
|
String | getValue()
Returns the value.
|
void | setMBeanServer(MBeanServer server)
Sets the {@link MBeanServer} on which the query
will be performed.
|
String | toString()
Returns the value in quotes.
|
Parameters: val the string value used for this expression.
Parameters: name the {@link ObjectName} of the bean.
Returns: the {@link StringValueExp} itself.
Throws: BadStringOperationException if an invalid string operation is used by the value expression. BadBinaryOpValueExpException if an invalid expression is used by the value expression. BadAttributeValueExpException if an invalid attribute is used by the value expression. InvalidApplicationException if the value expression is applied to the wrong type of bean.
Returns: the value.
Parameters: server the new server.
Returns: the value (quoted).