Class NotCondition

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

public final class NotCondition extends Object implements Condition
A condition which evaluates to true if the sub-condition is false, or false if the sub-condition is true.
  • Method Details

    • evaluate

      public boolean evaluate(ManagementContext context, ManagedObject<?> managedObject) throws LdapException
      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.
      Throws:
      LdapException - If the condition could not be evaluated.
    • evaluate

      public boolean evaluate(ServerManagedObject<?> managedObject) throws ConfigException
      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.
      Throws:
      ConfigException - If the condition could not be evaluated due to an unexpected configuration exception.
    • initialize

      public void initialize(AbstractManagedObjectDefinition<?,?> d) throws Exception
      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.
      Throws:
      Exception - If this condition could not be initialized.
    • toString

      public String toString()
      Overrides:
      toString in class Object