javax.management
Class AttributeValueExp

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.management.AttributeValueExp
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 AttributeValueExp
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 attributes used as arguments to relational constraints. An AttributeValueExp may be used anywhere a ValueExp is required.

Since:
1.5
See Also:
Serialized Form

Constructor Summary
AttributeValueExp sample code for javax.management.AttributeValueExp.AttributeValueExp() definition code for javax.management.AttributeValueExp.AttributeValueExp() ()
          Deprecated. An instance created with this constructor cannot be used in a query.
AttributeValueExp sample code for javax.management.AttributeValueExp.AttributeValueExp(java.lang.String) definition code for javax.management.AttributeValueExp.AttributeValueExp(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  attr)
          Creates a new AttributeValueExp representing the specified object attribute, named attr.
 
Method Summary
 ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp apply sample code for javax.management.AttributeValueExp.apply(javax.management.ObjectName) definition code for javax.management.AttributeValueExp.apply(javax.management.ObjectName) (ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name)
          Applies the AttributeValueExp on an MBean.
protected  Object sample code for java.lang.Object definition code for java.lang.Object getAttribute sample code for javax.management.AttributeValueExp.getAttribute(javax.management.ObjectName) definition code for javax.management.AttributeValueExp.getAttribute(javax.management.ObjectName) (ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name)
          Return the value of the given attribute in the named MBean.
 String sample code for java.lang.String definition code for java.lang.String getAttributeName sample code for javax.management.AttributeValueExp.getAttributeName() definition code for javax.management.AttributeValueExp.getAttributeName() ()
          Returns a string representation of the name of the attribute.
 void setMBeanServer sample code for javax.management.AttributeValueExp.setMBeanServer(javax.management.MBeanServer) definition code for javax.management.AttributeValueExp.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.AttributeValueExp.toString() definition code for javax.management.AttributeValueExp.toString() ()
          Returns the string representing its value.
 
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

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

@Deprecated
public AttributeValueExp()
Deprecated. An instance created with this constructor cannot be used in a query.

An AttributeValueExp with a null attribute.


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

public AttributeValueExp(String sample code for java.lang.String definition code for java.lang.String  attr)
Creates a new AttributeValueExp representing the specified object attribute, named attr.

Parameters:
attr - the name of the attribute whose value is the value of this ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp .
Method Detail

getAttributeName sample code for javax.management.AttributeValueExp.getAttributeName() definition code for javax.management.AttributeValueExp.getAttributeName()

public String sample code for java.lang.String definition code for java.lang.String  getAttributeName()
Returns a string representation of the name of the attribute.

Returns:
the attribute name.

apply sample code for javax.management.AttributeValueExp.apply(javax.management.ObjectName) definition code for javax.management.AttributeValueExp.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 AttributeValueExp on an 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 AttributeValueExp will be applied.
Returns:
The ValueExp.
Throws:
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
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

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

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

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.AttributeValueExp.setMBeanServer(javax.management.MBeanServer) definition code for javax.management.AttributeValueExp.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.

getAttribute sample code for javax.management.AttributeValueExp.getAttribute(javax.management.ObjectName) definition code for javax.management.AttributeValueExp.getAttribute(javax.management.ObjectName)

protected Object sample code for java.lang.Object definition code for java.lang.Object  getAttribute(ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  name)
Return the value of the given attribute in the named MBean. If the attempt to access the attribute generates an exception, return null.

Parameters:
name - the name of the MBean whose attribute is to be returned.
Returns:
the value of the attribute, or null if it could not be obtained.