    001    // Copyright 2010 The Apache Software Foundation
    002    //
    003    // Licensed under the Apache License, Version 2.0 (the "License");
    004    // you may not use this file except in compliance with the License.
    005    // You may obtain a copy of the License at
    006    //
    007    //     http://www.apache.org/licenses/LICENSE-2.0
    008    //
    009    // Unless required by applicable law or agreed to in writing, software
    010    // distributed under the License is distributed on an "AS IS" BASIS,
    011    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    012    // See the License for the specific language governing permissions and
    013    // limitations under the License.
    014
    015    package org.apache.tapestry5.internal;
    016
    017    import org.apache.tapestry5.PropertyConduit;
    018
    019
    020    /**
    021     * Extension to {@link org.apache.tapestry5.PropertyConduit} that adds a method to determine the name of the property.
    022     *
    023     * @since 5.2.0
    024     *
    025     */
    026    public interface InternalPropertyConduit extends PropertyConduit
    027    {
    028        /**
    029         * Returns the name of the property read or updated by the conduit or null.
    030         * If the expression points to a property on a bean (e.g. user.name) this method returns the last property in the chain.
    031         * Otherwise this method returns {@code null}.
    032         *
    033         * @return property name or {@code null}
    034         *
    035         */
    036        String getPropertyName();
    037    }