Class ITool.Void

java.lang.Object
com.nomagic.magicreport.engine.ITool.Void
All Implemented Interfaces:
IVariable, Serializable
Enclosing interface:
ITool

@OpenApiAll public static class ITool.Void extends Object implements IVariable
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 Details

    • Void

      public Void()
  • Method Details

    • toString

      public String toString()
      Returns a string representation of the object.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the object.