Class RenderOptionsInput

    • Field Detail

      • language

        protected String language
        input language
      • forceRandomSeed

        protected int forceRandomSeed
        force random seed
      • defaultSynoMode

        protected String defaultSynoMode
        default synonym mode
      • defaultAmong

        protected int defaultAmong
        default among
      • renderDebug

        protected boolean renderDebug
        render debug
      • KEY_FORCERANDOMSEED

        protected static final String KEY_FORCERANDOMSEED
        JSON key for force random seed
        See Also:
        Constant Field Values
      • KEY_DEFAULTSYNOMODE

        protected static final String KEY_DEFAULTSYNOMODE
        JSON key for default synonym mode
        See Also:
        Constant Field Values
    • Constructor Detail

      • RenderOptionsInput

        public RenderOptionsInput()
        Create an empty object.
      • RenderOptionsInput

        public RenderOptionsInput​(org.json.JSONObject jsonOptions)
        Create from a JSON object by picking relevant parameters.
        Parameters:
        jsonOptions - json options which can contain runtime parameters
    • Method Detail

      • toJsonString

        public String toJsonString()
        Serializes the object to a JSON String.
        Returns:
        String the object as a JSON String
      • toJsonObj

        public org.json.JSONObject toJsonObj()
        Serializes the object to a JSON object.
        Returns:
        JSONObject the object as a JSON String
      • setLanguage

        public RenderOptionsInput setLanguage​(String language)
        sets the language, for instance 'en_US' or 'fr_FR'.
        Parameters:
        language - the language
        Returns:
        this to set further options
      • setForceRandomSeed

        public RenderOptionsInput setForceRandomSeed​(int forceRandomSeed)
        sets forceRandomSeed param, which is the random seed.
        Parameters:
        forceRandomSeed - the random seed
        Returns:
        this to set further options
      • setDefaultSynoMode

        public RenderOptionsInput setDefaultSynoMode​(String defaultSynoMode)
        sets defaultSynoMode param.
        Parameters:
        defaultSynoMode - the default synonym mode
        Returns:
        this to set further options
      • setDefaultAmong

        public RenderOptionsInput setDefaultAmong​(int defaultAmong)
        sets the defaultAmong value.
        Parameters:
        defaultAmong - the default among value
        Returns:
        this to set further options
      • setRenderDebug

        public RenderOptionsInput setRenderDebug​(boolean renderDebug)
        sets renderDebug value.
        Parameters:
        renderDebug - the renderDebug value
        Returns:
        this to set further options
      • getLanguage

        public String getLanguage()
        gets the language.
        Returns:
        the language
      • getForceRandomSeed

        public int getForceRandomSeed()
        gets the forced random seed.
        Returns:
        this to set further options
      • getDefaultSynoMode

        public String getDefaultSynoMode()
        gets the default synonym mode.
        Returns:
        defaultSynoMode
      • getDefaultAmong

        public int getDefaultAmong()
        gets the defaultAmong value.
        Returns:
        defaultAmong
      • getRenderDebug

        public boolean getRenderDebug()
        gets the renderDebug value.
        Returns:
        renderDebug