Aspose.BarCode for Python via Java  24.11
Aspose.Barcode for Python via Java Generation and Recognition API docs
HIBCLICSecondaryAndAdditionalDataCodetext Class Reference

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

Inherits HIBCLICComplexCodetext.

Public Member Functions

None __init__ (self)
 
bool __eq__ (self, HIBCLICSecondaryAndAdditionalDataCodetext other)
 Returns a value indicating whether this instance is equal to a specified HIBCLICSecondaryAndAdditionalDataCodetext value. More...
 
int __hash__ (self)
 Returns the hash code for the current instance. More...
 
Optional[str] getConstructedCodetext (self)
 Constructs codetext. More...
 
Optional[SecondaryAndAdditionalDatagetData (self)
 Identifies secondary and additional supplemental data. More...
 
str getLinkCharacter (self)
 Identifies link character. More...
 
None init (self)
 
None initFromString (self, str constructedCodetext)
 Initializes instance from constructed codetext. More...
 
None setData (self, SecondaryAndAdditionalData value)
 Identifies secondary and additional supplemental data. More...
 
None setLinkCharacter (self, str value)
 Identifies link character. More...
 
- Public Member Functions inherited from HIBCLICComplexCodetext
None __init__ (self, javaClass)
 
Generation.EncodeTypes getBarcodeType (self)
 Gets barcode type. More...
 
None setBarcodeType (self, Generation.EncodeTypes value)
 Sets barcode type. More...
 
- Public Member Functions inherited from BaseJavaClass
def getJavaClass (self)
 
str getJavaClassName (self)
 
bool isNull (self)
 
None printJavaClassName (self)
 
None setJavaClass (self, javaClass)
 

Static Public Member Functions

HIBCLICSecondaryAndAdditionalDataCodetext construct (java_class)
 

Public Attributes

 data
 
- Public Attributes inherited from BaseJavaClass
 javaClass
 
 javaClassName
 

Static Public Attributes

string JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwHIBCLICSecondaryAndAdditionalDataCodetext"
 

Detailed Description

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

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

  \code
       complexCodetext = HIBCLICSecondaryAndAdditionalDataCodetext()
       complexCodetext.setBarcodeType(EncodeTypes.HIBCQRLIC)
       complexCodetext.setLinkCharacter('L')
       complexCodetext.setData(SecondaryAndAdditionalData())
       complexCodetext.getData().setExpiryDate(datetime.now())
       complexCodetext.getData().setExpiryDateFormat(HIBCLICDateFormat.MMDDYY)
       complexCodetext.getData().setQuantity(30)
       complexCodetext.getData().setLotNumber("LOT123")
       complexCodetext.getData().setSerialNumber("SERIAL123")
       complexCodetext.getData().setDateOfManufacture(datetime.now())
       generator = ComplexBarcodeGenerator(complexCodetext)
       image = generator.generateBarCodeImage()
       reader = Recognition.BarCodeReader(image, None, DecodeType.HIBCQRLIC)
       reader.readBarCodes()
       codetext = reader.getFoundBarCodes()[0].getCodeText()
       result = ComplexCodetextReader.tryDecodeHIBCLIC(codetext)
       if result is not None:
           print("Expiry date: " + result.getData().getExpiryDate())
           print("Quantity: " + result.getData().getQuantity())
           print("Lot number: " + result.getData().getLotNumber())
           print("Serial number: " + result.getData().getSerialNumber())
           print("Date of manufacture: " + result.getData().getDateOfManufacture())
  \endcode

Constructor & Destructor Documentation

◆ __init__()

None __init__ (   self)

Member Function Documentation

◆ __eq__()

bool __eq__ (   self,
HIBCLICSecondaryAndAdditionalDataCodetext  other 
)

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

Parameters
obj:An HIBCLICSecondaryAndAdditionalDataCodetext value to compare to this instance.
Returns
: True if obj has the same value as this instance; otherwise, False.

◆ __hash__()

int __hash__ (   self)

Returns the hash code for the current instance.

Returns
A hash code for the current object.

◆ construct()

HIBCLICSecondaryAndAdditionalDataCodetext construct (   java_class)
static

◆ getConstructedCodetext()

Optional[str] getConstructedCodetext (   self)

Constructs codetext.

Returns
:Constructed codetext

Reimplemented from HIBCLICComplexCodetext.

◆ getData()

Optional[SecondaryAndAdditionalData] getData (   self)

Identifies secondary and additional supplemental data.

◆ getLinkCharacter()

str getLinkCharacter (   self)

Identifies link character.

◆ init()

None init (   self)

Reimplemented from BaseJavaClass.

◆ initFromString()

None initFromString (   self,
str  constructedCodetext 
)

Initializes instance from constructed codetext.

Parameters
constructedCodetext:Constructed codetext.

Reimplemented from HIBCLICComplexCodetext.

◆ setData()

None setData (   self,
SecondaryAndAdditionalData  value 
)

Identifies secondary and additional supplemental data.

◆ setLinkCharacter()

None setLinkCharacter (   self,
str  value 
)

Identifies link character.

Member Data Documentation

◆ data

data

◆ JAVA_CLASS_NAME

string JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwHIBCLICSecondaryAndAdditionalDataCodetext"
static