Class Literal

java.lang.Object
io.mateu.mdd.core.model.multilanguage.Literal
All Implemented Interfaces:
io.mateu.util.interfaces.Translated

@Entity public class Literal extends Object implements io.mateu.util.interfaces.Translated
holder for translations. Hardcoding translations is used for better performance

Created by miguel on 13/9/16.

  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • set

      public void set(io.mateu.util.data.Data value)
      Specified by:
      set in interface io.mateu.util.interfaces.Translated
    • get

      public io.mateu.util.data.Data get()
      Specified by:
      get in interface io.mateu.util.interfaces.Translated
    • get

      public String get(String language)
    • set

      public void set(String language, String text)
    • translateWithDeepL

      public static void translateWithDeepL(Set<Literal> selection) throws Exception
      Throws:
      Exception