![]() |
Aspose.Barcode for Python via Java Generation and Recognition API docs
|
Inherits HIBCLICComplexCodetext.
Public Member Functions | |
def | __init__ (self) |
def | init (self) |
def | getPrimaryData (self) |
def | setPrimaryData (self, value) |
def | getSecondaryAndAdditionalData (self) |
def | setSecondaryAndAdditionalData (self, value) |
def | getConstructedCodetext (self) |
def | initFromString (self, constructedCodetext) |
def | equals (self, obj) |
def | hashCode (self) |
![]() | |
def | __init__ (self, javaClass) |
def | getBarcodeType (self) |
def | setBarcodeType (self, value) |
![]() | |
def | getJavaClass (self) |
def | setJavaClass (self, javaClass) |
def | getJavaClassName (self) |
def | isNull (self) |
def | printJavaClassName (self) |
Static Public Member Functions | |
def | construct (javaClass) |
Public Attributes | |
auto_PrimaryData | |
auto_SecondaryAndAdditionalData | |
![]() | |
javaClass | |
javaClassName | |
Static Public Attributes | |
string | JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwHIBCLICCombinedCodetext" |
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. <pre> 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) 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()) </pre>
def __init__ | ( | self | ) |
|
static |
def equals | ( | self, | |
obj | |||
) |
Returns a value indicating whether this instance is equal to a specified {@code HIBCLICCombinedCodetext} value. :param obj:An {@code HIBCLICCombinedCodetext} value to compare to this instance. :return:{@code <b>true</b>} if obj has the same value as this instance; otherwise, {@code <b>false</b>}.
def getConstructedCodetext | ( | self | ) |
Constructs codetext :return:Constructed codetext
Reimplemented from HIBCLICComplexCodetext.
def getPrimaryData | ( | self | ) |
Identifies primary data.
def getSecondaryAndAdditionalData | ( | self | ) |
Identifies secondary and additional supplemental data.
def hashCode | ( | self | ) |
Returns the hash code for this instance. :return:A 32-bit signed integer hash code.
def init | ( | self | ) |
Reimplemented from BaseJavaClass.
def initFromString | ( | self, | |
constructedCodetext | |||
) |
Initializes instance from constructed codetext. :param constructedCodetext:Constructed codetext.
Reimplemented from HIBCLICComplexCodetext.
def setPrimaryData | ( | self, | |
value | |||
) |
Identifies primary data.
def setSecondaryAndAdditionalData | ( | self, | |
value | |||
) |
Identifies secondary and additional supplemental data.
auto_PrimaryData |
auto_SecondaryAndAdditionalData |
|
static |