01: /*
02: * Copyright 2006 Day Management AG, Switzerland. All rights reserved.
03: */
04: package javax.jcr.query.qom;
05:
06: /**
07: * Tests the existence of a property.
08: * <p/>
09: * A node-tuple satisfies the constraint if the selector node has a property
10: * named {@link #getPropertyName property}.
11: * <p/>
12: * The query is invalid if:
13: * <ul>
14: * <li>{@link #getSelectorName selector} is not the name of a selector in the
15: * query, or</li>
16: * <li>{@link #getPropertyName property} is not a syntactically valid JCR
17: * name.</li>
18: * </ul>
19: *
20: * @since JCR 2.0
21: */
22: public interface PropertyExistence extends Constraint {
23: /**
24: * Gets the name of the selector against which to apply this constraint.
25: *
26: * @return the selector name; non-null
27: */
28: public String getSelectorName();
29:
30: /**
31: * Gets the name of the property.
32: *
33: * @return the property name; non-null
34: */
35: public String getPropertyName();
36: }
37:
38: // EOF
|