Class IsExportTypeExpression
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.function.AbstractExpression
-
- 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
Constructors Constructor Description IsExportTypeExpression()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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.
-
-