Class IsExportTypeExpression

  extended by org.pentaho.reporting.engine.classic.core.function.AbstractExpression
      extended by org.pentaho.reporting.engine.classic.core.function.sys.IsExportTypeExpression
All Implemented Interfaces:
Serializable, Cloneable, Expression

public class IsExportTypeExpression
extends AbstractExpression

Tests, whether a certain export type is currently used. This matches the given export type with the export type that is specified by the output-target. The given export type can be a partial pattern, in which case this expression tests, whether the given export type is a sub-type of the output-target's type.

To test whether a table-export is used, specifiy the export type as "table" and it will match all table exports.

Thomas Morgner
See Also:
Serialized Form

Constructor Summary
          Default constructor.
Method Summary
 String getExportType()
          Returns the export type string.
 Object getValue()
          Return Boolean.TRUE, if the specified export type matches the used export type, Boolean.FALSE otherwise.
 void setExportType(String exportType)
          Defines the export type.
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


public IsExportTypeExpression()
Default constructor.

Method Detail


public String getExportType()
Returns the export type string.

the export type string.


public void setExportType(String exportType)
Defines the export type.

exportType - the export type.


public Object getValue()
Return Boolean.TRUE, if the specified export type matches the used export type, Boolean.FALSE otherwise.

the value of the function.