Aspose.Barcode for PHP via Java  21.3
Aspose.Barcode for PHP via Java Generation and Recognition API docs
OneDExtendedParameters Class Reference

Inherits BaseJavaClass.

Public Member Functions

 getValue ()
 
 getCheckSum ()
 
 isEmpty ()
 
 equals (OneDExtendedParameters $obj)
 
 hashCode ()
 
 toString ()
 

Detailed Description

Stores special data of 1D recognized barcode like separate codetext and checksum This sample shows how to get 1D barcode value and checksum $generator = new BarcodeGenerator(EncodeTypes::EAN_13, "1234567890128"); $generator->save("test.png"); $reader = new BarCodeReader("test.png", DecodeType::EAN_13); foreach($reader->readBarCodes() as $result) { print("BarCode Type: ".$result->getCodeTypeName()); print("BarCode CodeText: ".$result->getCodeText()); print("BarCode Value: ".$result->getExtended()->getOneD()->getValue()); print("BarCode Checksum: ".$result->getExtended()->getOneD()->getCheckSum()); }

Member Function Documentation

◆ equals()

equals ( OneDExtendedParameters  $obj)

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

Parameters
objAn System.Object value to compare to this instance.
Returns
true if obj has the same value as this instance; otherwise, false.

◆ getCheckSum()

getCheckSum ( )

Gets the checksum for 1D barcodes. Value: The checksum for 1D barcode.

◆ getValue()

getValue ( )

Gets the codetext of 1D barcodes without checksum. Value: The codetext of 1D barcodes without checksum.

◆ hashCode()

hashCode ( )

Returns the hash code for this instance.

Returns
A 32-bit signed integer hash code.

◆ isEmpty()

isEmpty ( )

Tests whether all parameters has only default values Value: Returns

<b>true</b>

if all parameters has only default values; otherwise,

<b>false</b>

.

◆ toString()

toString ( )

Returns a human-readable string representation of this OneDExtendedParameters.

Returns
A string that represents this OneDExtendedParameters.