Interface Or

All Superinterfaces:
Constraint
All Known Implementing Classes:
OrImpl

public interface Or extends Constraint
Performs a logical disjunction of two other constraints.

To satisfy the Or constraint, the node-tuple must either:

Since:
JCR 2.0
  • Method Details

    • getConstraint1

      Constraint getConstraint1()
      Gets the first constraint.
      Returns:
      the constraint; non-null
    • getConstraint2

      Constraint getConstraint2()
      Gets the second constraint.
      Returns:
      the constraint; non-null