Aspose.Barcode for Python via Java Generation and Recognition API docs

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

Inherits HIBCLICComplexCodetext.

Public Member Functions

None __init__ (self)
 
bool equals (self, HIBCLICCombinedCodetext obj)
 Returns a value indicating whether this instance is equal to a specified HIBCLICCombinedCodetext value. More...
 
str getConstructedCodetext (self)
 Constructs codetext. More...
 
Optional[PrimaryDatagetPrimaryData (self)
 Identifies primary data. More...
 
Optional[SecondaryAndAdditionalDatagetSecondaryAndAdditionalData (self)
 Identifies secondary and additional supplemental data. More...
 
int hashCode (self)
 Returns the hash code for this instance. More...
 
None init (self)
 
None initFromString (self, str constructedCodetext)
 Initializes instance from constructed codetext. More...
 
None setPrimaryData (self, PrimaryData value)
 Identifies primary data. More...
 
None setSecondaryAndAdditionalData (self, SecondaryAndAdditionalData value)
 Identifies secondary and additional supplemental data. 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

HIBCLICCombinedCodetext construct (javaClass)
 

Public Attributes

 auto_PrimaryData
 
 auto_SecondaryAndAdditionalData
 
- Public Attributes inherited from BaseJavaClass
 javaClass
 
 javaClassName
 

Static Public Attributes

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

Detailed Description

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.

combinedCodetext = HIBCLICCombinedCodetext()
combinedCodetext.setBarcodeType(EncodeTypes.HIBCQRLIC)
combinedCodetext.setPrimaryData(PrimaryData())
combinedCodetext.getPrimaryData().setProductOrCatalogNumber("12345")
combinedCodetext.getPrimaryData().setLabelerIdentificationCode("A999")
combinedCodetext.getPrimaryData().setUnitOfMeasureID(1)
combinedCodetext.setSecondaryAndAdditionalData(SecondaryAndAdditionalData())
combinedCodetext.getSecondaryAndAdditionalData().setExpiryDate(datetime.now())
combinedCodetext.getSecondaryAndAdditionalData().setExpiryDateFormat(HIBCLICDateFormat.MMDDYY)
combinedCodetext.getSecondaryAndAdditionalData().setQuantity(30)
combinedCodetext.getSecondaryAndAdditionalData().setLotNumber("LOT123")
combinedCodetext.getSecondaryAndAdditionalData().setSerialNumber("SERIAL123")
combinedCodetext.getSecondaryAndAdditionalData().setDateOfManufacture(datetime.now())
generator = ComplexBarcode.ComplexBarcodeGenerator(combinedCodetext)
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("Product or catalog number: " + result.getPrimaryData().getProductOrCatalogNumber())
print("Labeler identification code: " + result.getPrimaryData().getLabelerIdentificationCode())
print("Unit of measure ID: " + result.getPrimaryData().getUnitOfMeasureID())
print("Expiry date: " + result.getSecondaryAndAdditionalData().getExpiryDate())
print("Quantity: " + result.getSecondaryAndAdditionalData().getQuantity())
print("Lot number: " + result.getSecondaryAndAdditionalData().getLotNumber())
print("Serial number: " + result.getSecondaryAndAdditionalData().getSerialNumber())
print("Date of manufacture: " + result.getSecondaryAndAdditionalData().getDateOfManufacture())

Constructor & Destructor Documentation

◆ __init__()

None __init__ (   self)

Member Function Documentation

◆ construct()

HIBCLICCombinedCodetext construct (   javaClass)
static

◆ equals()

bool equals (   self,
HIBCLICCombinedCodetext  obj 
)

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

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

◆ getConstructedCodetext()

str getConstructedCodetext (   self)

Constructs codetext.

Returns
:Constructed codetext

Reimplemented from HIBCLICComplexCodetext.

◆ getPrimaryData()

Optional[PrimaryData] getPrimaryData (   self)

Identifies primary data.

◆ getSecondaryAndAdditionalData()

Optional[SecondaryAndAdditionalData] getSecondaryAndAdditionalData (   self)

Identifies secondary and additional supplemental data.

◆ hashCode()

int hashCode (   self)

Returns the hash code for this instance.

Returns
:A 32-bit signed integer hash code.

◆ 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.

◆ setPrimaryData()

None setPrimaryData (   self,
PrimaryData  value 
)

Identifies primary data.

◆ setSecondaryAndAdditionalData()

None setSecondaryAndAdditionalData (   self,
SecondaryAndAdditionalData  value 
)

Identifies secondary and additional supplemental data.

Member Data Documentation

◆ auto_PrimaryData

auto_PrimaryData

◆ auto_SecondaryAndAdditionalData

auto_SecondaryAndAdditionalData

◆ JAVA_CLASS_NAME

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