01: /*
02: * Copyright 2006 Day Management AG, Switzerland. All rights reserved.
03: */
04: package javax.jcr.query.qom;
05:
06: /**
07: * Evaluates to the length (or lengths, if multi-valued) of a property.
08: * <p/>
09: * The length is computed as though the <code>getLength</code> method (or
10: * <code>getLengths</code>, if multi-valued) of <code>javax.jcr.Property</code>
11: * were called.
12: * <p/>
13: * If {@link #getPropertyValue propertyValue} evaluates to null, the
14: * <code>Length</code> operand also evaluates to null.
15: *
16: * @since JCR 2.0
17: */
18: public interface Length extends DynamicOperand {
19: /**
20: * Gets the property value for which to compute the length.
21: *
22: * @return the property value; non-null
23: */
24: public PropertyValue getPropertyValue();
25: }
26:
27: // EOF
|