Package com.nomagic.magicreport.engine
Class ITool.Void
java.lang.Object
com.nomagic.magicreport.engine.ITool.Void
- All Implemented Interfaces:
IVariable,Serializable
- Enclosing interface:
ITool
A void class uses to return in Velocity Tools when you want exactly not return anything to context.
For example:
<code>
public void setValue(String value)
{
}
</code>
This method will return null in Velocity template
<code>
$setValue('value') <-- return null
</code>
To avoid this problem we should Void class.
<code>
public VOID setValue(String value)
{
return Void;
}
</code>
This method will treat as empty String in Velocity template
<code>
$setValue('value') <-- return nothing
</code>
- Since:
- Aug 3, 2007
- See Also:
-
Constructor Summary
Constructors -
Method Summary