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

Inherits MaxiCodeCodetext.

Inherited by MaxiCodeCodetextMode2, and MaxiCodeCodetextMode3.

Public Member Functions

def __init__ (self, javaClass)
def init (self)
def getPostalCode (self)
def getCountryCode (self)
def setCountryCode (self, value)
def getServiceCategory (self)
def setServiceCategory (self, value)
def getSecondMessage (self)
def setSecondMessage (self, value)
def getConstructedCodetext (self)
def initFromString (self, constructedCodetext)
def equals (self, obj)
def getHashCode (self)
- Public Member Functions inherited from MaxiCodeCodetext
def getMode (self)
def getMaxiCodeEncodeMode (self)
def setMaxiCodeEncodeMode (self, value)
def getECIEncoding (self)
def setECIEncoding (self, value)
def getBarcodeType (self)
- Public Member Functions inherited from BaseJavaClass
def getJavaClass (self)
def setJavaClass (self, javaClass)
def getJavaClassName (self)
def isNull (self)
def printJavaClassName (self)

Public Attributes

- Public Attributes inherited from BaseJavaClass

Static Public Attributes

string JAVA_CLASS_NAME = ""

Detailed Description

Base class for encoding and decoding the text embedded in the MaxiCode code for modes 2 and 3.

   This sample shows how to decode raw MaxiCode codetext to MaxiCodeStructuredCodetext instance.

   reader = Recognition.BarCodeReader("c:\\test.png", None, DecodeType.MAXI_CODE)
   for result in reader.readBarCodes():
       resultMaxiCodeCodetext = ComplexCodetextReader.tryDecodeMaxiCode(result.getExtended().getMaxiCode().getMaxiCodeMode(), result.getCodeText())
       if resultMaxiCodeCodetext is MaxiCodeStructuredCodetext:
           maxiCodeStructuredCodetext = resultMaxiCodeCodetext
           print("BarCode Type: " + maxiCodeStructuredCodetext.getPostalCode())
           print("MaxiCode mode: " + maxiCodeStructuredCodetext.getCountryCode())
           print("BarCode CodeText: " + maxiCodeStructuredCodetext.getServiceCategory())

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,

Reimplemented from IComplexCodetext.

Member Function Documentation

◆ equals()

def equals (   self,
Returns a value indicating whether this instance is equal to a specified <see cref="MaxiCodeStructuredCodetext"/> value.

:param obj:An <see cref="MaxiCodeStructuredCodetext"/> 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 IComplexCodetext.

◆ getCountryCode()

def getCountryCode (   self)
Identifies 3 digit country code.

◆ getHashCode()

def getHashCode (   self)
Returns the hash code for this instance.
:return: A 32-bit signed integer hash code.

◆ getPostalCode()

def getPostalCode (   self)
Identifies the postal code. Must be 9 digits in mode 2 or
6 alphanumeric symbols in mode 3.

◆ getSecondMessage()

def getSecondMessage (   self)
Identifies second message of the barcode.

◆ getServiceCategory()

def getServiceCategory (   self)
Identifies 3 digit service category.

◆ init()

def init (   self)

Reimplemented from BaseJavaClass.

Reimplemented in MaxiCodeCodetextMode3, and MaxiCodeCodetextMode2.

◆ initFromString()

def initFromString (   self,
Initializes instance from constructed codetext.
:param constructedCodetext:Constructed codetext.

Reimplemented from IComplexCodetext.

◆ setCountryCode()

def setCountryCode (   self,
Identifies 3 digit country code.

◆ setSecondMessage()

def setSecondMessage (   self,
Identifies second message of the barcode.

◆ setServiceCategory()

def setServiceCategory (   self,
Identifies 3 digit service category.

Member Data Documentation


string JAVA_CLASS_NAME = ""

◆ maxiCodeSecondMessage