recognition/maxicode-extended-parameters.js

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

/**
 * Stores a MaxiCode additional information of recognized barcode
 */
class MaxiCodeExtendedParameters extends _MwWrapper
{

    constructor(mwObject)
    {
        super(mwObject);
    }

    _initializeWrapperMembers()
    {
    }

    /**
     * <p>
     * Gets a MaxiCode encode mode.
     * Default value: Mode4
     * </p>
     * @return a MaxiCode encode mode.
     */
    getMode()
    {
        return this.getJavaClass().getModeSync();
    }

    /**
     * Gets a MaxiCode encode mode.
     *  Default value: Mode4
     * @deprecated This property is obsolete and will be removed in future releases. Instead, use the getMode().
     */
    getMaxiCodeMode()
    {
        return this.getJavaClass().getMaxiCodeModeSync();
    }

    /**
     * <p>
     * Gets a MaxiCode barcode id in structured append mode.
     * Default value: 0
     * </p>
     * @return a MaxiCode barcode id in structured append mode.
     */
    getStructuredAppendModeBarcodeId()
    {
        return this.getJavaClass().getStructuredAppendModeBarcodeIdSync();
    }

    /**
     * Gets a MaxiCode barcode id in structured append mode.
     * Default value: 0
     * @deprecated This property is obsolete and will be removed in future releases. Instead, use the getStructuredAppendModeBarcodeId().
     */
    getMaxiCodeStructuredAppendModeBarcodeId()
    {
        return this.getJavaClass().getMaxiCodeStructuredAppendModeBarcodeIdSync();
    }

    /**
     * <p>
     * Gets a MaxiCode barcodes count in structured append mode.
     * Default value: -1
     * </p>
     * @return a MaxiCode barcodes count in structured append mode.
     */
    getStructuredAppendModeBarcodesCount()
    {
        return this.getJavaClass().getStructuredAppendModeBarcodesCountSync();
    }

    /**
     * Gets a MaxiCode barcodes count in structured append mode.
     * Default value: -1
     * @deprecated This property is obsolete and will be removed in future releases. Instead, use the getStructuredAppendModeBarcodesCount().
     */
    getMaxiCodeStructuredAppendModeBarcodesCount()
    {
        return this.getJavaClass().getMaxiCodeStructuredAppendModeBarcodesCountSync();
    }

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

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

    /**
     * Returns a human-readable string representation of this <see cref="MaxiCodeExtendedParameters"/>.
     * @return A string that represents this <see cref="MaxiCodeExtendedParameters"/>.
     */
    toString()
    {
        return this.getJavaClass().toStringSync();
    }
}

module.exports = MaxiCodeExtendedParameters;