HIBCLICPrimaryDataCodetext

HIBCLICPrimaryDataCodetext

Class for encoding and decoding the text embedded in the HIBC LIC code which stores primary data.

This sample shows how to encode and decode HIBC LIC using HIBCLICPrimaryCodetext.

Constructor

new HIBCLICPrimaryDataCodetext()

Source:
Example
let complexCodetext  = new HIBCLICPrimaryCodetext();
complexCodetext.setBarcodeType(EncodeTypes.HIBCQRLIC);
complexCodetext.setData(new PrimaryData());
complexCodetext.getData().setProductOrCatalogNumber("12345");
complexCodetext.getData().setLabelerIdentificationCode("A999");
complexCodetext.getData().setUnitOfMeasureID(1);
let generator = new ComplexBarcodeGenerator(complexCodetext);
let image = generator.generateBarCodeImage(BarCodeImageFormat.PNG);
let reader = new BarCodeReader(image, null, DecodeType.HIBCQRLIC);
reader.readBarCodes();
let codetext = reader.getFoundBarCodes()[0].getCodeText();
let result = ComplexCodetextReader.tryDecodeHIBCLIC(codetext) ;
print("Product or catalog number: " + result.getData().getProductOrCatalogNumber());
print("Labeler identification code: " + result.getData().getLabelerIdentificationCode());
print("Unit of measure ID: " + result.getData().getUnitOfMeasureID());

Methods

equals(obj)

Returns a value indicating whether this instance is equal to a specified {@code HIBCLICPrimaryDataCodetext} value.

Parameters:
Name Type Description
obj An {@code HIBCLICPrimaryDataCodetext} value to compare to this instance.
Returns:
Type Description
{@code true} if obj has the same value as this instance; otherwise, {@code false}.
Source:

getConstructedCodetext()

Constructs codetext

Returns:
Type Description
Constructed codetext
Source:

getData()

Identifies primary data.

Source:

hashCode()

Returns the hash code for this instance.

Returns:
Type Description
A 32-bit signed integer hash code.
Source:

initFromString(constructedCodetext)

Initializes instance from constructed codetext.

Parameters:
Name Type Description
constructedCodetext Constructed codetext.
Source:

setData()

Identifies primary data.

Source: