org.rhq.core.domain.criteria
Enum Criteria.NonBindingOverrideFilter
java.lang.Object
java.lang.Enum<Criteria.NonBindingOverrideFilter>
org.rhq.core.domain.criteria.Criteria.NonBindingOverrideFilter
- All Implemented Interfaces:
- Serializable, Comparable<Criteria.NonBindingOverrideFilter>
- Enclosing class:
- Criteria
public static enum Criteria.NonBindingOverrideFilter
- extends Enum<Criteria.NonBindingOverrideFilter>
This is the type of a filter value when the override for that filter does not
define any query parameter. ON means the filter is enabled and will take effect,
OFF means the filter will not be used in the query.
Example, from AlertDefinitionCriteria:
private NonBindingOverrideFilter filterResourceOnly; // requires overrides - finds only those associated with a resource
...
filterOverrides.put("resourceTypeOnly", "resourceType IS NOT NULL"); // notice no ? parameter
Note: Typically a null value is analogous to OFF.
Enum Constant Summary |
OFF
|
ON
|
ON
public static final Criteria.NonBindingOverrideFilter ON
OFF
public static final Criteria.NonBindingOverrideFilter OFF
values
public static Criteria.NonBindingOverrideFilter[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Criteria.NonBindingOverrideFilter c : Criteria.NonBindingOverrideFilter.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Criteria.NonBindingOverrideFilter valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.