Class Conditions
java.lang.Object
org.forgerock.opendj.config.conditions.Conditions
This class consists exclusively of static methods that operate on or return conditions.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Condition
Creates a condition which evaluates totrue
if and only if all of its sub-conditions aretrue
.static Condition
Creates a condition which evaluates totrue
if and only if a property contains a particular value.static Condition
Creates a condition which evaluates tofalse
if and only if the first sub-condition evaluates totrue
and the second sub-condition evaluates tofalse
.static Condition
Creates a condition which evaluates totrue
if and only if a particular property has any values specified.static Condition
Creates a condition which evaluates totrue
if the sub-condition isfalse
, orfalse
if the sub-condition istrue
.static Condition
Creates a condition which evaluates tofalse
if and only if all of its sub-conditions arefalse
.
-
Field Details
-
FALSE
A condition which always evaluates tofalse
. -
TRUE
A condition which always evaluates totrue
.
-
-
Method Details
-
and
Creates a condition which evaluates totrue
if and only if all of its sub-conditions aretrue
.- Parameters:
conditions
- The sub-conditions which be combined using a logical AND.- Returns:
- Returns a condition which evaluates to
true
if and only if all of its sub-conditions aretrue
.
-
contains
Creates a condition which evaluates totrue
if and only if a property contains a particular value.- Parameters:
propertyName
- The property name.propertyStringValue
- The string representation of the required property value.- Returns:
- Returns a condition which evaluates to
true
if and only if a property contains a particular value.
-
implies
Creates a condition which evaluates tofalse
if and only if the first sub-condition evaluates totrue
and the second sub-condition evaluates tofalse
. This can be used to represent if-then relationships.- Parameters:
premise
- The sub-condition which, whentrue
implies that the implication sub-condition must also betrue
.implication
- The sub-condition which, must betrue
when the premise istrue
.- Returns:
- Returns a condition which evaluates to
false
if and only if the first sub-condition evaluates totrue
and the second sub-condition evaluates tofalse
.
-
isPresent
Creates a condition which evaluates totrue
if and only if a particular property has any values specified.- Parameters:
propertyName
- The property name.- Returns:
- Returns a condition which evaluates to
true
if and only if a particular property has any values specified.
-
not
Creates a condition which evaluates totrue
if the sub-condition isfalse
, orfalse
if the sub-condition istrue
.- Parameters:
condition
- The sub-condition which will be inverted.- Returns:
- Returns a condition which evaluates to
true
if the sub-condition isfalse
, orfalse
if the sub-condition istrue
.
-
or
Creates a condition which evaluates tofalse
if and only if all of its sub-conditions arefalse
.- Parameters:
conditions
- The sub-conditions which be combined using a logical OR.- Returns:
- Returns a condition which evaluates to
false
if and only if all of its sub-conditions arefalse
.
-