org.pentaho.reporting.engine.classic.core.function.sys
Class IsExportTypeExpression

java.lang.Object
  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.

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
IsExportTypeExpression()
          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

IsExportTypeExpression

public IsExportTypeExpression()
Default constructor.

Method Detail

getExportType

public String getExportType()
Returns the export type string.

Returns:
the export type string.

setExportType

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

Parameters:
exportType - the export type.

getValue

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

Returns:
the value of the function.