Top Description Fields Constructors Methods
javax.management

pack-priv Class InstanceOfQueryExp

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

This class is used by the query building mechanism for isInstanceOf expressions.
Since
1.6

Field Summary

Modifier and TypeField and Description
private StringValueExp
private static final long

Constructor Summary

AccessConstructor and Description
public
InstanceOfQueryExp(StringValueExp
The StringValueExp returning the name of the class of which selected MBeans should be instances.
classNameValue
)

Creates a new InstanceOfExp with a specific class name.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

True if the MBean specified by the name is instance of the class.
apply
(ObjectName
The name of the MBean on which the InstanceOf will be applied.
name
)

Implements javax.management.QueryExp.apply.

Applies the InstanceOf on a MBean.

public StringValueExp

Returns:

The StringValueExp returning the name of the class of which selected MBeans should be instances.
getClassNameValue
()

Returns the class name.

public String

Returns:

a string representation of this InstanceOfQueryExp.
toString
()

Overrides java.lang.Object.toString.

Returns a string representation of this InstanceOfQueryExp.

Inherited from javax.management.QueryEval:
getMBeanServersetMBeanServer

Field Detail

classNameValueback to summary
private StringValueExp classNameValue
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.management.QueryEval.serialVersionUID.

Constructor Detail

InstanceOfQueryExpback to summary
public InstanceOfQueryExp(StringValueExp classNameValue)

Creates a new InstanceOfExp with a specific class name.

Parameters
classNameValue:StringValueExp

The StringValueExp returning the name of the class of which selected MBeans should be instances.

Method Detail

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

Implements javax.management.QueryExp.apply.

Applies the InstanceOf on a MBean.

Parameters
name:ObjectName

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

Returns:boolean

True if the MBean specified by the name is instance of the class.

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

getClassNameValueback to summary
public StringValueExp getClassNameValue()

Returns the class name.

Returns:StringValueExp

The StringValueExp returning the name of the class of which selected MBeans should be instances.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a string representation of this InstanceOfQueryExp.

Returns:String

a string representation of this InstanceOfQueryExp.