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

Inherits MaxiCodeCodetext.

Inherited by MaxiCodeCodetextMode2, and MaxiCodeCodetextMode3.

Public Member Functions

 __construct ($javaClass)
 
 getPostalCode ()
 
 setPostalCode (string $value)
 
 getCountryCode ()
 
 setCountryCode (int $value)
 
 getServiceCategory ()
 
 setServiceCategory (int $value)
 
 getSecondMessage ()
 
 setSecondMessage (MaxiCodeSecondMessage $value)
 
 getConstructedCodetext ()
 
 initFromString (string $constructedCodetext)
 
 equals ($obj)
 
 getHashCode ()
 
- Public Member Functions inherited from MaxiCodeCodetext
 getMode ()
 
 getMaxiCodeEncodeMode ()
 
 setMaxiCodeEncodeMode (int $value)
 
 getECIEncoding ()
 
 setECIEncoding (int $value)
 
 getBarcodeType ()
 
- Public Member Functions inherited from BaseJavaClass
 getJavaClass ()
 
 getJavaClassName ()
 
 isNull ()
 
 printJavaClassName ()
 

Protected Member Functions

 init ()
 
- Protected Member Functions inherited from BaseJavaClass
 setJavaClass ($javaClass)
 

Private Attributes

const JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwMaxiCodeStructuredCodetext"
 
 $maxiCodeSecondMessage
 

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 = new BarCodeReader("c:\\test.png", DecodeType::MAXI_CODE);
foreach($reader->readBarCodes() as $result)
{
$resultMaxiCodeCodetext = ComplexCodetextReader::tryDecodeMaxiCode($result->getExtended()->getMaxiCode()->getMaxiCodeMode(), $result->getCodeText());
if ($resultMaxiCodeCodetext instanceof MaxiCodeStructuredCodetext)
{
$maxiCodeStructuredCodetext = $resultMaxiCodeCodetext;
print("BarCode Type: ".$maxiCodeStructuredCodetext->getPostalCode());
print("MaxiCode mode: ".$maxiCodeStructuredCodetext->getCountryCode());
print("BarCode CodeText: ".$maxiCodeStructuredCodetext->getServiceCategory());
}
}

Constructor & Destructor Documentation

◆ __construct()

MaxiCodeStructuredCodetext::__construct (   $javaClass)

Reimplemented from IComplexCodetext.

Member Function Documentation

◆ equals()

MaxiCodeStructuredCodetext::equals (   $obj)

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

Parameters
object$objAn MaxiCodeStructuredCodetext value to compare to this instance.
Returns
bool true if obj has the same value as this instance; otherwise, false.

◆ getConstructedCodetext()

MaxiCodeStructuredCodetext::getConstructedCodetext ( )

Constructs codetext

Returns
string Constructed codetext

Reimplemented from IComplexCodetext.

◆ getCountryCode()

MaxiCodeStructuredCodetext::getCountryCode ( )

Identifies 3 digit country code.

◆ getHashCode()

MaxiCodeStructuredCodetext::getHashCode ( )

Returns the hash code for this instance.

Returns
int A 32-bit signed integer hash code.

◆ getPostalCode()

MaxiCodeStructuredCodetext::getPostalCode ( )

Identifies the postal code. Must be 9 digits in mode 2 or 6 alphanumeric symbols in mode 3.

◆ getSecondMessage()

MaxiCodeStructuredCodetext::getSecondMessage ( )

Identifies second message of the barcode.

◆ getServiceCategory()

MaxiCodeStructuredCodetext::getServiceCategory ( )

Identifies 3 digit service category.

◆ init()

MaxiCodeStructuredCodetext::init ( )
protected

Reimplemented from BaseJavaClass.

Reimplemented in MaxiCodeCodetextMode3, and MaxiCodeCodetextMode2.

◆ initFromString()

MaxiCodeStructuredCodetext::initFromString ( string  $constructedCodetext)

Initializes instance from constructed codetext.

Parameters
string$constructedCodetextConstructed codetext.

Reimplemented from IComplexCodetext.

◆ setCountryCode()

MaxiCodeStructuredCodetext::setCountryCode ( int  $value)

Identifies 3 digit country code.

◆ setPostalCode()

MaxiCodeStructuredCodetext::setPostalCode ( string  $value)

Identifies the postal code. Must be 9 digits in mode 2 or 6 alphanumeric symbols in mode 3.

◆ setSecondMessage()

MaxiCodeStructuredCodetext::setSecondMessage ( MaxiCodeSecondMessage  $value)

Identifies second message of the barcode.

◆ setServiceCategory()

MaxiCodeStructuredCodetext::setServiceCategory ( int  $value)

Identifies 3 digit service category.

Member Data Documentation

◆ $maxiCodeSecondMessage

MaxiCodeStructuredCodetext::$maxiCodeSecondMessage
private

◆ JAVA_CLASS_NAME

const MaxiCodeStructuredCodetext::JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwMaxiCodeStructuredCodetext"
private