APIdia Launch Partner
Top Description Fields Constructors Methods
javax.management

pack-priv Class NotQueryExp

extends QueryEval
implements QueryExp
Class Inheritance
All Implemented Interfaces
javax.management.QueryExp, java.io.Serializable

This class is used by the query-building mechanism to represent negations of relational expressions.
Since
1.5

Field Summary

Modifier and TypeField and Description
private QueryExp
private static final long

Constructor Summary

AccessConstructor and Description
public
NotQueryExp()

Basic Constructor.

public
NotQueryExp(QueryExp q)

Creates a new NotQueryExp for negating the specified QueryExp.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

True if the query was successfully applied to the MBean, false otherwise.
apply
(ObjectName
The name of the MBean on which the NotQueryExp will be applied.
name
)

Implements javax.management.QueryExp.apply.

Applies the NotQueryExp on a MBean.

public QueryExp
getNegatedExp()

Returns the negated query expression of the query.

public String
toString()

Overrides java.lang.Object.toString.

Returns the string representing the object.

Inherited from javax.management.QueryEval:
getMBeanServersetMBeanServer

Field Detail

expback to summary
private QueryExp exp
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.management.QueryEval.serialVersionUID.

Constructor Detail

NotQueryExpback to summary
public NotQueryExp()

Basic Constructor.

NotQueryExpback to summary
public NotQueryExp(QueryExp q)

Creates a new NotQueryExp for negating the specified QueryExp.

Method Detail

applyback to summary
public boolean apply(ObjectName name) throws BadStringOperationException, BadBinaryOpValueExpException, BadAttributeValueExpException, InvalidApplicationException

Implements javax.management.QueryExp.apply.

Applies the NotQueryExp on a MBean.

Parameters
name:ObjectName

The name of the MBean on which the NotQueryExp will be applied.

Returns:boolean

True if the query was successfully applied to the MBean, false otherwise.

Exceptions
BadStringOperationException:

Doc from javax.management.QueryExp.apply.

when an invalid string operation is passed to a method for constructing a query

BadBinaryOpValueExpException:

Doc from javax.management.QueryExp.apply.

when an invalid expression is passed to a method for constructing a query

BadAttributeValueExpException:

Doc from javax.management.QueryExp.apply.

when an invalid MBean attribute is passed to a query constructing method

InvalidApplicationException:

Doc from javax.management.QueryExp.apply.

when an invalid apply is attempted

getNegatedExpback to summary
public QueryExp getNegatedExp()

Returns the negated query expression of the query.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns the string representing the object.

Annotations
@Override