javax.management
Class Query

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.management.Query

public class Query
extends Object sample code for java.lang.Object definition code for java.lang.Object

Constructs query object constraints. The static methods provided return query expressions that may be used in listing and enumerating MBeans. Individual constraint construction methods allow only appropriate types as arguments. Composition of calls can construct arbitrary nestings of constraints, as the following example illustrates:

 QueryExp exp = Query.and(Query.gt(Query.attr("age"),Query.value(5)),
                          Query.match(Query.attr("name"),
                                      Query.value("Smith")));
 

Since:
1.5

Field Summary
static int DIV sample code for javax.management.Query.DIV definition code for javax.management.Query.DIV
          A code representing the div(javax.management.ValueExp, javax.management.ValueExp) sample code for javax.management.Query.div(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.div(javax.management.ValueExp, javax.management.ValueExp) expression.
static int EQ sample code for javax.management.Query.EQ definition code for javax.management.Query.EQ
          A code representing the eq(javax.management.ValueExp, javax.management.ValueExp) sample code for javax.management.Query.eq(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.eq(javax.management.ValueExp, javax.management.ValueExp) query.
static int GE sample code for javax.management.Query.GE definition code for javax.management.Query.GE
          A code representing the geq(javax.management.ValueExp, javax.management.ValueExp) sample code for javax.management.Query.geq(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.geq(javax.management.ValueExp, javax.management.ValueExp) query.
static int GT sample code for javax.management.Query.GT definition code for javax.management.Query.GT
          A code representing the gt(javax.management.ValueExp, javax.management.ValueExp) sample code for javax.management.Query.gt(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.gt(javax.management.ValueExp, javax.management.ValueExp) query.
static int LE sample code for javax.management.Query.LE definition code for javax.management.Query.LE
          A code representing the leq(javax.management.ValueExp, javax.management.ValueExp) sample code for javax.management.Query.leq(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.leq(javax.management.ValueExp, javax.management.ValueExp) query.
static int LT sample code for javax.management.Query.LT definition code for javax.management.Query.LT
          A code representing the lt(javax.management.ValueExp, javax.management.ValueExp) sample code for javax.management.Query.lt(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.lt(javax.management.ValueExp, javax.management.ValueExp) query.
static int MINUS sample code for javax.management.Query.MINUS definition code for javax.management.Query.MINUS
          A code representing the minus(javax.management.ValueExp, javax.management.ValueExp) sample code for javax.management.Query.minus(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.minus(javax.management.ValueExp, javax.management.ValueExp) expression.
static int PLUS sample code for javax.management.Query.PLUS definition code for javax.management.Query.PLUS
          A code representing the plus(javax.management.ValueExp, javax.management.ValueExp) sample code for javax.management.Query.plus(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.plus(javax.management.ValueExp, javax.management.ValueExp) expression.
static int TIMES sample code for javax.management.Query.TIMES definition code for javax.management.Query.TIMES
          A code representing the times(javax.management.ValueExp, javax.management.ValueExp) sample code for javax.management.Query.times(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.times(javax.management.ValueExp, javax.management.ValueExp) expression.
 
Constructor Summary
Query sample code for javax.management.Query.Query() definition code for javax.management.Query.Query() ()
          Basic constructor.
 
Method Summary
static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp and sample code for javax.management.Query.and(javax.management.QueryExp, javax.management.QueryExp) definition code for javax.management.Query.and(javax.management.QueryExp, javax.management.QueryExp) (QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp  q1, QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp  q2)
          Returns a query expression that is the conjunction of two other query expressions.
static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp anySubString sample code for javax.management.Query.anySubString(javax.management.AttributeValueExp, javax.management.StringValueExp) definition code for javax.management.Query.anySubString(javax.management.AttributeValueExp, javax.management.StringValueExp) (AttributeValueExp sample code for javax.management.AttributeValueExp definition code for javax.management.AttributeValueExp  a, StringValueExp sample code for javax.management.StringValueExp definition code for javax.management.StringValueExp  s)
          Returns a query expression that represents a matching constraint on a string argument.
static AttributeValueExp sample code for javax.management.AttributeValueExp definition code for javax.management.AttributeValueExp attr sample code for javax.management.Query.attr(java.lang.String) definition code for javax.management.Query.attr(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name)
          Returns a new attribute expression.
static AttributeValueExp sample code for javax.management.AttributeValueExp definition code for javax.management.AttributeValueExp attr sample code for javax.management.Query.attr(java.lang.String, java.lang.String) definition code for javax.management.Query.attr(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  className, String sample code for java.lang.String definition code for java.lang.String  name)
          Returns a new qualified attribute expression.
static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp between sample code for javax.management.Query.between(javax.management.ValueExp, javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.between(javax.management.ValueExp, javax.management.ValueExp, javax.management.ValueExp) (ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v1, ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v2, ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v3)
          Returns a query expression that represents the constraint that one value is between two other values.
static AttributeValueExp sample code for javax.management.AttributeValueExp definition code for javax.management.AttributeValueExp classattr sample code for javax.management.Query.classattr() definition code for javax.management.Query.classattr() ()
          Returns a new class attribute expression which can be used in any Query call that expects a ValueExp.
static ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp div sample code for javax.management.Query.div(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.div(javax.management.ValueExp, javax.management.ValueExp) (ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  value1, ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  value2)
          Returns a binary expression representing the quotient of two numeric values.
static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp eq sample code for javax.management.Query.eq(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.eq(javax.management.ValueExp, javax.management.ValueExp) (ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v1, ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v2)
          Returns a query expression that represents an equality constraint on two values.
static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp finalSubString sample code for javax.management.Query.finalSubString(javax.management.AttributeValueExp, javax.management.StringValueExp) definition code for javax.management.Query.finalSubString(javax.management.AttributeValueExp, javax.management.StringValueExp) (AttributeValueExp sample code for javax.management.AttributeValueExp definition code for javax.management.AttributeValueExp  a, StringValueExp sample code for javax.management.StringValueExp definition code for javax.management.StringValueExp  s)
          Returns a query expression that represents a matching constraint on a string argument.
static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp geq sample code for javax.management.Query.geq(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.geq(javax.management.ValueExp, javax.management.ValueExp) (ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v1, ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v2)
          Returns a query expression that represents a "greater than or equal to" constraint on two values.
static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp gt sample code for javax.management.Query.gt(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.gt(javax.management.ValueExp, javax.management.ValueExp) (ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v1, ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v2)
          Returns a query expression that represents a "greater than" constraint on two values.
static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp in sample code for javax.management.Query.in(javax.management.ValueExp, javax.management.ValueExp[]) definition code for javax.management.Query.in(javax.management.ValueExp, javax.management.ValueExp[]) (ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  val, ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp [] valueList)
          Returns an expression constraining a value to be one of an explicit list.
static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp initialSubString sample code for javax.management.Query.initialSubString(javax.management.AttributeValueExp, javax.management.StringValueExp) definition code for javax.management.Query.initialSubString(javax.management.AttributeValueExp, javax.management.StringValueExp) (AttributeValueExp sample code for javax.management.AttributeValueExp definition code for javax.management.AttributeValueExp  a, StringValueExp sample code for javax.management.StringValueExp definition code for javax.management.StringValueExp  s)
          Returns a query expression that represents a matching constraint on a string argument.
static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp leq sample code for javax.management.Query.leq(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.leq(javax.management.ValueExp, javax.management.ValueExp) (ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v1, ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v2)
          Returns a query expression that represents a "less than or equal to" constraint on two values.
static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp lt sample code for javax.management.Query.lt(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.lt(javax.management.ValueExp, javax.management.ValueExp) (ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v1, ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v2)
          Returns a query expression that represents a "less than" constraint on two values.
static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp match sample code for javax.management.Query.match(javax.management.AttributeValueExp, javax.management.StringValueExp) definition code for javax.management.Query.match(javax.management.AttributeValueExp, javax.management.StringValueExp) (AttributeValueExp sample code for javax.management.AttributeValueExp definition code for javax.management.AttributeValueExp  a, StringValueExp sample code for javax.management.StringValueExp definition code for javax.management.StringValueExp  s)
          Returns a query expression that represents a matching constraint on a string argument.
static ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp minus sample code for javax.management.Query.minus(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.minus(javax.management.ValueExp, javax.management.ValueExp) (ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  value1, ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  value2)
          Returns a binary expression representing the difference between two numeric values.
static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp not sample code for javax.management.Query.not(javax.management.QueryExp) definition code for javax.management.Query.not(javax.management.QueryExp) (QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp  queryExp)
          Returns a constraint that is the negation of its argument.
static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp or sample code for javax.management.Query.or(javax.management.QueryExp, javax.management.QueryExp) definition code for javax.management.Query.or(javax.management.QueryExp, javax.management.QueryExp) (QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp  q1, QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp  q2)
          Returns a query expression that is the disjunction of two other query expressions.
static ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp plus sample code for javax.management.Query.plus(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.plus(javax.management.ValueExp, javax.management.ValueExp) (ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  value1, ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  value2)
          Returns a binary expression representing the sum of two numeric values, or the concatenation of two string values.
static ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp times sample code for javax.management.Query.times(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.times(javax.management.ValueExp, javax.management.ValueExp) (ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  value1, ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  value2)
          Returns a binary expression representing the product of two numeric values.
static ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp value sample code for javax.management.Query.value(boolean) definition code for javax.management.Query.value(boolean) (boolean val)
          Returns a boolean value expression that can be used in any Query call that expects a ValueExp.
static ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp value sample code for javax.management.Query.value(double) definition code for javax.management.Query.value(double) (double val)
          Returns a numeric value expression that can be used in any Query call that expects a ValueExp.
static ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp value sample code for javax.management.Query.value(float) definition code for javax.management.Query.value(float) (float val)
          Returns a numeric value expression that can be used in any Query call that expects a ValueExp.
static ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp value sample code for javax.management.Query.value(int) definition code for javax.management.Query.value(int) (int val)
          Returns a numeric value expression that can be used in any Query call that expects a ValueExp.
static ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp value sample code for javax.management.Query.value(long) definition code for javax.management.Query.value(long) (long val)
          Returns a numeric value expression that can be used in any Query call that expects a ValueExp.
static ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp value sample code for javax.management.Query.value(java.lang.Number) definition code for javax.management.Query.value(java.lang.Number) (Number sample code for java.lang.Number definition code for java.lang.Number  val)
          Returns a numeric value expression that can be used in any Query call that expects a ValueExp.
static StringValueExp sample code for javax.management.StringValueExp definition code for javax.management.StringValueExp value sample code for javax.management.Query.value(java.lang.String) definition code for javax.management.Query.value(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  val)
          Returns a new string expression.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

GT sample code for javax.management.Query.GT

public static final int GT
A code representing the gt(javax.management.ValueExp, javax.management.ValueExp) sample code for javax.management.Query.gt(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.gt(javax.management.ValueExp, javax.management.ValueExp) query. This is chiefly of interest for the serialized form of queries.

See Also:
Constant Field Values

LT sample code for javax.management.Query.LT

public static final int LT
A code representing the lt(javax.management.ValueExp, javax.management.ValueExp) sample code for javax.management.Query.lt(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.lt(javax.management.ValueExp, javax.management.ValueExp) query. This is chiefly of interest for the serialized form of queries.

See Also:
Constant Field Values

GE sample code for javax.management.Query.GE

public static final int GE
A code representing the geq(javax.management.ValueExp, javax.management.ValueExp) sample code for javax.management.Query.geq(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.geq(javax.management.ValueExp, javax.management.ValueExp) query. This is chiefly of interest for the serialized form of queries.

See Also:
Constant Field Values

LE sample code for javax.management.Query.LE

public static final int LE
A code representing the leq(javax.management.ValueExp, javax.management.ValueExp) sample code for javax.management.Query.leq(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.leq(javax.management.ValueExp, javax.management.ValueExp) query. This is chiefly of interest for the serialized form of queries.

See Also:
Constant Field Values

EQ sample code for javax.management.Query.EQ

public static final int EQ
A code representing the eq(javax.management.ValueExp, javax.management.ValueExp) sample code for javax.management.Query.eq(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.eq(javax.management.ValueExp, javax.management.ValueExp) query. This is chiefly of interest for the serialized form of queries.

See Also:
Constant Field Values

PLUS sample code for javax.management.Query.PLUS

public static final int PLUS
A code representing the plus(javax.management.ValueExp, javax.management.ValueExp) sample code for javax.management.Query.plus(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.plus(javax.management.ValueExp, javax.management.ValueExp) expression. This is chiefly of interest for the serialized form of queries.

See Also:
Constant Field Values

MINUS sample code for javax.management.Query.MINUS

public static final int MINUS
A code representing the minus(javax.management.ValueExp, javax.management.ValueExp) sample code for javax.management.Query.minus(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.minus(javax.management.ValueExp, javax.management.ValueExp) expression. This is chiefly of interest for the serialized form of queries.

See Also:
Constant Field Values

TIMES sample code for javax.management.Query.TIMES

public static final int TIMES
A code representing the times(javax.management.ValueExp, javax.management.ValueExp) sample code for javax.management.Query.times(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.times(javax.management.ValueExp, javax.management.ValueExp) expression. This is chiefly of interest for the serialized form of queries.

See Also:
Constant Field Values

DIV sample code for javax.management.Query.DIV

public static final int DIV
A code representing the div(javax.management.ValueExp, javax.management.ValueExp) sample code for javax.management.Query.div(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.div(javax.management.ValueExp, javax.management.ValueExp) expression. This is chiefly of interest for the serialized form of queries.

See Also:
Constant Field Values
Constructor Detail

Query sample code for javax.management.Query() definition code for javax.management.Query()

public Query()
Basic constructor.

Method Detail

and sample code for javax.management.Query.and(javax.management.QueryExp, javax.management.QueryExp) definition code for javax.management.Query.and(javax.management.QueryExp, javax.management.QueryExp)

public static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp  and(QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp  q1,
                           QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp  q2)
Returns a query expression that is the conjunction of two other query expressions.

Parameters:
q1 - A query expression.
q2 - Another query expression.
Returns:
The conjunction of the two arguments.

or sample code for javax.management.Query.or(javax.management.QueryExp, javax.management.QueryExp) definition code for javax.management.Query.or(javax.management.QueryExp, javax.management.QueryExp)

public static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp  or(QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp  q1,
                          QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp  q2)
Returns a query expression that is the disjunction of two other query expressions.

Parameters:
q1 - A query expression.
q2 - Another query expression.
Returns:
The disjunction of the two arguments.

gt sample code for javax.management.Query.gt(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.gt(javax.management.ValueExp, javax.management.ValueExp)

public static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp  gt(ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v1,
                          ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v2)
Returns a query expression that represents a "greater than" constraint on two values.

Parameters:
v1 - A value expression.
v2 - Another value expression.
Returns:
A "greater than" constraint on the arguments.

geq sample code for javax.management.Query.geq(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.geq(javax.management.ValueExp, javax.management.ValueExp)

public static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp  geq(ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v1,
                           ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v2)
Returns a query expression that represents a "greater than or equal to" constraint on two values.

Parameters:
v1 - A value expression.
v2 - Another value expression.
Returns:
A "greater than or equal to" constraint on the arguments.

leq sample code for javax.management.Query.leq(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.leq(javax.management.ValueExp, javax.management.ValueExp)

public static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp  leq(ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v1,
                           ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v2)
Returns a query expression that represents a "less than or equal to" constraint on two values.

Parameters:
v1 - A value expression.
v2 - Another value expression.
Returns:
A "less than or equal to" constraint on the arguments.

lt sample code for javax.management.Query.lt(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.lt(javax.management.ValueExp, javax.management.ValueExp)

public static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp  lt(ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v1,
                          ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v2)
Returns a query expression that represents a "less than" constraint on two values.

Parameters:
v1 - A value expression.
v2 - Another value expression.
Returns:
A "less than" constraint on the arguments.

eq sample code for javax.management.Query.eq(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.eq(javax.management.ValueExp, javax.management.ValueExp)

public static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp  eq(ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v1,
                          ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v2)
Returns a query expression that represents an equality constraint on two values.

Parameters:
v1 - A value expression.
v2 - Another value expression.
Returns:
A "equal to" constraint on the arguments.

between sample code for javax.management.Query.between(javax.management.ValueExp, javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.between(javax.management.ValueExp, javax.management.ValueExp, javax.management.ValueExp)

public static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp  between(ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v1,
                               ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v2,
                               ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  v3)
Returns a query expression that represents the constraint that one value is between two other values.

Parameters:
v1 - A value expression that is "between" v2 and v3.
v2 - Value expression that represents a boundary of the constraint.
v3 - Value expression that represents a boundary of the constraint.
Returns:
The constraint that v1 lies between v2 and v3.

match sample code for javax.management.Query.match(javax.management.AttributeValueExp, javax.management.StringValueExp) definition code for javax.management.Query.match(javax.management.AttributeValueExp, javax.management.StringValueExp)

public static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp  match(AttributeValueExp sample code for javax.management.AttributeValueExp definition code for javax.management.AttributeValueExp  a,
                             StringValueExp sample code for javax.management.StringValueExp definition code for javax.management.StringValueExp  s)
Returns a query expression that represents a matching constraint on a string argument. The matching syntax is consistent with file globbing: Supports "?", "*", "[", each of which may be escaped with "\"; Character classes may use "!" for negation and "-" for range. (* for any character sequence, ? for a single arbitrary character, [...] for a character sequence). For example: a*b?c would match a string starting with the character a, followed by any number of characters, followed by a b, any single character, and a c.

Parameters:
a - An attribute expression
s - A string value expression representing a matching constraint
Returns:
A query expression that represents the matching constraint on the string argument.

attr sample code for javax.management.Query.attr(java.lang.String) definition code for javax.management.Query.attr(java.lang.String)

public static AttributeValueExp sample code for javax.management.AttributeValueExp definition code for javax.management.AttributeValueExp  attr(String sample code for java.lang.String definition code for java.lang.String  name)

Returns a new attribute expression.

Evaluating this expression for a given objectName includes performing MBeanServer.getAttribute(objectName, name) sample code for javax.management.MBeanServer.getAttribute(javax.management.ObjectName, java.lang.String) definition code for javax.management.MBeanServer.getAttribute(javax.management.ObjectName, java.lang.String) .

Parameters:
name - The name of the attribute.
Returns:
An attribute expression for the attribute named name.

attr sample code for javax.management.Query.attr(java.lang.String, java.lang.String) definition code for javax.management.Query.attr(java.lang.String, java.lang.String)

public static AttributeValueExp sample code for javax.management.AttributeValueExp definition code for javax.management.AttributeValueExp  attr(String sample code for java.lang.String definition code for java.lang.String  className,
                                     String sample code for java.lang.String definition code for java.lang.String  name)

Returns a new qualified attribute expression.

Evaluating this expression for a given objectName includes performing MBeanServer.getObjectInstance(objectName) sample code for javax.management.MBeanServer.getObjectInstance(javax.management.ObjectName) definition code for javax.management.MBeanServer.getObjectInstance(javax.management.ObjectName) and MBeanServer.getAttribute(objectName, name) sample code for javax.management.MBeanServer.getAttribute(javax.management.ObjectName, java.lang.String) definition code for javax.management.MBeanServer.getAttribute(javax.management.ObjectName, java.lang.String) .

Parameters:
className - The name of the class possessing the attribute.
name - The name of the attribute.
Returns:
An attribute expression for the attribute named name.

classattr sample code for javax.management.Query.classattr() definition code for javax.management.Query.classattr()

public static AttributeValueExp sample code for javax.management.AttributeValueExp definition code for javax.management.AttributeValueExp  classattr()

Returns a new class attribute expression which can be used in any Query call that expects a ValueExp.

Evaluating this expression for a given objectName includes performing MBeanServer.getObjectInstance(objectName) sample code for javax.management.MBeanServer.getObjectInstance(javax.management.ObjectName) definition code for javax.management.MBeanServer.getObjectInstance(javax.management.ObjectName) .

Returns:
A class attribute expression.

not sample code for javax.management.Query.not(javax.management.QueryExp) definition code for javax.management.Query.not(javax.management.QueryExp)

public static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp  not(QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp  queryExp)
Returns a constraint that is the negation of its argument.

Parameters:
queryExp - The constraint to negate.
Returns:
A negated constraint.

in sample code for javax.management.Query.in(javax.management.ValueExp, javax.management.ValueExp[]) definition code for javax.management.Query.in(javax.management.ValueExp, javax.management.ValueExp[])

public static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp  in(ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  val,
                          ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp [] valueList)
Returns an expression constraining a value to be one of an explicit list.

Parameters:
val - A value to be constrained.
valueList - An array of ValueExps.
Returns:
A QueryExp that represents the constraint.

value sample code for javax.management.Query.value(java.lang.String) definition code for javax.management.Query.value(java.lang.String)

public static StringValueExp sample code for javax.management.StringValueExp definition code for javax.management.StringValueExp  value(String sample code for java.lang.String definition code for java.lang.String  val)
Returns a new string expression.

Parameters:
val - The string value.
Returns:
A ValueExp object containing the string argument.

value sample code for javax.management.Query.value(java.lang.Number) definition code for javax.management.Query.value(java.lang.Number)

public static ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  value(Number sample code for java.lang.Number definition code for java.lang.Number  val)
Returns a numeric value expression that can be used in any Query call that expects a ValueExp.

Parameters:
val - An instance of Number.
Returns:
A ValueExp object containing the argument.

value sample code for javax.management.Query.value(int) definition code for javax.management.Query.value(int)

public static ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  value(int val)
Returns a numeric value expression that can be used in any Query call that expects a ValueExp.

Parameters:
val - An int value.
Returns:
A ValueExp object containing the argument.

value sample code for javax.management.Query.value(long) definition code for javax.management.Query.value(long)

public static ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  value(long val)
Returns a numeric value expression that can be used in any Query call that expects a ValueExp.

Parameters:
val - A long value.
Returns:
A ValueExp object containing the argument.

value sample code for javax.management.Query.value(float) definition code for javax.management.Query.value(float)

public static ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  value(float val)
Returns a numeric value expression that can be used in any Query call that expects a ValueExp.

Parameters:
val - A float value.
Returns:
A ValueExp object containing the argument.

value sample code for javax.management.Query.value(double) definition code for javax.management.Query.value(double)

public static ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  value(double val)
Returns a numeric value expression that can be used in any Query call that expects a ValueExp.

Parameters:
val - A double value.
Returns:
A ValueExp object containing the argument.

value sample code for javax.management.Query.value(boolean) definition code for javax.management.Query.value(boolean)

public static ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  value(boolean val)
Returns a boolean value expression that can be used in any Query call that expects a ValueExp.

Parameters:
val - A boolean value.
Returns:
A ValueExp object containing the argument.

plus sample code for javax.management.Query.plus(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.plus(javax.management.ValueExp, javax.management.ValueExp)

public static ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  plus(ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  value1,
                            ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  value2)
Returns a binary expression representing the sum of two numeric values, or the concatenation of two string values.

Parameters:
value1 - The first '+' operand.
value2 - The second '+' operand.
Returns:
A ValueExp representing the sum or concatenation of the two arguments.

times sample code for javax.management.Query.times(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.times(javax.management.ValueExp, javax.management.ValueExp)

public static ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  times(ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  value1,
                             ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  value2)
Returns a binary expression representing the product of two numeric values.

Parameters:
value1 - The first '*' operand.
value2 - The second '*' operand.
Returns:
A ValueExp representing the product.

minus sample code for javax.management.Query.minus(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.minus(javax.management.ValueExp, javax.management.ValueExp)

public static ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  minus(ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  value1,
                             ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  value2)
Returns a binary expression representing the difference between two numeric values.

Parameters:
value1 - The first '-' operand.
value2 - The second '-' operand.
Returns:
A ValueExp representing the difference between two arguments.

div sample code for javax.management.Query.div(javax.management.ValueExp, javax.management.ValueExp) definition code for javax.management.Query.div(javax.management.ValueExp, javax.management.ValueExp)

public static ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  div(ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  value1,
                           ValueExp sample code for javax.management.ValueExp definition code for javax.management.ValueExp  value2)
Returns a binary expression representing the quotient of two numeric values.

Parameters:
value1 - The first '/' operand.
value2 - The second '/' operand.
Returns:
A ValueExp representing the quotient of two arguments.

initialSubString sample code for javax.management.Query.initialSubString(javax.management.AttributeValueExp, javax.management.StringValueExp) definition code for javax.management.Query.initialSubString(javax.management.AttributeValueExp, javax.management.StringValueExp)

public static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp  initialSubString(AttributeValueExp sample code for javax.management.AttributeValueExp definition code for javax.management.AttributeValueExp  a,
                                        StringValueExp sample code for javax.management.StringValueExp definition code for javax.management.StringValueExp  s)
Returns a query expression that represents a matching constraint on a string argument. The value must start with the given string value.

Parameters:
a - An attribute expression.
s - A string value expression representing the beginning of the string value.
Returns:
The constraint that a matches s.

anySubString sample code for javax.management.Query.anySubString(javax.management.AttributeValueExp, javax.management.StringValueExp) definition code for javax.management.Query.anySubString(javax.management.AttributeValueExp, javax.management.StringValueExp)

public static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp  anySubString(AttributeValueExp sample code for javax.management.AttributeValueExp definition code for javax.management.AttributeValueExp  a,
                                    StringValueExp sample code for javax.management.StringValueExp definition code for javax.management.StringValueExp  s)
Returns a query expression that represents a matching constraint on a string argument. The value must contain the given string value.

Parameters:
a - An attribute expression.
s - A string value expression representing the substring.
Returns:
The constraint that a matches s.

finalSubString sample code for javax.management.Query.finalSubString(javax.management.AttributeValueExp, javax.management.StringValueExp) definition code for javax.management.Query.finalSubString(javax.management.AttributeValueExp, javax.management.StringValueExp)

public static QueryExp sample code for javax.management.QueryExp definition code for javax.management.QueryExp  finalSubString(AttributeValueExp sample code for javax.management.AttributeValueExp definition code for javax.management.AttributeValueExp  a,
                                      StringValueExp sample code for javax.management.StringValueExp definition code for javax.management.StringValueExp  s)
Returns a query expression that represents a matching constraint on a string argument. The value must contain the given string value.

Parameters:
a - An attribute expression.
s - A string value expression representing the end of the string value.
Returns:
The constraint that a matches s.