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

NotQueryExp

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

Fields Summary
private static final long
serialVersionUID
private QueryExp
exp
Constructors Summary
public NotQueryExp()
Basic Constructor.

    

              
       
    
public NotQueryExp(QueryExp q)
Creates a new NotQueryExp for negating the specified QueryExp.

 
	exp = q;
    
Methods Summary
public booleanapply(javax.management.ObjectName name)
Applies the NotQueryExp on a MBean.

param
name The name of the MBean on which the NotQueryExp will be applied.
return
True if the query was successfully applied to the MBean, false otherwise.
exception
BadStringOperationException
exception
BadBinaryOpValueExpException
exception
BadAttributeValueExpException
exception
InvalidApplicationException

 
	return exp.apply(name) == false;   
    
public javax.management.QueryExpgetNegatedExp()
Returns the negated query expression of the query.

 
	return exp;
    
public java.lang.StringtoString()
Returns the string representing the object.

 
	return "not (" + exp + ")";