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 data. More...

Inherits HIBCLICComplexCodetext.

Public Member Functions

None __init__ (self)
 
bool equals (self, HIBCLICPrimaryDataCodetext obj)
 Returns a value indicating whether this instance is equal to a specified HIBCLICPrimaryDataCodetext value. More...
 
str getConstructedCodetext (self)
 Constructs codetext. More...
 
Optional[PrimaryDatagetData (self)
 Identifies primary 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 setData (self, PrimaryData value)
 Identifies primary 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

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

complexCodetext = ComplexBarcode.HIBCLICPrimaryDataCodetext()
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())

Constructor & Destructor Documentation

◆ __init__()

None __init__ (   self)

Member Function Documentation

◆ construct()

HIBCLICPrimaryDataCodetext construct (   java_class)
static

◆ equals()

bool equals (   self,
HIBCLICPrimaryDataCodetext  obj 
)

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

Parameters
obj:An HIBCLICPrimaryDataCodetext 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.

◆ getData()

Optional[PrimaryData] getData (   self)

Identifies primary 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.

◆ setData()

None setData (   self,
PrimaryData  value 
)

Identifies primary data.

Member Data Documentation

◆ data

data

◆ JAVA_CLASS_NAME

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