Class SimpleBarcodesExpression
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.function.AbstractExpression
-
- org.pentaho.reporting.engine.classic.extensions.modules.sbarcodes.SimpleBarcodesExpression
-
- All Implemented Interfaces:
Serializable,Cloneable,org.pentaho.reporting.engine.classic.core.function.Expression
public class SimpleBarcodesExpression extends org.pentaho.reporting.engine.classic.core.function.AbstractExpressionThis single expression handling all types of barcode can be used in Simple XML report definition using a drawable-field element.
The barcode type can be: 3of9, 3of9ext, code39, code39ext, usd3, usd3ext, usd-3, usd-3ext, codabar, code27, usd4, 2of7, monarch, nw7, usd-4, nw-7, ean13, ean-13, upca, upc-a, isbn, bookland, code128, code128a, code128b, code128c, uccean128, 2of5, std2of5, int2of5, postnet or pdf417. The data as well as type can be retrieved from the datasource fields usingrawDataFieldandrawTypeField. The static type supersedes the type retrieved from the datasource field.- Author:
- Cedric Pronzato
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleBarcodesExpression()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBarHeight()intgetBarWidth()StringgetRawDataField()StringgetRawTypeField()StringgetType()ObjectgetValue()Return the current expression value.booleanisChecksum()booleanisShowText()voidsetBarHeight(int barHeight)voidsetBarWidth(int barWidth)voidsetChecksum(boolean checksum)voidsetRawDataField(String rawDataField)voidsetRawTypeField(String rawTypeField)voidsetShowText(boolean showText)voidsetType(String 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
-
getValue
public Object getValue()
Return the current expression value. The value depends (obviously) on the expression implementation.- Returns:
- the value of the function.
-
getType
public String getType()
-
setType
public void setType(String type)
-
getBarHeight
public int getBarHeight()
-
setBarHeight
public void setBarHeight(int barHeight)
-
getBarWidth
public int getBarWidth()
-
setBarWidth
public void setBarWidth(int barWidth)
-
isChecksum
public boolean isChecksum()
-
setChecksum
public void setChecksum(boolean checksum)
-
isShowText
public boolean isShowText()
-
setShowText
public void setShowText(boolean showText)
-
getRawDataField
public String getRawDataField()
-
setRawDataField
public void setRawDataField(String rawDataField)
-
getRawTypeField
public String getRawTypeField()
-
setRawTypeField
public void setRawTypeField(String rawTypeField)
-
-