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