Aspose.Barcode for PHP via Java Generation and Recognition API docs
HIBCLICComplexCodetext Class Reference

Inherits IComplexCodetext.

Inherited by HIBCLICCombinedCodetext, and HIBCLICPrimaryDataCodetext.

Public Member Functions

 __construct ($javaClass)
 
 getConstructedCodetext ()
 
 initFromString (string $constructedCodetext)
 
 getBarcodeType ()
 
 setBarcodeType (int $value)
 
- Public Member Functions inherited from BaseJavaClass
 getJavaClass ()
 
 getJavaClassName ()
 
 isNull ()
 
 printJavaClassName ()
 

Additional Inherited Members

- Protected Member Functions inherited from BaseJavaClass
 init ()
 
 setJavaClass ($javaClass)
 

Detailed Description

Base class for encoding and decoding the text embedded in the HIBC LIC code.


This sample shows how to decode raw HIBC LIC codetext to HIBCLICComplexCodetext instance.
$reader = new BarCodeReader("c:\\test.png", null, DecodeType::HIBC_AZTEC_LIC);
{
    foreach($reader->readBarCodes() as $result)
    {
        $resultHIBCLICComplexCodetext = ComplexCodetextReader::tryDecodeHIBCLIC($result->getCodeText());
        print("BarCode Type: " . $resultMaxiCodeCodetext->getBarcodeType());
        print("BarCode CodeText: " . $resultMaxiCodeCodetext->getConstructedCodetext());
    }
}

Constructor & Destructor Documentation

◆ __construct()

HIBCLICComplexCodetext::__construct (   $javaClass)

Reimplemented from IComplexCodetext.

Member Function Documentation

◆ getBarcodeType()

HIBCLICComplexCodetext::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
Barcode type.

Reimplemented from IComplexCodetext.

◆ getConstructedCodetext()

HIBCLICComplexCodetext::getConstructedCodetext ( )
abstract

Constructs codetext

Returns
Constructed codetext

Reimplemented from IComplexCodetext.

Reimplemented in HIBCLICPrimaryDataCodetext, and HIBCLICCombinedCodetext.

◆ initFromString()

HIBCLICComplexCodetext::initFromString ( string  $constructedCodetext)
abstract

Initializes instance from constructed codetext.

Parameters
constructedCodetextConstructed codetext.

Reimplemented from IComplexCodetext.

Reimplemented in HIBCLICPrimaryDataCodetext, and HIBCLICCombinedCodetext.

◆ setBarcodeType()

HIBCLICComplexCodetext::setBarcodeType ( int  $value)

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

Returns
Barcode type.