HIBCLICPrimaryDataCodetext

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

public class HIBCLICPrimaryDataCodetext extends HIBCLICComplexCodetext

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.
 
 HIBCLICPrimaryCodetext complexCodetext  = new HIBCLICPrimaryCodetext();
 complexCodetext.setBarcodeType(EncodeTypes.HIBCQRLIC);
 complexCodetext.setData(new PrimaryData());
 complexCodetext.getData().setProductOrCatalogNumber("12345");
 complexCodetext.getData().setLabelerIdentificationCode("A999");
 complexCodetext.getData().setUnitOfMeasureID(1);
 ComplexBarcodeGenerator generator = new ComplexBarcodeGenerator(complexCodetext);
 {
     Bitmap image = generator.generateBarCodeImage();
     BarCodeReader reader = new BarCodeReader(image, DecodeType.HIBCQRLIC);
     {
         reader.readBarCodes();
         String codetext = reader.getFoundBarCodes()[0].getCodeText();
         HIBCLICPrimaryCodetext result = (HIBCLICPrimaryCodetext)ComplexCodetextReader.tryDecodeHIBCLIC(codetext);
         System.out.println("Product or catalog number: " + result.getData().getProductOrCatalogNumber());
         System.out.println("Labeler identification code: " + result.getData().getLabelerIdentificationCode());
         System.out.println("Unit of measure ID: " + result.getData().getUnitOfMeasureID());
     }
 }

Constructors

ConstructorDescription
HIBCLICPrimaryDataCodetext()

Methods

MethodDescription
equals(Object obj)Returns a value indicating whether this instance is equal to a specified HIBCLICPrimaryDataCodetext value.
getBarcodeType()Gets or sets barcode type.
getClass()
getConstructedCodetext()Constructs codetext
getData()Identifies primary 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.
setData(PrimaryData value)Identifies primary data.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

HIBCLICPrimaryDataCodetext()

public HIBCLICPrimaryDataCodetext()

equals(Object obj)

public boolean equals(Object obj)

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

Parameters:

ParameterTypeDescription
objjava.lang.ObjectAn HIBCLICPrimaryDataCodetext 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

getData()

public PrimaryData getData()

Identifies primary data.

Returns: PrimaryData

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

setData(PrimaryData value)

public void setData(PrimaryData value)

Identifies primary data.

Parameters:

ParameterTypeDescription
valuePrimaryData

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