01: /*
02: * Copyright 2006 Day Management AG, Switzerland. All rights reserved.
03: */
04: package javax.jcr.query.qom;
05:
06: /**
07: * Performs a logical disjunction of two other constraints.
08: * <p/>
09: * To satisfy the <code>Or</code> constraint, the node-tuple must either:
10: * <ul>
11: * <li>satisfy {@link #getConstraint1 constraint1} but not
12: * {@link #getConstraint2 constraint2}, or</li>
13: * <li>satisfy {@link #getConstraint2 constraint2} but not
14: * {@link #getConstraint1 constraint1}, or</li>
15: * <li>satisfy both {@link #getConstraint1 constraint1} and
16: * {@link #getConstraint2 constraint2}.</li>
17: * </ul>
18: *
19: * @since JCR 2.0
20: */
21: public interface Or extends Constraint {
22: /**
23: * Gets the first constraint.
24: *
25: * @return the constraint; non-null
26: */
27: public Constraint getConstraint1();
28:
29: /**
30: * Gets the second constraint.
31: *
32: * @return the constraint; non-null
33: */
34: public Constraint getConstraint2();
35: }
36:
37: // EOF
|