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 ()
 
- Public Member Functions inherited from BaseJavaClass
 __construct ($javaClass)
 
 getJavaClass ()
 
 getJavaClassName ()
 
 isNull ()
 
 printJavaClassName ()
 

Protected Member Functions

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

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

OneDExtendedParameters::equals ( OneDExtendedParameters  $obj)

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

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

◆ getCheckSum()

OneDExtendedParameters::getCheckSum ( )

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

◆ getValue()

OneDExtendedParameters::getValue ( )

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

◆ hashCode()

OneDExtendedParameters::hashCode ( )

Returns the hash code for this instance.

Returns
int A 32-bit signed integer hash code.

◆ init()

OneDExtendedParameters::init ( )
protected

Reimplemented from BaseJavaClass.

◆ isEmpty()

OneDExtendedParameters::isEmpty ( )

Tests whether all parameters has only default values

Returns
bool Returns { true} if all parameters has only default values; otherwise, { false}.
Exceptions
BarcodeException

◆ toString()

OneDExtendedParameters::toString ( )

Returns a human-readable string representation of this OneDExtendedParameters.

Returns
string A string that represents this OneDExtendedParameters.