org.jboss.mx.remoting.event
Class CompositeQueryExp

java.lang.Object
  extended byorg.jboss.mx.remoting.event.CompositeQueryExp
All Implemented Interfaces:
QueryExp (src) , java.io.Serializable

public class CompositeQueryExp
extends java.lang.Object
implements QueryExp (src) , java.io.Serializable

CompositeQueryExp is a composite QueryExp that allows multiple QueryExp implementations to be chained together (a little easier than trying to use Query class).

See Also:
Serialized Form

Field Summary
static int AND
           
static int OR
           
 
Constructor Summary
CompositeQueryExp(QueryExp (src) [] exp)
          create a composite QueryExp with the default AND operator
CompositeQueryExp(QueryExp (src) [] exp, int operator)
           
 
Method Summary
 boolean apply(ObjectName (src)  objectName)
          Apply this query expression to an MBean.
 void setMBeanServer(MBeanServer (src)  mBeanServer)
          Set the MBeanServer for this query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AND

public static final int AND
See Also:
Constant Field Values (src)

OR

public static final int OR
See Also:
Constant Field Values (src)
Constructor Detail

CompositeQueryExp

public CompositeQueryExp(QueryExp (src) [] exp)
create a composite QueryExp with the default AND operator

Parameters:
exp -

CompositeQueryExp

public CompositeQueryExp(QueryExp (src) [] exp,
                         int operator)
Method Detail

apply

public boolean apply(ObjectName (src)  objectName)
              throws BadStringOperationException (src) ,
                     BadBinaryOpValueExpException (src) ,
                     BadAttributeValueExpException (src) ,
                     InvalidApplicationException (src) 
Description copied from interface: QueryExp (src)
Apply this query expression to an MBean.

Specified by:
apply in interface QueryExp (src)
Parameters:
objectName - the object name of the mbean
Returns:
true or false as the result of the query expression.
Throws:
InvalidApplicationException (src) - when trying to apply a subquery expression to an MBean or an attribute expression to an MBean of the wrong class.
BadStringOperationException (src) - when an invalid string operation is used during query construction
BadAttributeValueExpException (src) - when an invalid MBean attribute is used during query construction
BadBinaryOpValueExpException (src) - when an invalid binary operation is used during query construction

setMBeanServer

public void setMBeanServer(MBeanServer (src)  mBeanServer)
Description copied from interface: QueryExp (src)
Set the MBeanServer for this query. Only MBeans registered in this server can be used in queries.

Specified by:
setMBeanServer in interface QueryExp (src)
Parameters:
mBeanServer - the MBeanServer