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

Inherits HIBCLICComplexCodetext.

Public Member Functions

def __init__ (self)
 
def init (self)
 
def getData (self)
 
def setData (self, value)
 
def getConstructedCodetext (self)
 
def initFromString (self, constructedCodetext)
 
def equals (self, obj)
 
def hashCode (self)
 
- Public Member Functions inherited from HIBCLICComplexCodetext
def __init__ (self, javaClass)
 
def getBarcodeType (self)
 
def setBarcodeType (self, value)
 
- 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.MwHIBCLICPrimaryDataCodetext"
 

Detailed Description

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

This sample shows how to encode and decode HIBC LIC using HIBCLICPrimaryCodetext.
       <pre>
       complexCodetext = ComplexBarcode.HIBCLICPrimaryCodetext()
       complexCodetext.setBarcodeType(EncodeTypes.HIBCQRLIC)
       complexCodetext.setData(PrimaryData())
       complexCodetext.getData().setProductOrCatalogNumber("12345")
       complexCodetext.getData().setLabelerIdentificationCode("A999")
       complexCodetext.getData().setUnitOfMeasureID(1)
       generator = ComplexBarcode.ComplexBarcodeGenerator(complexCodetext)
       image = generator.generateBarCodeImage()
       reader = Recognition.BarCodeReader(image, None, DecodeType.HIBCQRLIC)
       reader.readBarCodes()
       codetext = reader.getFoundBarCodes()[0].getCodeText()
       result = ComplexBarcode.ComplexCodetextReader.tryDecodeHIBCLIC(codetext)
       print("Product or catalog number: " + result.getData().getProductOrCatalogNumber())
       print("Labeler identification code: " + result.getData().getLabelerIdentificationCode())
       print("Unit of measure ID: " + result.getData().getUnitOfMeasureID())
       </pre>

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 {@code HIBCLICPrimaryDataCodetext} value.
:param obj:An {@code HIBCLICPrimaryDataCodetext} 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>}.

◆ getConstructedCodetext()

def getConstructedCodetext (   self)
Constructs codetext
:return:Constructed codetext

Reimplemented from HIBCLICComplexCodetext.

◆ getData()

def getData (   self)
Identifies primary data.

◆ 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.
:param constructedCodetext:Constructed codetext.

Reimplemented from HIBCLICComplexCodetext.

◆ setData()

def setData (   self,
  value 
)
Identifies primary data.

Member Data Documentation

◆ data

data

◆ JAVA_CLASS_NAME

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