Interface And

  • All Superinterfaces:
    Constraint
    All Known Implementing Classes:
    AndImpl

    public interface And
    extends Constraint
    Performs a logical conjunction of two other constraints.

    To satisfy the And constraint, a node-tuple must satisfy both constraint1 and constraint2.

    Since:
    JCR 2.0
    • Method Detail

      • getConstraint1

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

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