Interface IBarcodeFilter

  • All Implemented Interfaces:
    java.io.Serializable

    
    public interface IBarcodeFilter
     implements Serializable
                        

    An interface for a barcode filtering that can be used in barcode scanning RTU-UI components. You can customize the filtering of barcode results coming from RTU-UI barcode scanners by implementing a subclass of this class and pass this class to the barcode scanning RTU-UI component as a part of configuration.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Boolean acceptsBarcode(BarcodeItem barcode) Accepts or rejects a scanned barcode.
      abstract Boolean shouldAdd(BarcodeItem barcode, List<BarcodeItem> addedBarcodes) Accepts or rejects a scanned barcode in the context of already accepted barcodes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • acceptsBarcode

         abstract Boolean acceptsBarcode(BarcodeItem barcode)

        Accepts or rejects a scanned barcode.

        Parameters:
        barcode - The barcode to be accepted or rejected by the filter.
      • shouldAdd

         abstract Boolean shouldAdd(BarcodeItem barcode, List<BarcodeItem> addedBarcodes)

        Accepts or rejects a scanned barcode in the context of already accepted barcodes.

        Parameters:
        barcode - The barcode to be accepted or rejected by the filter.
        addedBarcodes - List of current already accepted barcodes.