FileDocCategorySizeDatePackage
StringValueExp.javaAPI DocJava SE 5 API2104Fri Aug 26 14:57:34 BST 2005javax.management

StringValueExp

public class StringValueExp extends Object implements ValueExp
Represents strings that are arguments to relational constraints. A StringValueExp may be used anywhere a ValueExp is required.
since
1.5

Fields Summary
private static final long
serialVersionUID
private String
val
Constructors Summary
public StringValueExp()
Basic constructor.


               
       
    
public StringValueExp(String val)
Creates a new StringValueExp representing the given string.

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

 
	this.val = val;
    
Methods Summary
public javax.management.ValueExpapply(javax.management.ObjectName name)
Applies the ValueExp on a MBean.

param
name The name of the MBean on which the ValueExp will be applied.
return
The ValueExp.
exception
BadStringOperationException
exception
BadBinaryOpValueExpException
exception
BadAttributeValueExpException
exception
InvalidApplicationException

 
	return this;
    
public java.lang.StringgetValue()
Returns the string represented by the StringValueExp instance.

return
the string.

 
	return val;
    
public voidsetMBeanServer(javax.management.MBeanServer s)
Sets the MBean server on which the query is to be performed.

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

 
public java.lang.StringtoString()
Returns the string representing the object.

 
	return "'" + val + "'";