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

Inherits BaseJavaClass.

Public Member Functions

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

Static Public Member Functions

static op_Equality (OneDExtendedParameters $first, OneDExtendedParameters $second)
 
static op_Inequality (OneDExtendedParameters $first, OneDExtendedParameters $second)
 

Static Private Member Functions

static isEqual (OneDExtendedParameters $first, OneDExtendedParameters $second)
 

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 (   $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>

.

◆ isEqual()

static isEqual ( OneDExtendedParameters  $first,
OneDExtendedParameters  $second 
)
staticprivate

Returns a value indicating whether the first value is equal to the second

Parameters
firstA first compared value
secondA second compared value
Returns
true if first has the same value as second; otherwise, false.

◆ op_Equality()

static op_Equality ( OneDExtendedParameters  $first,
OneDExtendedParameters  $second 
)
static

Returns a value indicating whether the first OneDExtendedParameters value is equal to the second.

Parameters
firstA first compared value
secondA second compared value
Returns
true if first has the same value as second; otherwise, false.

◆ op_Inequality()

static op_Inequality ( OneDExtendedParameters  $first,
OneDExtendedParameters  $second 
)
static

Returns a value indicating if the first OneDExtendedParameters value is different from the second.

Parameters
firstA first compared value
secondA second compared value
Returns
true if first has the different value from second; otherwise, false.

◆ toString()

toString ( )

Returns a human-readable string representation of this OneDExtendedParameters.

Returns
A string that represents this OneDExtendedParameters.