org.apache.velocity.app.event
Interface ReferenceInsertionEventHandler
- EventHandler
- EventCartridge, EventHandlingTestCase, Test
public interface ReferenceInsertionEventHandler
Reference 'Stream insertion' event handler. Called with object
that will be inserted into stream via value.toString().
Please return an Object that will toString() nicely :)
Version:
- Geir Magnusson Jr.
Object | referenceInsert(String reference, Object value) - A call-back which is executed during Velocity merge before a
reference value is inserted into the output stream.
|
referenceInsert
public Object referenceInsert(String reference,
Object value)
A call-back which is executed during Velocity merge before a
reference value is inserted into the output stream.
reference
- Reference from template about to be inserted.value
- Value about to be inserted (after its
toString()
method is called).
- Object on which
toString()
should be
called for output.
Copyright B) 2002 Apache Software Foundation. All Rights Reserved.