public class StringValueExp extends Object implements ValueExp
Constructor and Description |
---|
StringValueExp()
Constructs a new
StringValueExp . |
StringValueExp(String val)
Constructs a new
StringValueExp using the
specified value. |
Modifier and Type | Method and Description |
---|---|
ValueExp |
apply(ObjectName name)
Applies the
StringValueExp to the specified
management bean by simply returning the value. |
String |
getValue()
Returns the value.
|
void |
setMBeanServer(MBeanServer server)
Sets the
MBeanServer on which the query
will be performed. |
String |
toString()
Returns the value in quotes.
|
public StringValueExp()
StringValueExp
.public StringValueExp(String val)
StringValueExp
using the
specified value.val
- the string value used for this expression.public ValueExp apply(ObjectName name) throws BadStringOperationException, BadBinaryOpValueExpException, BadAttributeValueExpException, InvalidApplicationException
StringValueExp
to the specified
management bean by simply returning the value.apply
in interface ValueExp
name
- the ObjectName
of the bean.StringValueExp
itself.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.public void setMBeanServer(MBeanServer server)
MBeanServer
on which the query
will be performed.setMBeanServer
in interface ValueExp
server
- the new server.public String toString()
toString
in class Object
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)