org.pentaho.reporting.engine.classic.core.function
Class IsEmptyExpression

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.function.AbstractExpression
      extended by org.pentaho.reporting.engine.classic.core.function.IsEmptyExpression
All Implemented Interfaces:
Serializable, Cloneable, Expression

Deprecated. Use a Formula Instead

public class IsEmptyExpression
extends AbstractExpression

Checks whether a field is empty. A field is considered empty, if it contains the value 'null', or an string that is empty or only consists of whitespaces or a number that evaluates to zero.

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
IsEmptyExpression()
          Deprecated. Default constructor.
 
Method Summary
 String getField()
          Deprecated. Returns the name of the field from where to read the value.
 Object getValue()
          Deprecated. Return the current expression value.
 void setField(String field)
          Deprecated. Defines the name of the field from where to read the value.
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractExpression
clone, getDataRow, getDependencyLevel, getInstance, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsEmptyExpression

public IsEmptyExpression()
Deprecated. 
Default constructor.

Method Detail

getField

public String getField()
Deprecated. 
Returns the name of the field from where to read the value.

Returns:
the field.

setField

public void setField(String field)
Deprecated. 
Defines the name of the field from where to read the value.

Parameters:
field - the field.

getValue

public Object getValue()
Deprecated. 
Return the current expression value.

The value depends (obviously) on the expression implementation.

Returns:
the value of the function.