Top Description Fields Constructors Methods
javax.management

public Class StringValueExp

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

Represents strings that are arguments to relational constraints. A StringValueExp may be used anywhere a ValueExp is required.
Since
1.5

Field Summary

Modifier and TypeField and Description
private static final long
private String

Constructor Summary

AccessConstructor and Description
public
StringValueExp()

Basic constructor.

public
StringValueExp(String
the string that will be the value of this expression
val
)

Creates a new StringValueExp representing the given string.

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 String

Returns:

the string.
getValue
()

Returns the string represented by the StringValueExp instance.

public void
setMBeanServer(MBeanServer
The MBean server on which the query is to be performed.
s
)

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 java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID
valback to summary
private String val

Constructor Detail

StringValueExpback to summary
public StringValueExp()

Basic constructor.

StringValueExpback to summary
public StringValueExp(String val)

Creates a new StringValueExp representing the given string.

Parameters
val:String

the string that will be the value of this expression

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.

Annotations
@Override
Exceptions
BadStringOperationException:
when an invalid string operation is passed to a method for constructing a query
BadBinaryOpValueExpException:
when an invalid expression is passed to a method for constructing a query
BadAttributeValueExpException:
when an invalid MBean attribute is passed to a query constructing method
InvalidApplicationException:
when an invalid apply is attempted
getValueback to summary
public String getValue()

Returns the string represented by the StringValueExp instance.

Returns:String

the string.

setMBeanServerback to summary
public void setMBeanServer(MBeanServer s)

Implements javax.management.ValueExp.setMBeanServer.

Deprecated

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

Parameters
s:MBeanServer

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.

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object