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

def __init__ (self)
 
def getData (self)
 Identifies secodary and additional supplemental data. More...
 
def setData (self, value)
 Identifies secodary and additional supplemental data. More...
 
def getLinkCharacter (self)
 Identifies link character. More...
 
def setLinkCharacter (self, value)
 Identifies link character. More...
 
def getConstructedCodetext (self)
 Constructs codetext @:return:Constructed codetext. More...
 
def initFromString (self, constructedCodetext)
 Initializes instance from constructed codetext. More...
 
def equals (self, obj)
 Returns a value indicating whether this instance is equal to a specified. More...
 
def hashCode (self)
 Returns the hash code for this instance. More...
 
def init (self)
 
- Public Member Functions inherited from HIBCLICComplexCodetext
def __init__ (self, javaClass)
 
def getBarcodeType (self)
 Gets barcode type. More...
 
def setBarcodeType (self, value)
 Sets barcode type. More...
 
- Public Member Functions inherited from BaseJavaClass
def getJavaClass (self)
 
def setJavaClass (self, javaClass)
 
def getJavaClassName (self)
 
def isNull (self)
 
def printJavaClassName (self)
 

Static Public Member Functions

def 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 = BarCodeReader(image, None, DecodeType.HIBCQRLIC);
     reader.readBarCodes();
     codetext = reader.getFoundBarCodes()[0].getCodeText();
     result = ComplexCodetextReader.tryDecodeHIBCLIC(codetext);
     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__()

def __init__ (   self)

Member Function Documentation

◆ construct()

def construct (   java_class)
static

◆ equals()

def equals (   self,
  obj 
)

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

HIBCLICSecondaryAndAdditionalDataCodetext

value.

Parameters
obj:An
HIBCLICSecondaryAndAdditionalDataCodetext
value to compare to this instance. @:return:
<b>true</b>
if obj has the same value as this instance; otherwise,
<b>false</b>
.

◆ getConstructedCodetext()

def getConstructedCodetext (   self)

Constructs codetext @:return:Constructed codetext.

Reimplemented from HIBCLICComplexCodetext.

◆ getData()

def getData (   self)

Identifies secodary and additional supplemental data.

◆ getLinkCharacter()

def getLinkCharacter (   self)

Identifies link character.

◆ hashCode()

def hashCode (   self)

Returns the hash code for this instance.

@:return:A 32-bit signed integer hash code.

◆ init()

def init (   self)

Reimplemented from BaseJavaClass.

◆ initFromString()

def initFromString (   self,
  constructedCodetext 
)

Initializes instance from constructed codetext.

Parameters
constructedCodetext:Constructed codetext.

Reimplemented from HIBCLICComplexCodetext.

◆ setData()

def setData (   self,
  value 
)

Identifies secodary and additional supplemental data.

◆ setLinkCharacter()

def setLinkCharacter (   self,
  value 
)

Identifies link character.

Member Data Documentation

◆ data

data

◆ JAVA_CLASS_NAME

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