PropertyValue.java :  » 6.0-JDK-Modules » jsr-283 » javax » jcr » query » qom » Java Open Source

Java Open Source » 6.0 JDK Modules » jsr 283 
jsr 283 » javax » jcr » query » qom » PropertyValue.java
/*
 * Copyright 2006 Day Management AG, Switzerland. All rights reserved.
 */
package javax.jcr.query.qom;

/**
 * Evaluates to the value (or values, if multi-valued) of a property.
 * <p/>
 * If, for a node-tuple, the {@link #getSelectorName selector} node does not
 * have a property named {@link #getPropertyName property}, the operand
 * evaluates to null.
 * <p/>
 * The query is invalid if:
 * <ul>
 * <li>{@link #getSelectorName selector} is not the name of a selector in the
 * query, or</li>
 * <li>{@link #getPropertyName property} is not a syntactically valid JCR
 * name.</li>
 * </ul>
 *
 * @since JCR 2.0
 */
public interface PropertyValue
        extends DynamicOperand {
    /**
     * Gets the name of the selector against which to evaluate this operand.
     *
     * @return the selector name; non-null
     */
    public String getSelectorName();

    /**
     * Gets the name of the property.
     *
     * @return the property name; non-null
     */
    public String getPropertyName();
}

// EOF
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.