APIdia Launch Partner
Top Description Fields Constructors Methods
javax.management

pack-priv Class NumericValueExp

extends QueryEval
implements ValueExp
Class Inheritance
All Implemented Interfaces
javax.management.ValueExp, java.io.Serializable
Imports
java.io.IOException, .ObjectInputStream, .ObjectOutputStream, .ObjectStreamField

This class represents numbers that are arguments to relational constraints. A NumericValueExp may be used anywhere a ValueExp is required.

The serialVersionUID of this class is -4679739485102359104L.

Since
1.5

Field Summary

Modifier and TypeField and Description
private static final ObjectStreamField[]
private static final long
private Number

Constructor Summary

AccessConstructor and Description
public
NumericValueExp()

Basic constructor.

pack-priv
NumericValueExp(Number val)

Creates a new NumericValue representing the numeric literal @{code 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 double
doubleValue()

Returns a double numeric value

public boolean
isLong()

Returns true is if the numeric value is a long, false otherwise.

public long
longValue()

Returns a long numeric value

private void
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

private void
Inherited from javax.management.QueryEval:
getMBeanServer

Field Detail

serialPersistentFieldsback to summary
private static final ObjectStreamField[] serialPersistentFields
Serial Fields:
val:Number
The numeric value

The serialVersionUID of this class is -4679739485102359104L.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.management.QueryEval.serialVersionUID.

valback to summary
private Number val

Constructor Detail

NumericValueExpback to summary
public NumericValueExp()

Basic constructor.

NumericValueExpback to summary
pack-priv NumericValueExp(Number val)

Creates a new NumericValue representing the numeric literal @{code 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

doubleValueback to summary
public double doubleValue()

Returns a double numeric value

isLongback to summary
public boolean isLong()

Returns true is if the numeric value is a long, false otherwise.

longValueback to summary
public long longValue()

Returns a long numeric value

readObjectback to summary
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException

Deserializes a NumericValueExp from an ObjectInputStream.

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

writeObjectback to summary
private void writeObject(ObjectOutputStream out) throws IOException

Serializes a NumericValueExp to an ObjectOutputStream.