FileDocCategorySizeDatePackage
OrQueryExp.javaAPI DocJava SE 5 API2120Fri Aug 26 14:57:34 BST 2005javax.management

OrQueryExp

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

Fields Summary
private static final long
serialVersionUID
private QueryExp
exp1
private QueryExp
exp2
Constructors Summary
public OrQueryExp()
Basic Constructor.


    
               
      
    
public OrQueryExp(QueryExp q1, QueryExp q2)
Creates a new OrQueryExp with the specified ValueExps

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

param
name The name of the MBean on which the OrQueryExp 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.

	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 + ") or (" + exp2 + ")";