APIdia Launch Partner
Top Description Fields Constructors Methods
javax.management

pack-priv Class BooleanValueExp

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

This class represents a boolean value. A BooleanValueExp may be used anywhere a ValueExp is required.
Since
1.5

Field Summary

Modifier and TypeField and Description
private static final long
private boolean

Constructor Summary

AccessConstructor and Description
pack-priv
BooleanValueExp(boolean val)

Creates a new BooleanValueExp representing the boolean literal val.

pack-priv
BooleanValueExp(Boolean val)

Creates a new BooleanValueExp representing the Boolean object val.

Method Summary

Modifier and TypeMethod and Description
public ValueExp

Returns:

The ValueExp.
apply
(ObjectName
The name of the MBean on which the ValueExp will be applied.
name
)

Implements javax.management.ValueExp.apply.

Applies the ValueExp on a MBean.

public Boolean
getValue()

Returns the Boolean object representing the value of the BooleanValueExp object.

public void
setMBeanServer(MBeanServer s)

Overrides javax.management.QueryEval.setMBeanServer.

Implements javax.management.ValueExp.setMBeanServer.

Deprecated

Sets the MBean server on which the query is to be performed.

public String
toString()

Overrides java.lang.Object.toString.

Returns the string representing the object.

Inherited from javax.management.QueryEval:
getMBeanServer

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.management.QueryEval.serialVersionUID.

valback to summary
private boolean val

Constructor Detail

BooleanValueExpback to summary
pack-priv BooleanValueExp(boolean val)

Creates a new BooleanValueExp representing the boolean literal val.

BooleanValueExpback to summary
pack-priv BooleanValueExp(Boolean val)

Creates a new BooleanValueExp representing the Boolean object val.

Method Detail

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

Implements javax.management.ValueExp.apply.

Applies the ValueExp on a MBean.

Parameters
name:ObjectName

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

Returns:ValueExp

The ValueExp.

Exceptions
BadStringOperationException:

Doc from javax.management.ValueExp.apply.

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

BadBinaryOpValueExpException:

Doc from javax.management.ValueExp.apply.

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

BadAttributeValueExpException:

Doc from javax.management.ValueExp.apply.

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

InvalidApplicationException:

Doc from javax.management.ValueExp.apply.

when an invalid apply is attempted

getValueback to summary
public Boolean getValue()

Returns the Boolean object representing the value of the BooleanValueExp object.

setMBeanServerback to summary
public void setMBeanServer(MBeanServer s)

Overrides javax.management.QueryEval.setMBeanServer.

Implements javax.management.ValueExp.setMBeanServer.

Doc from javax.management.ValueExp.setMBeanServer.

Deprecated

Sets the MBean server on which the query is to be performed.

Annotations
@Deprecated
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns the string representing the object.