OneDExtendedParameters

OneDExtendedParameters

Stores special data of 1D recognized barcode like separate codetext and checksum

Constructor

new OneDExtendedParameters()

Source:
Example
//This sample shows how to get 1D barcode value and checksum
let generator = new BarcodeGenerator(EncodeTypes.EAN_13, "1234567890128");
generator.save("test.png");
let reader = new BarCodeReader("test.png", null,  DecodeType.EAN_13);
reader.readBarCodes().forEach(function(result, i, results)
{
   console.log("BarCode Type: " + result.getCodeTypeName());
   console.log("BarCode CodeText: " + result.getCodeText());
   console.log("BarCode Value: " + result.getExtended().getOneD().getValue());
   console.log("BarCode Checksum: " + result.getExtended().getOneD().getCheckSum());
});

Methods

equals(obj)

Returns a value indicating whether this instance is equal to a specified OneDExtendedParameters value.
Parameters:
Name Type Description
obj An System.Object value to compare to this instance.
Returns:
Type Description
true if obj has the same value as this instance; otherwise, false.
Source:

getCheckSum()

Gets the checksum for 1D barcodes. Value: The checksum for 1D barcode.
Source:

getValue()

Gets the codetext of 1D barcodes without checksum. Value: The codetext of 1D barcodes without checksum.
Source:

hashCode()

Returns the hash code for this instance.
Returns:
Type Description
A 32-bit signed integer hash code.
Source:

isEmpty()

Tests whether all parameters has only default values Value: Returns {@code true} if all parameters has only default values; otherwise, {@code false}.
Source:

toString()

Returns a human-readable string representation of this OneDExtendedParameters.
Returns:
Type Description
A string that represents this OneDExtendedParameters.
Source: