Interface Condition

All Known Implementing Classes:
AllMatch, ConditionImpl

public interface Condition
Represents a condition that can be checked on an element. Conditions are used in CfLocator.should(Condition) method.
See Also:
  • Method Details

    • getName

      String getName()
      Returns:
      name of condition
    • expect

      void expect(CfLocator locator)
      throw if condition not pass
    • negate

      Condition negate(String newName)
      Returns:
      negated condition with new name
    • isPassIfNotFound

      default boolean isPassIfNotFound()
      Returns:
      should pass if given element not exists
    • negate

      default Condition negate()
      Returns:
      negated condition