Class ContainsCondition
java.lang.Object
org.forgerock.opendj.config.conditions.ContainsCondition
- All Implemented Interfaces:
Condition
A condition which evaluates to
true if and only if a property
contains a particular value.-
Constructor Summary
ConstructorsConstructorDescriptionContainsCondition(String propertyName, String stringValue) Creates a new contains value condition. -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(ManagementContext context, ManagedObject<?> managedObject) Evaluates this condition against the provided client managed object.booleanevaluate(ServerManagedObject<?> managedObject) Evaluates this condition against the provided server managed object.Returns the property definition associated with this condition.Returns the value that must be set for this condition to be fulfilled.voidInitializes this condition.voidsetPropertyValue(ManagedObject<?> managedObject) Modifies the provided managed object so that it has the property value associated with this condition.toString()
-
Constructor Details
-
ContainsCondition
Creates a new contains value condition.- Parameters:
propertyName- The property name.stringValue- The string representation of the required property value.
-
-
Method Details
-
evaluate
Description copied from interface:ConditionEvaluates this condition against the provided client managed object. -
evaluate
Description copied from interface:ConditionEvaluates this condition against the provided server managed object. -
setPropertyValue
Modifies the provided managed object so that it has the property value associated with this condition.- Parameters:
managedObject- The managed object.
-
initialize
Description copied from interface:ConditionInitializes this condition.- Specified by:
initializein interfaceCondition- Parameters:
d- The abstract managed object definition associated with this condition.
-
getPropertyDefinition
Returns the property definition associated with this condition.- Returns:
- the property definition associated with this condition.
-
getPropertyValueAsString
Returns the value that must be set for this condition to be fulfilled.- Returns:
- the value that must be set for this condition to be fulfilled.
-
toString
-