Top Description Fields Constructors Methods
javax.management

pack-priv Class BetweenQueryExp

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 binary relations.
Since
1.5

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
BetweenQueryExp()

Basic Constructor.

public
BetweenQueryExp(ValueExp v1, ValueExp v2, ValueExp v3)

Creates a new BetweenQueryExp with v1 checked value, v2 lower bound and v3 upper bound values.

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

Implements javax.management.QueryExp.apply.

Applies the BetweenQueryExp on an MBean.

public ValueExp
getCheckedValue()

Returns the checked value of the query.

public ValueExp
getLowerBound()

Returns the lower bound value of the query.

public ValueExp
getUpperBound()

Returns the upper bound value 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

exp1back to summary
private ValueExp exp1
exp2back to summary
private ValueExp exp2
exp3back to summary
private ValueExp exp3
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.management.QueryEval.serialVersionUID.

Constructor Detail

BetweenQueryExpback to summary
public BetweenQueryExp()

Basic Constructor.

BetweenQueryExpback to summary
public BetweenQueryExp(ValueExp v1, ValueExp v2, ValueExp v3)

Creates a new BetweenQueryExp with v1 checked value, v2 lower bound and v3 upper bound values.

Method Detail

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

Implements javax.management.QueryExp.apply.

Applies the BetweenQueryExp on an MBean.

Parameters
name:ObjectName

The name of the MBean on which the BetweenQueryExp 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

getCheckedValueback to summary
public ValueExp getCheckedValue()

Returns the checked value of the query.

getLowerBoundback to summary
public ValueExp getLowerBound()

Returns the lower bound value of the query.

getUpperBoundback to summary
public ValueExp getUpperBound()

Returns the upper bound value of the query.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns the string representing the object.

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object

Annotations
@Override