Top Description Fields Constructors Methods
javax.management

pack-priv Class OrQueryExp

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 disjunctions of relational expressions.
Since
1.5

Field Summary

Modifier and TypeField and Description
private QueryExp
private QueryExp
private static final long

Constructor Summary

AccessConstructor and Description
public
OrQueryExp()

Basic Constructor.

public
OrQueryExp(QueryExp q1, QueryExp q2)

Creates a new OrQueryExp with the specified ValueExps

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 OrQueryExp will be applied.
name
)

Implements javax.management.QueryExp.apply.

Applies the OrQueryExp on a MBean.

public QueryExp
getLeftExp()

Returns the left query expression.

public QueryExp
getRightExp()

Returns the right query expression.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of this OrQueryExp

Inherited from javax.management.QueryEval:
getMBeanServersetMBeanServer

Field Detail

exp1back to summary
private QueryExp exp1
exp2back to summary
private QueryExp exp2
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.management.QueryEval.serialVersionUID.

Constructor Detail

OrQueryExpback to summary
public OrQueryExp()

Basic Constructor.

OrQueryExpback to summary
public OrQueryExp(QueryExp q1, QueryExp q2)

Creates a new OrQueryExp with the specified ValueExps

Method Detail

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

Implements javax.management.QueryExp.apply.

Applies the OrQueryExp on a MBean.

Parameters
name:ObjectName

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

Returns:boolean

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

Exceptions
BadStringOperationException:
The string passed to the method is invalid.
BadBinaryOpValueExpException:
The expression passed to the method is invalid.
BadAttributeValueExpException:
The attribute value passed to the method is invalid.
InvalidApplicationException:

Doc from javax.management.QueryExp.apply.

when an invalid apply is attempted

getLeftExpback to summary
public QueryExp getLeftExp()

Returns the left query expression.

getRightExpback to summary
public QueryExp getRightExp()

Returns the right query expression.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a string representation of this OrQueryExp

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object

Annotations
@Override