recognition/aztec-extended-parameters.js

const _MwWrapper = require("../_mwbridge/_mw-wrapper.js");

/**
 * <p>
 * Stores special data of Aztec recognized barcode
 * </p><p><hr><blockquote><pre>
 * This sample shows how to get Aztec raw values
 * <pre>
 * let generator = new BarcodeGenerator(EncodeTypes.AZTEC, "12345");
 * generator.save("test.png", BarcodeImageFormat.PNG);
 *
 * @example
 * BarCodeReader reader = new BarCodeReader("test.png", null, DecodeType.AZTEC);
 * let results = reader.readBarCodes();
 * for(let i = 0; i < results.length; i++)
 * {
 *     let result = results[i];
 *     console.log("BarCode type: " + result.getCodeTypeName());
 *     console.log("BarCode codetext: " + result.getCodeText());
 *     console.log("Aztec barcode ID: " + result.getExtended().getAztec().getStructuredAppendBarcodeId());
 *     console.log("Aztec barcodes count: " + result.getExtended().getAztec().getStructuredAppendBarcodesCount());
 *     console.log("Aztec file ID: " + result.getExtended().getAztec().getStructuredAppendFileId());
 *     console.log("Aztec is reader initialization: " + result.getExtended().getAztec().isReaderInitialization());
 * }
 * </pre>
 * </pre></blockquote></hr></p>
 */
class AztecExtendedParameters extends _MwWrapper
{
    constructor(mwObject)
    {
        super(mwObject);
    }

    _initializeWrapperMembers()
    {
    }

    /**
     * <p>Gets the Aztec structured append mode barcodes count. Default value is 0. Count must be a value from 1 to 26.</p>Value: The barcodes count of the Aztec structured append mode.
     */
    getStructuredAppendBarcodesCount()
    {
        return this.getJavaClass().getStructuredAppendBarcodesCountSync();
    }

    /**
     * <p>Gets the ID of the Aztec structured append mode barcode. ID starts from 1 and must be less or equal to barcodes count. Default value is 0.</p>Value: The barcode ID of the Aztec structured append mode.
     */
    getStructuredAppendBarcodeId()
    {
        return this.getJavaClass().getStructuredAppendBarcodeIdSync();
    }

    /**
     * <p>Gets the File ID of the Aztec structured append mode. Default value is empty string</p>Value: The File ID of the Aztec structured append mode.
     */
    getStructuredAppendFileId()
    {
        return this.getJavaClass().getStructuredAppendFileIdSync();
    }

    /**
     * <p>
     * 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.
     * </p>
     */
    isReaderInitialization()
    {
        return this.getJavaClass().isReaderInitializationSync();
    }

    /**
     * <p>
     * Returns a value indicating whether this instance is equal to a specified {@code AztecExtendedParameters} value.
     * </p>
     * @return {@code <b>true</b>} if obj has the same value as this instance; otherwise, {@code <b>false</b>}.
     * @param obj An System.Object value to compare to this instance.
     */
    equals(obj)
    {
        return this.getJavaClass().equalsSync(obj.getJavaClass());
    }

    /**
     * <p>
     * Returns the hash code for this instance.
     * </p>
     * @return 32-bit signed integer hash code.
     */
    hashCode()
    {
        return this.getJavaClass().hashCodeSync();
    }

    /**
     * <p>
     * Returns a human-readable string representation of this {@code AztecExtendedParameters}.
     * </p>
     * @return A string that represents this {@code AztecExtendedParameters}.
     */
    toString()
    {
        return this.getJavaClass().toStringSync();
    }
}

module.exports = AztecExtendedParameters