FileDocCategorySizeDatePackage
AndQueryExp.javaAPI DocJava SE 5 API2339Fri Aug 26 14:57:32 BST 2005javax.management

AndQueryExp

public class AndQueryExp extends QueryEval implements QueryExp
This class is used by the query building mechanism to represent conjunctions of relational expressions.
serial
include
since
1.5

Fields Summary
private static final long
serialVersionUID
private QueryExp
exp1
private QueryExp
exp2
Constructors Summary
public AndQueryExp()
Default constructor.



           
       
    
public AndQueryExp(QueryExp q1, QueryExp q2)
Creates a new AndQueryExp with q1 and q2 QueryExp.

	exp1 = q1;
	exp2 = q2; 
    
Methods Summary
public booleanapply(javax.management.ObjectName name)
Applies the AndQueryExp on a MBean.

param
name The name of the MBean on which the AndQueryExp will be applied.
return
True if the query was successfully applied to the MBean, false otherwise.
exception
BadStringOperationException The string passed to the method is invalid.
exception
BadBinaryOpValueExpException The expression passed to the method is invalid.
exception
BadAttributeValueExpException The attribute value passed to the method is invalid.
exception
InvalidApplicationException An attempt has been made to apply a subquery expression to a managed object or a qualified attribute expression to a managed object of the wrong class.

 
	return exp1.apply(name) && exp2.apply(name);
    
public javax.management.QueryExpgetLeftExp()
Returns the left query expression.

 
	return exp1;
    
public javax.management.QueryExpgetRightExp()
Returns the right query expression.

 
	return exp2;
    
public java.lang.StringtoString()
Returns a string representation of this AndQueryExp

     return "(" + exp1 + ") and (" + exp2 + ")";