HIBCLICCombinedCodetext

Inheritance: java.lang.Object, com.aspose.barcode.complexbarcode.HIBCLICComplexCodetext

public class HIBCLICCombinedCodetext extends HIBCLICComplexCodetext

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


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

 HIBCLICCombinedCodetext combinedCodetext = new HIBCLICCombinedCodetext();
 combinedCodetext.setBarcodeType(EncodeTypes.HIBCQRLIC);
 combinedCodetext.setPrimaryData(new PrimaryData());
 combinedCodetext.getPrimaryData().setProductOrCatalogNumber("12345");
 combinedCodetext.getPrimaryData().setLabelerIdentificationCode("A999");
 combinedCodetext.getPrimaryData().setUnitOfMeasureID(1);
 combinedCodetext.setSecondaryAndAdditionalData(new SecondaryAndAdditionalData());
 combinedCodetext.getSecondaryAndAdditionalData().setExpiryDate(new Date());
 combinedCodetext.getSecondaryAndAdditionalData().setExpiryDateFormat(HIBCLICDateFormat.MMDDYY);
 combinedCodetext.getSecondaryAndAdditionalData().setQuantity(30);
 combinedCodetext.getSecondaryAndAdditionalData().setLotNumber("LOT123");
 combinedCodetext.getSecondaryAndAdditionalData().setSerialNumber("SERIAL123");
 combinedCodetext.getSecondaryAndAdditionalData().setDateOfManufacture(new Date());
 ComplexBarcodeGenerator generator = new ComplexBarcodeGenerator(combinedCodetext);
 {
     BufferedImage image = generator.generateBarCodeImage();
     BarCodeReader reader = new BarCodeReader(image, DecodeType.HIBCQRLIC);
     {
         reader.readBarCodes();
         String codetext = reader.getFoundBarCodes()[0].getCodeText();
         HIBCLICCombinedCodetext result = (HIBCLICCombinedCodetext)ComplexCodetextReader.tryDecodeHIBCLIC(codetext);
         System.out.println("Product or catalog number: " + result.getPrimaryData().getProductOrCatalogNumber());
         System.out.println("Labeler identification code: " + result.getPrimaryData().getLabelerIdentificationCode());
         System.out.println("Unit of measure ID: " + result.getPrimaryData().getUnitOfMeasureID());
         System.out.println("Expiry date: " + result.getSecondaryAndAdditionalData().getExpiryDate());
         System.out.println("Quantity: " + result.getSecondaryAndAdditionalData().getQuantity());
         System.out.println("Lot number: " + result.getSecondaryAndAdditionalData().getLotNumber());
         System.out.println("Serial number: " + result.getSecondaryAndAdditionalData().getSerialNumber());
         System.out.println("Date of manufacture: " + result.getSecondaryAndAdditionalData().getDateOfManufacture());
     }
 }

Constructors

ConstructorDescription
HIBCLICCombinedCodetext()

Methods

MethodDescription
equals(Object obj)Returns a value indicating whether this instance is equal to a specified HIBCLICCombinedCodetext value.
getBarcodeType()Gets or sets barcode type.
getClass()
getConstructedCodetext()Constructs codetext
getPrimaryData()Identifies primary data.
getSecondaryAndAdditionalData()Identifies secondary and additional supplemental data.
hashCode()Returns the hash code for this instance.
initFromString(String constructedCodetext)Initializes instance from constructed codetext.
notify()
notifyAll()
setBarcodeType(BaseEncodeType value)Gets or sets barcode type.
setPrimaryData(PrimaryData value)Identifies primary data.
setSecondaryAndAdditionalData(SecondaryAndAdditionalData value)Identifies secondary and additional supplemental data.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

HIBCLICCombinedCodetext()

public HIBCLICCombinedCodetext()

equals(Object obj)

public boolean equals(Object obj)

Returns a value indicating whether this instance is equal to a specified HIBCLICCombinedCodetext value.

Parameters:

ParameterTypeDescription
objjava.lang.ObjectAn HIBCLICCombinedCodetext value to compare to this instance.

Returns: boolean - true if obj has the same value as this instance; otherwise, false .

getBarcodeType()

public BaseEncodeType getBarcodeType()

Gets or sets barcode type. HIBC LIC codetext can be encoded using HIBCCode39LIC, HIBCCode128LIC, HIBCAztecLIC, HIBCDataMatrixLIC and HIBCQRLIC encode types. Default value: HIBCCode39LIC.

Returns: BaseEncodeType - Barcode type.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getConstructedCodetext()

public String getConstructedCodetext()

Constructs codetext

Returns: java.lang.String - Constructed codetext

getPrimaryData()

public PrimaryData getPrimaryData()

Identifies primary data.

Returns: PrimaryData

getSecondaryAndAdditionalData()

public SecondaryAndAdditionalData getSecondaryAndAdditionalData()

Identifies secondary and additional supplemental data.

Returns: SecondaryAndAdditionalData

hashCode()

public int hashCode()

Returns the hash code for this instance.

Returns: int - A 32-bit signed integer hash code.

initFromString(String constructedCodetext)

public void initFromString(String constructedCodetext)

Initializes instance from constructed codetext.

Parameters:

ParameterTypeDescription
constructedCodetextjava.lang.StringConstructed codetext.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setBarcodeType(BaseEncodeType value)

public void setBarcodeType(BaseEncodeType value)

Gets or sets barcode type. HIBC LIC codetext can be encoded using HIBCCode39LIC, HIBCCode128LIC, HIBCAztecLIC, HIBCDataMatrixLIC and HIBCQRLIC encode types. Default value: HIBCCode39LIC.

Parameters:

ParameterTypeDescription
valueBaseEncodeType

setPrimaryData(PrimaryData value)

public void setPrimaryData(PrimaryData value)

Identifies primary data.

Parameters:

ParameterTypeDescription
valuePrimaryData

setSecondaryAndAdditionalData(SecondaryAndAdditionalData value)

public void setSecondaryAndAdditionalData(SecondaryAndAdditionalData value)

Identifies secondary and additional supplemental data.

Parameters:

ParameterTypeDescription
valueSecondaryAndAdditionalData

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int