Class OperationDataMatrixBarcode


  • public class OperationDataMatrixBarcode
    extends Object
    A DataMatrix barcode.
    • Constructor Detail

      • OperationDataMatrixBarcode

        public OperationDataMatrixBarcode()
    • Method Detail

      • getCharset

        @Nullable
        public @Nullable String getCharset()
        Used to specify the character set in which the barcode contents should be stored.
        Returns:
        charset
      • setCharset

        public void setCharset​(String charset)
      • getErrorCorrection

        @Nullable
        public @Nullable Integer getErrorCorrection()
        Used to adjust the error correction level for generated Data Matrix codes. The higher the level, the more error-resistant the barcode, ensuring that damaged codes will still be readable. A level of 1 to 8 can be specified. minimum: 1 maximum: 8
        Returns:
        errorCorrection
      • setErrorCorrection

        public void setErrorCorrection​(Integer errorCorrection)
      • getMargin

        @Nullable
        public @Nullable Integer getMargin()
        Used to specify the width of the empty frame that should be generated around the barcode. This shall use the same metrics as the position - if no position is present, the default (mm) shall be assumed. minimum: 0
        Returns:
        margin
      • setMargin

        public void setMargin​(Integer margin)
      • getPages

        @Nullable
        public @Nullable String getPages()
        The page range for generating barcodes. Individual pages or a range of pages can be defined here. If the text is empty, the entire file will be exported (e.g.: \"1-10\" or \"1,2,5-10\")
        Returns:
        pages
      • setPages

        public void setPages​(String pages)
      • getPosition

        @Nullable
        public @Nullable OperationRectangle getPosition()
        Get position
        Returns:
        position
      • getRotation

        @Nullable
        public @Nullable Integer getRotation()
        Used to specify the barcode's rotation in 90-degree increments. When there is a value that falls under a full 90-degree increment, the next higher increment will be automatically selected. minimum: 0
        Returns:
        rotation
      • setRotation

        public void setRotation​(Integer rotation)
      • getShape

        @Nullable
        public @Nullable OperationDataMatrixBarcode.ShapeEnum getShape()
        Can be used to force a specific shape for generated Data Matrix codes. * default = Select an appropriate shape. * rectangle = Force a rectangular shape. * square = Force a square shape.
        Returns:
        shape
      • getValue

        @NotNull
        public @NotNull String getValue()
        Contains the value that should be encoded in the barcode. Depending on the selected barcode format, there may be specific criteria for the data structure. For a description, please refer to the chapter \"Barcodes\"
        Returns:
        value
      • setValue

        public void setValue​(String value)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object