javax.management
Class StringValueExp

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.management.StringValueExp
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp

public class StringValueExp
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp

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

Since:
1.5
See Also:
Serialized Form

Constructor Summary
StringValueExp sample code for javax.management.StringValueExp.StringValueExp() definition code for javax.management.StringValueExp.StringValueExp() ()
          Basic constructor.
StringValueExp sample code for javax.management.StringValueExp.StringValueExp(java.lang.String) definition code for javax.management.StringValueExp.StringValueExp(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  val)
          Creates a new StringValueExp representing the given string.
 
Method Summary
 ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp apply sample code for javax.management.StringValueExp.apply(javax.management.ObjectName) definition code for javax.management.StringValueExp.apply(javax.management.ObjectName) (ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name)
          Applies the ValueExp on a MBean.
 String sample code for java.lang.String definition code for java.lang.String getValue sample code for javax.management.StringValueExp.getValue() definition code for javax.management.StringValueExp.getValue() ()
          Returns the string represented by the StringValueExp instance.
 void setMBeanServer sample code for javax.management.StringValueExp.setMBeanServer(javax.management.MBeanServer) definition code for javax.management.StringValueExp.setMBeanServer(javax.management.MBeanServer) (MBeanServer sample code for javax.management.MBeanServer definition code for javax.management.MBeanServer  s)
          Sets the MBean server on which the query is to be performed.
 String sample code for java.lang.String definition code for java.lang.String toString sample code for javax.management.StringValueExp.toString() definition code for javax.management.StringValueExp.toString() ()
          Returns the string representing the object.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

StringValueExp sample code for javax.management.StringValueExp() definition code for javax.management.StringValueExp()

public StringValueExp()
Basic constructor.


StringValueExp sample code for javax.management.StringValueExp(java.lang.String) definition code for javax.management.StringValueExp(java.lang.String)

public StringValueExp(String sample code for java.lang.String definition code for java.lang.String  val)
Creates a new StringValueExp representing the given string.

Parameters:
val - the string that will be the value of this expression
Method Detail

getValue sample code for javax.management.StringValueExp.getValue() definition code for javax.management.StringValueExp.getValue()

public String sample code for java.lang.String definition code for java.lang.String  getValue()
Returns the string represented by the StringValueExp instance.

Returns:
the string.

toString sample code for javax.management.StringValueExp.toString() definition code for javax.management.StringValueExp.toString()

public String sample code for java.lang.String definition code for java.lang.String  toString()
Returns the string representing the object.

Overrides:
toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a string representation of the object.

setMBeanServer sample code for javax.management.StringValueExp.setMBeanServer(javax.management.MBeanServer) definition code for javax.management.StringValueExp.setMBeanServer(javax.management.MBeanServer)

public void setMBeanServer(MBeanServer sample code for javax.management.MBeanServer definition code for javax.management.MBeanServer  s)
Sets the MBean server on which the query is to be performed.

Specified by:
setMBeanServer sample code for javax.management.ValueExp.setMBeanServer(javax.management.MBeanServer) definition code for javax.management.ValueExp.setMBeanServer(javax.management.MBeanServer) in interface ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp
Parameters:
s - The MBean server on which the query is to be performed.

apply sample code for javax.management.StringValueExp.apply(javax.management.ObjectName) definition code for javax.management.StringValueExp.apply(javax.management.ObjectName)

public ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  apply(ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name)
               throws BadStringOperationException sample code for javax.management.BadStringOperationException definition code for javax.management.BadStringOperationException ,
                      BadBinaryOpValueExpException sample code for javax.management.BadBinaryOpValueExpException definition code for javax.management.BadBinaryOpValueExpException ,
                      BadAttributeValueExpException sample code for javax.management.BadAttributeValueExpException definition code for javax.management.BadAttributeValueExpException ,
                      InvalidApplicationException sample code for javax.management.InvalidApplicationException definition code for javax.management.InvalidApplicationException 
Applies the ValueExp on a MBean.

Specified by:
apply sample code for javax.management.ValueExp.apply(javax.management.ObjectName) definition code for javax.management.ValueExp.apply(javax.management.ObjectName) in interface ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp
Parameters:
name - The name of the MBean on which the ValueExp will be applied.
Returns:
The ValueExp.
Throws:
BadStringOperationException sample code for javax.management.BadStringOperationException definition code for javax.management.BadStringOperationException
BadBinaryOpValueExpException sample code for javax.management.BadBinaryOpValueExpException definition code for javax.management.BadBinaryOpValueExpException
BadAttributeValueExpException sample code for javax.management.BadAttributeValueExpException definition code for javax.management.BadAttributeValueExpException
InvalidApplicationException sample code for javax.management.InvalidApplicationException definition code for javax.management.InvalidApplicationException