XMOJO 5 API Docs

javax.management
Class AttributeValueExp

java.lang.Object
  |
  +--javax.management.AttributeValueExp
All Implemented Interfaces:
java.io.Serializable, ValueExp

public class AttributeValueExp
extends java.lang.Object
implements ValueExp

This class represents attributes used as arguments to relational constraints. An AttributeValueExp may be used anywhere a ValueExp is required.

See Also:
Serialized Form

Constructor Summary
AttributeValueExp()
          Basic Constructor.
AttributeValueExp(java.lang.String attr)
          Creates a new AttributeValueExp representing the specified object attribute, named attr.
 
Method Summary
 ValueExp apply(ObjectName object)
          Applies the AttributeValueExp on an MBean.
protected  java.lang.Object getAttribute(java.lang.Object mo)
           
 java.lang.String getAttributeName()
          Returns a string representation of the name of the attribute.
 void setMBeanServer(MBeanServer server)
          Sets the MBeanServer on which the query is to be accessed.
 java.lang.String toString()
          Returns the string representing its value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeValueExp

public AttributeValueExp()
Basic Constructor.

AttributeValueExp

public AttributeValueExp(java.lang.String attr)
Creates a new AttributeValueExp representing the specified object attribute, named attr.
Parameters:
attr - creates AttributeValueExp with the specified attribute.
Method Detail

apply

public ValueExp apply(ObjectName object)
               throws BadAttributeValueExpException,
                      InvalidApplicationException,
                      BadStringOperationException,
                      BadBinaryOpValueExpException
Applies the AttributeValueExp on an MBean.
Specified by:
apply in interface ValueExp
Parameters:
object - The MBean objectname on which the AttributeValueExp will be applied.
Returns:
The ValueExp.
Throws:
BadAttributeValueExpException - This ExpException is thrown when an invalid MBean attribute is passed to a query constructing method.
InvalidApplicationException - This exception is thrown when an attempt is made to apply either of the following: A subquery expression to an MBean A qualified attribute expression to an MBean of the wrong class
BadStringOperationException - This exception is thrown when an invalid string operation is passed to a method for constructing a query.
BadBinaryOpValueExpException - This exception is thrown when an invalid expression is passed to a method for constructing a query.

getAttributeName

public java.lang.String getAttributeName()
Returns a string representation of the name of the attribute.
Returns:
A string representation of the name of the attribute.

setMBeanServer

public void setMBeanServer(MBeanServer server)
Sets the MBeanServer on which the query is to be accessed.
Specified by:
setMBeanServer in interface ValueExp
Parameters:
s - - The MBeanServer on which the query is to be accessed.

toString

public java.lang.String toString()
Returns the string representing its value
Overrides:
toString in class java.lang.Object

getAttribute

protected java.lang.Object getAttribute(java.lang.Object mo)

XMOJO 5 API Docs

Copyright ©2003 XMOJO.org. All Rights Reserved.