All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.refinitiv.eta.json.converter.DecodeJsonMsgOptionsImpl Maven / Gradle / Ivy

The newest version!
/*|-----------------------------------------------------------------------------
 *|            This source code is provided under the Apache 2.0 license
 *|  and is provided AS IS with no warranty or guarantee of fit for purpose.
 *|                See the project's LICENSE.md for details.
 *|           Copyright (C) 2019-2022 LSEG. All rights reserved.     
 *|-----------------------------------------------------------------------------
 */

package com.refinitiv.eta.json.converter;

class DecodeJsonMsgOptionsImpl implements DecodeJsonMsgOptions {

    private int converterFlags;
    private int jsonProtocolType;
    private int rsslProtocolType;
    private int majorVersion;
    private int minorVersion;

    DecodeJsonMsgOptionsImpl() {}

    public int getRsslProtocolType() {
        return rsslProtocolType;
    }

    public void setRsslProtocolType(int rsslProtocolType) {
        this.rsslProtocolType = rsslProtocolType;
    }

    public int getMajorVersion() {
        return majorVersion;
    }

    public void setMajorVersion(int majorVersion) {
        this.majorVersion = majorVersion;
    }

    public int getMinorVersion() {
        return minorVersion;
    }

    public void setMinorVersion(int minorVersion) {
        this.minorVersion = minorVersion;
    }

    public int getJsonProtocolType() {
        return jsonProtocolType;
    }

    public void setJsonProtocolType(int jsonProtocolType) {
        this.jsonProtocolType = jsonProtocolType;
    }

    public int getConverterFlags() {
        return converterFlags;
    }

    public void setConverterFlags(int converterFlags) {
        this.converterFlags = converterFlags;
    }

    @Override
    public void clear() {
        converterFlags = 0;
        jsonProtocolType = JsonProtocol.JSON_JPT_UNKNOWN;
        rsslProtocolType = 0;
        majorVersion = 0;
        minorVersion = 0;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy