public final class DataMatrixExtendedParameters extends BaseExtendedParameters
Stores special data of DataMatrix recognized barcode
This sample shows how to get DataMatrix raw valuesBarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.DATA_MATRIX, "12345"); generator.save("c:\\test.png"); BarCodeReader reader = new BarCodeReader("c:\\test.png", DecodeType.DATA_MATRIX); for(BarCodeResult result : reader.readBarCodes()) { System.out.println("BarCode type: " + result.getCodeTypeName()); System.out.println("BarCode codetext: " + result.getCodeText); System.out.println("DataMatrix barcode ID: " + result.getExtended().getDataMatrix().getStructuredAppendBarcodeId()); System.out.println("DataMatrix barcodes count: " + result.getExtended().getDataMatrix().getStructuredAppendBarcodesCount()); System.out.println("DataMatrix file ID: " + result.getExtended().getDataMatrix().getStructuredAppendFileId()); System.out.println("DataMatrix is reader programming: " + result.getExtended().getDataMatrix().isReaderProgramming)); }
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified
DataMatrixExtendedParameters value. |
int |
getStructuredAppendBarcodeId()
Gets the ID of the DataMatrix structured append mode barcode.
|
int |
getStructuredAppendBarcodesCount()
Gets the DataMatrix structured append mode barcodes count.
|
int |
getStructuredAppendFileId()
Gets the ID of the DataMatrix structured append mode barcode.
|
int |
hashCode()
Returns the hash code for this instance.
|
boolean |
isReaderProgramming()
Indicates whether code is used for instruct reader to interpret the following data as instructions for initialization or reprogramming of the bar code reader.
|
static boolean |
op_Equality(DataMatrixExtendedParameters first,
DataMatrixExtendedParameters second)
Returns a value indicating whether the first
DataMatrixExtendedParameters value is equal to the second. |
static boolean |
op_Inequality(DataMatrixExtendedParameters first,
DataMatrixExtendedParameters second)
Returns a value indicating if the first
DataMatrixExtendedParameters value is different from the second. |
java.lang.String |
toString()
Returns a human-readable string representation of this
DataMatrixExtendedParameters . |
isEmpty
public int getStructuredAppendBarcodesCount()
Gets the DataMatrix structured append mode barcodes count. Default value is -1. Count must be a value from 1 to 35.
Value: The count of the DataMatrix structured append mode barcode.public int getStructuredAppendBarcodeId()
Gets the ID of the DataMatrix structured append mode barcode. ID starts from 1 and must be less or equal to barcodes count. Default value is -1.
Value: The ID of the DataMatrix structured append mode barcode.public int getStructuredAppendFileId()
Gets the ID of the DataMatrix structured append mode barcode. ID starts from 1 and must be less or equal to barcodes count. Default value is -1.
Value: The ID of the DataMatrix structured append mode barcode.public boolean isReaderProgramming()
Indicates whether code is used for instruct reader to interpret the following data as instructions for initialization or reprogramming of the bar code reader. Default value is false.
public boolean equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified DataMatrixExtendedParameters
value.
equals
in class java.lang.Object
obj
- An System.Object value to compare to this instance.<b>true</b>
if obj has the same value as this instance; otherwise, <b>false</b>
.public static boolean op_Equality(DataMatrixExtendedParameters first, DataMatrixExtendedParameters second)
Returns a value indicating whether the first DataMatrixExtendedParameters
value is equal to the second.
first
- A first compared valuesecond
- A second compared value<b>true</b>
if first has the same value as second; otherwise, <b>false</b>
.public static boolean op_Inequality(DataMatrixExtendedParameters first, DataMatrixExtendedParameters second)
Returns a value indicating if the first DataMatrixExtendedParameters
value is different from the second.
first
- A first compared valuesecond
- A second compared value<b>true</b>
if first has the different value from second; otherwise, <b>false</b>
.public int hashCode()
Returns the hash code for this instance.
hashCode
in class java.lang.Object
public java.lang.String toString()
Returns a human-readable string representation of this DataMatrixExtendedParameters
.
toString
in class java.lang.Object
DataMatrixExtendedParameters
.