generation/maxicode-parameters.js

const _MwWrapper = require("../_mwbridge/_mw-wrapper.js");
const {javaFloat} = require("../_mwbridge/_mw-bridge");

/**
 * MaxiCode parameters.
 */
class MaxiCodeParameters extends _MwWrapper {

    constructor(mwObject) {
        super(mwObject);
        this._initializeWrapperMembers();
    }

    _initializeWrapperMembers() {
    }

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

    /**
     * <p>
     * Sets a MaxiCode encode mode.
     * </p>
     * @param value a MaxiCode encode mode.
     */
    setMode(value) {
        this.getJavaClass().setModeSync(value);
    }


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

    /**
     * Sets a MaxiCode encode mode.
     * @deprecated This property is obsolete and will be removed in future releases. Instead, use the setMode().
     */
    setMaxiCodeMode(maxiCodeMode) {
        this.getJavaClass().setMaxiCodeModeSync(maxiCodeMode);
    }

    /**
     * Gets a MaxiCode encode mode.
     * @deprecated This property is obsolete and will be removed in future releases. Instead, use the getEncodeMode().
     */
    getMaxiCodeEncodeMode() {
        return this.getJavaClass().getMaxiCodeEncodeModeSync();
    }

    /**
     * <p>
     * Gets a MaxiCode encode mode.
     * Default value: Auto.
     * </p>
     * @return a MaxiCode encode mode.
     */
    getEncodeMode() {
        return this.getJavaClass().getEncodeModeSync();
    }

    /**
     * <p>
     * Sets a MaxiCode encode mode.
     * Default value: Auto.
     * </p>
     * @param value a MaxiCode encode mode.
     */
    setEncodeMode(value) {
        this.getJavaClass().setEncodeModeSync(value);
    }

    /**
     * Sets a MaxiCode encode mode.
     * @deprecated This property is obsolete and will be removed in future releases. Instead, use the setEncodeMode().
     */
    setMaxiCodeEncodeMode(value) {
        this.getJavaClass().setMaxiCodeEncodeModeSync(value);
    }

    /**
     * Gets ECI encoding. Used when MaxiCodeEncodeMode is AUTO.
     * Default value: ISO-8859-1
     */
    getECIEncoding() {
        return this.getJavaClass().getECIEncodingSync();
    }

    /**
     * Sets ECI encoding. Used when MaxiCodeEncodeMode is AUTO.<br>
     * Default value: ISO-8859-1
     */
    setECIEncoding(ECIEncoding) {
        this.getJavaClass().setECIEncodingSync(ECIEncoding);
    }

    /**
     * Gets a MaxiCode barcode id in structured append mode.<br>
     * ID must be a value between 1 and 8.<br>
     * 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 barcode id in structured append mode.
     * ID must be a value between 1 and 8.
     * Default value: 0
     * </p>
     * @return a MaxiCode barcode id in structured append mode.
     */
    getStructuredAppendModeBarcodeId() {
        return this.getJavaClass().getStructuredAppendModeBarcodeIdSync();
    }

    /**
     * <p>
     * Sets a MaxiCode barcode id in structured append mode.
     * ID must be a value between 1 and 8.
     * Default value: 0
     * </p>
     * @param value a MaxiCode barcode id in structured append mode.
     */
    setStructuredAppendModeBarcodeId(value) {
        this.getJavaClass().setStructuredAppendModeBarcodeIdSync(value);
    }

    /**
     * Sets a MaxiCode barcode id in structured append mode.<br>
     * ID must be a value between 1 and 8.<br>
     * Default value: 0
     * @deprecated This property is obsolete and will be removed in future releases. Instead, use the setStructuredAppendModeBarcodeId().
     */
    setMaxiCodeStructuredAppendModeBarcodeId(maxiCodeStructuredAppendModeBarcodeId) {
        this.getJavaClass().setMaxiCodeStructuredAppendModeBarcodeIdSync(maxiCodeStructuredAppendModeBarcodeId);
    }

    /**
     * <p>
     * Gets a MaxiCode barcodes count in structured append mode.
     * Count number must be a value between 2 and 8 (maximum barcodes count).
     * Default value: -1
     * </p>
     * @return a MaxiCode barcodes count in structured append mode.
     */
    getStructuredAppendModeBarcodesCount() {
        return this.getJavaClass().getStructuredAppendModeBarcodesCountSync();
    }

    /**
     * <p>
     * Sets a MaxiCode barcodes count in structured append mode.
     * Count number must be a value between 2 and 8 (maximum barcodes count).
     * Default value: -1
     * </p>
     * @param value a MaxiCode barcodes count in structured append mode.
     */
    setStructuredAppendModeBarcodesCount(value) {
        this.getJavaClass().setStructuredAppendModeBarcodesCountSync(value);
    }


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

    /**
     * Sets a MaxiCode barcodes count in structured append mode.<br>
     * Count number must be a value between 2 and 8 (maximum barcodes count).<br>
     * Default value: -1
     * @deprecated This property is obsolete and will be removed in future releases. Instead, use the setStructuredAppendModeBarcodesCount().
     */
    setMaxiCodeStructuredAppendModeBarcodesCount(maxiCodeStructuredAppendModeBarcodesCount) {
        this.getJavaClass().setMaxiCodeStructuredAppendModeBarcodesCountSync(maxiCodeStructuredAppendModeBarcodesCount);
    }

    /**
     * Height/Width ratio of 2D BarCode module.
     */
    getAspectRatio() {
        return this.getJavaClass().getAspectRatioSync();
    }

    /**
     * Height/Width ratio of 2D BarCode module.
     */
    setAspectRatio(value)
    {
        this.getJavaClass().setAspectRatioSync(javaFloat(value));
    }

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

module.exports = MaxiCodeParameters;