1. /*
  2. * @(#)ValueExp.java 4.21 04/05/18
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.management;
  8. /**
  9. * Represents values that can be passed as arguments to
  10. * relational expressions. Strings, numbers, attributes are valid values
  11. * and should be represented by implementations of <CODE>ValueExp</CODE>.
  12. *
  13. * @since 1.5
  14. */
  15. public interface ValueExp extends java.io.Serializable {
  16. /**
  17. * Applies the ValueExp on a MBean.
  18. *
  19. * @param name The name of the MBean on which the ValueExp will be applied.
  20. *
  21. * @return The <CODE>ValueExp</CODE>.
  22. *
  23. * @exception BadStringOperationException
  24. * @exception BadBinaryOpValueExpException
  25. * @exception BadAttributeValueExpException
  26. * @exception InvalidApplicationException
  27. */
  28. public ValueExp apply(ObjectName name) throws BadStringOperationException, BadBinaryOpValueExpException,
  29. BadAttributeValueExpException, InvalidApplicationException ;
  30. /**
  31. * Sets the MBean server on which the query is to be performed.
  32. *
  33. * @param s The MBean server on which the query is to be performed.
  34. *
  35. * @deprecated This method is not needed because a
  36. * <code>ValueExp</code> can access the MBean server in which it
  37. * is being evaluated by using {@link QueryEval#getMBeanServer()}.
  38. */
  39. @Deprecated
  40. public void setMBeanServer(MBeanServer s) ;
  41. }