![]() |
Aspose.BarCode for Python via Java
24.11
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 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[SecondaryAndAdditionalData] | getData (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... | |
![]() | |
None | __init__ (self, javaClass) |
Generation.EncodeTypes | getBarcodeType (self) |
Gets barcode type. More... | |
None | setBarcodeType (self, Generation.EncodeTypes value) |
Sets barcode type. More... | |
![]() | |
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 | |
![]() | |
javaClass | |
javaClassName | |
Static Public Attributes | |
string | JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwHIBCLICSecondaryAndAdditionalDataCodetext" |
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
None __init__ | ( | self | ) |
bool __eq__ | ( | self, | |
HIBCLICSecondaryAndAdditionalDataCodetext | other | ||
) |
Returns a value indicating whether this instance is equal to a specified HIBCLICSecondaryAndAdditionalDataCodetext value.
obj:An HIBCLICSecondaryAndAdditionalDataCodetext value to compare to this instance. |
int __hash__ | ( | self | ) |
Returns the hash code for the current instance.
|
static |
Optional[str] getConstructedCodetext | ( | self | ) |
Optional[SecondaryAndAdditionalData] getData | ( | self | ) |
Identifies secondary and additional supplemental data.
str getLinkCharacter | ( | self | ) |
Identifies link character.
None init | ( | self | ) |
Reimplemented from BaseJavaClass.
None initFromString | ( | self, | |
str | constructedCodetext | ||
) |
Initializes instance from constructed codetext.
constructedCodetext:Constructed codetext. |
Reimplemented from HIBCLICComplexCodetext.
None setData | ( | self, | |
SecondaryAndAdditionalData | value | ||
) |
Identifies secondary and additional supplemental data.
None setLinkCharacter | ( | self, | |
str | value | ||
) |
Identifies link character.
data |
|
static |