NullSetEventHandler (Velocity 1.4 API)
Keywords: org.apache.velocity.app.event.NullSetEventHandler interface

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.velocity.app.event
Interface NullSetEventHandler

All Superinterfaces:
  EventHandler

All Known Implementing Classes:
  EventCartridge, EventHandlingTestCase, Test

public interface NullSetEventHandler
extends EventHandler

Event handler : lets an app approve / veto writing a log message when RHS of #set() is null.

Version:
  $Id: NullSetEventHandler.java,v 1.2.12.1 2004/03/03 23:22:53 geirm Exp $
Author:
  Geir Magnusson Jr.

Method Summary
`boolean` | `shouldLogOnNullSet(java.lang.String lhs, java.lang.String rhs)` Called when the RHS of a #set() is null, which will result in a null LHS.

Method Detail

### shouldLogOnNullSet

    public boolean shouldLogOnNullSet(java.lang.String lhs,
                                      java.lang.String rhs)

  Called when the RHS of a #set() is null, which will result in a null LHS.

  Parameters:
    `lhs` - reference literal of left-hand-side of set statement
    `rhs` - reference literal of right-hand-side of set statement
  Returns:
    true if log message should be written, false otherwise

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2002 Apache Software Foundation. All Rights Reserved.