Top Description Fields Constructors Methods
javax.management

pack-priv Class MatchQueryExp

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 AttributeValueExp
private String
private static final long

Constructor Summary

AccessConstructor and Description
public
MatchQueryExp()

Basic Constructor.

public
MatchQueryExp(AttributeValueExp a, StringValueExp s)

Creates a new MatchQueryExp where the specified AttributeValueExp matches the specified pattern StringValueExp.

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

Implements javax.management.QueryExp.apply.

Applies the MatchQueryExp on a MBean.

public AttributeValueExp
getAttribute()

Returns the attribute of the query.

public String
getPattern()

Returns the pattern of the query.

public String
toString()

Overrides java.lang.Object.toString.

Returns the string representing the object

private static boolean
Inherited from javax.management.QueryEval:
getMBeanServersetMBeanServer

Field Detail

expback to summary
private AttributeValueExp exp
patternback to summary
private String pattern
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.management.QueryEval.serialVersionUID.

Constructor Detail

MatchQueryExpback to summary
public MatchQueryExp()

Basic Constructor.

MatchQueryExpback to summary
public MatchQueryExp(AttributeValueExp a, StringValueExp s)

Creates a new MatchQueryExp where the specified AttributeValueExp matches the specified pattern StringValueExp.

Method Detail

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

Implements javax.management.QueryExp.apply.

Applies the MatchQueryExp on a MBean.

Parameters
name:ObjectName

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

getAttributeback to summary
public AttributeValueExp getAttribute()

Returns the attribute of the query.

getPatternback to summary
public String getPattern()

Returns the pattern 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

wildmatchback to summary
private static boolean wildmatch(String s, String p)