Class QlGeneratorMultiLangProposals.Proposals

  • Enclosing class:
    QlGeneratorMultiLangProposals

    public static class QlGeneratorMultiLangProposals.Proposals
    extends Object
    Contains names for proposals.
    Gets methods for change name.
    • Constructor Detail

      • Proposals

        public Proposals()
        Empty initializing
      • Proposals

        public Proposals​(String name,
                         String nameRu)
        Initializing proposal
        Parameters:
        name - - English variant
        nameRu - - Russian varian
      • Proposals

        public Proposals​(String dualName)
        Initializing proposal
        Parameters:
        dualName - Russian and English variant
    • Method Detail

      • getName

        public String getName​(boolean isRussian)
        Get name
        Parameters:
        isRussian - language flag, if isRussian == true then Russian name will be returned
        Returns:
        actual name of this proposal
      • setName

        public void setName​(String name)
        Change English name
        Parameters:
        name -
      • setNameRu

        public void setNameRu​(String nameRu)
        Change Russian name
        Parameters:
        nameRu -
      • setDualName

        public void setDualName​(String name)
        Change both names.
        Use it when name.equals(nameRu)
        Parameters:
        name -