Exemplo n.º 1
0
        /// <summary>  Implementation of NullSetEventHandler method
        /// <code>shouldLogOnNullSet()</code>.
        /// *
        /// Called during Velocity merge to determine if when
        /// a #set() results in a null assignment, a warning
        /// is logged.
        /// *
        /// </summary>
        /// <param name="reference">reference from template about to be inserted
        /// </param>
        /// <returns>true if to be logged, false otherwise
        ///
        /// </returns>
        public virtual bool shouldLogOnNullSet(System.String lhs, System.String rhs)
        {
            if (nseh == null)
            {
                return(true);
            }

            return(nseh.shouldLogOnNullSet(lhs, rhs));
        }
        /// <summary>  Implementation of NullSetEventHandler method
        /// <code>shouldLogOnNullSet()</code>.
        /// *
        /// Called during Velocity merge to determine if when
        /// a #set() results in a null assignment, a warning
        /// is logged.
        /// *
        /// </summary>
        /// <param name="reference">reference from template about to be inserted
        /// </param>
        /// <returns>true if to be logged, false otherwise
        ///
        /// </returns>
        public bool shouldLogOnNullSet(String lhs, String rhs)
        {
            if (nseh == null)
            {
                return(true);
            }

            return(nseh.shouldLogOnNullSet(lhs, rhs));
        }