javax.jcr.query.qom.Or Maven / Gradle / Ivy
/*
* Copyright 2009 Day Management AG, Switzerland. All rights reserved.
*/
package javax.jcr.query.qom;
/**
* Performs a logical disjunction of two other constraints.
*
* To satisfy the Or
constraint, the node-tuple must either:
* - satisfy {@link #getConstraint1 constraint1} but not {@link
* #getConstraint2 constraint2}, or
- satisfy {@link #getConstraint2
* constraint2} but not {@link #getConstraint1 constraint1}, or
- satisfy
* both {@link #getConstraint1 constraint1} and {@link #getConstraint2
* constraint2}.
*
* @since JCR 2.0
*/
public interface Or
extends Constraint {
/**
* Gets the first constraint.
*
* @return the constraint; non-null
*/
public Constraint getConstraint1();
/**
* Gets the second constraint.
*
* @return the constraint; non-null
*/
public Constraint getConstraint2();
}