Barcode-Lib4J requires Java 9+

Java Class «LineageUPC»

java.lang.Object
de.vwsoft.barcodelib4j.oned.Barcode
de.vwsoft.barcodelib4j.oned.LineageUPC
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
ImplEAN13, ImplEAN8, ImplUPCA, ImplUPCE

public abstract class LineageUPC extends Barcode
Abstract class that provides common functionality for UPC barcode types and their derivatives.

This class is implemented by:

  • Method Details

    • setAddOn

      public void setAddOn(String addOnNumber) throws BarcodeException
      Description copied from class: Barcode
      Sets the Add-On number for this barcode object.
      Overrides:
      setAddOn in class Barcode
      Parameters:
      addOnNumber - a number consisting of either 2 or 5 digits or null (default)
      Throws:
      BarcodeException - if the provided value does not match the expected format
    • getAddOn

      public String getAddOn()
      Description copied from class: Barcode
      Returns the Add-On number assigned to this barcode object or null if no Add-On number is assigned.
      Overrides:
      getAddOn in class Barcode
      Returns:
      the Add-On number assigned to this barcode object or null if no Add-On number is assigned