Part Number Barcode

Defined in package com.scandit.datacapture.label

PartNumberBarcode
class PartNumberBarcode : BarcodeField

Added in version 6.21.0

A specialized barcode field for capturing part numbers. This predefined field type is configured with default settings optimized for common part number barcode formats used in manufacturing, inventory, and logistics.

Use the builder pattern with PartNumberBarcodeBuilder for convenient configuration, or create instances directly using the various factory methods.

name
@NonNull String getName()

Added in version 6.21.0

The name of this field definition, used to identify it within the label definition.

patterns
@NonNull List<@NonNull String> getPatterns()

Added in version 6.21.0

The regex patterns that identify the target string in the scanned content.

isOptional
boolean isOptional()

Added in version 6.21.0

Whether the field is optional or mandatory. This is helpful when certain fields may not be present on every scan.

numberOfMandatoryInstances
@Nullable Integer getNumberOfMandatoryInstances()

Added in version 7.6.0

The minimum number of instances of this field that must be captured for the label to be considered complete. This is useful for fields that may appear multiple times on a label, such as multiple serial numbers or repeated information.

symbologies
@NonNull List<@NonNull SymbologySettings> getSymbologies()

Added in version 6.21.0

The list of barcode symbologies that this field can accept, along with their specific settings.