Class IsPresentCondition

java.lang.Object
org.forgerock.opendj.config.conditions.IsPresentCondition
All Implemented Interfaces:
Condition

public final class IsPresentCondition extends Object implements Condition
A condition which evaluates to true if and only if a particular property has any values specified.
  • Constructor Details

    • IsPresentCondition

      public IsPresentCondition(String propertyName)
      Creates a new is present condition.
      Parameters:
      propertyName - The property name.
  • Method Details

    • evaluate

      public boolean evaluate(ManagementContext context, ManagedObject<?> managedObject)
      Description copied from interface: Condition
      Evaluates this condition against the provided client managed object.
      Specified by:
      evaluate in interface Condition
      Parameters:
      context - The client management context.
      managedObject - The client managed object.
      Returns:
      Returns true if this condition is satisfied.
    • evaluate

      public boolean evaluate(ServerManagedObject<?> managedObject)
      Description copied from interface: Condition
      Evaluates this condition against the provided server managed object.
      Specified by:
      evaluate in interface Condition
      Parameters:
      managedObject - The server managed object.
      Returns:
      Returns true if this condition is satisfied.
    • initialize

      public void initialize(AbstractManagedObjectDefinition<?,?> d)
      Description copied from interface: Condition
      Initializes this condition.
      Specified by:
      initialize in interface Condition
      Parameters:
      d - The abstract managed object definition associated with this condition.
    • toString

      public String toString()
      Overrides:
      toString in class Object