/* * @(#)ValueExp.java 4.21 04/05/18 * * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package javax.management; /** * Represents values that can be passed as arguments to * relational expressions. Strings, numbers, attributes are valid values * and should be represented by implementations of ValueExp. * * @since 1.5 */ public interface ValueExp extends java.io.Serializable { /** * 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 */ public ValueExp apply(ObjectName name) throws BadStringOperationException, BadBinaryOpValueExpException, BadAttributeValueExpException, InvalidApplicationException ; /** * 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. * * @deprecated This method is not needed because a * ValueExp can access the MBean server in which it * is being evaluated by using {@link QueryEval#getMBeanServer()}. */ @Deprecated public void setMBeanServer(MBeanServer s) ; }