generation/code-128-parameters.js

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

/**
 * Code128 parameters.
 */
class Code128Parameters extends _MwWrapper
{
    _initializeWrapperMembers()
    {

    }

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

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

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

    /**
     * <p>
     * Gets a Code128 encode mode.
     * Default value: Code128EncodeMode.Auto
     * </p>
     * @deprecated This property is obsolete and will be removed in future releases. Instead, use the getEncodeMode().
     */
    getCode128EncodeMode()
    {
        return this.getJavaClass().getCode128EncodeModeSync();
    }

    /**
     * <p>
     * Sets a Code128 encode mode.
     * Default value: Code128EncodeMode.Auto
     * </p>
     * @deprecated This property is obsolete and will be removed in future releases. Instead, use the setEncodeMode().
     */
    setCode128EncodeMode(value)
    {
        this.getJavaClass().setCode128EncodeModeSync(value);
    }

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

module.exports = Code128Parameters;