Class 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.AbstractExpression
    This 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 using rawDataField and rawTypeField. The static type supersedes the type retrieved from the datasource field.

    Author:
    Cedric Pronzato
    See Also:
    Serialized Form
    • Constructor Detail

      • SimpleBarcodesExpression

        public SimpleBarcodesExpression()
    • 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)