Klasse UtilNls


public class UtilNls extends ListResourceBundle
This class displays messages with internal variable names (useful for debugging).
  • Felddetails

    • htmlBegin

      static final String htmlBegin
      The head of all help areas in HTML format. The special body is to be concatenated.
      Siehe auch:
  • Konstruktordetails

    • UtilNls

      public UtilNls()
      Create an instance of this class.
  • Methodendetails

    • findRecursive

      public static boolean findRecursive(File javaFile, String nlsKey)
      Checks if the NLS translation is used.
      Parameter:
      javaFile - where the NLS translation is looked for
      nlsKey - to be looked for
      Gibt zurück:
      if the nlsKey is used
    • main

      public static void main(String[] args)
      Only for internal use. Does not work outside dev environment.
      Parameter:
      args - ignored
    • setValToKey

      public static Object[][] setValToKey(Object[][] originalContents)
      For debugging the keys (variable names) are shown instead of NLS names.
      Parameter:
      originalContents - the NLS keys
      Gibt zurück:
      the keys copied to the value array.
    • toStringsWithPlaceholders

      public static void toStringsWithPlaceholders(Object[][] contents)
      The number of placeholders is a property of an KeyAble (e. g. UtilSetting). Replace the KeyAble by the concatenation of its name and placholders (:%1$s:%2$s...). In case of message level, replace the level by its name. If the key is a string already, do not change it.
      Parameter:
      contents - the 2-dimensional array of keys an natural language messages
    • embedBodyInHtml

      public static String embedBodyInHtml(String body)
      The special help consists of the HTML body only. It is embedded in a complete html with head.
      Parameter:
      body - the special body of the help
      Gibt zurück:
      the body surrounded by hthm
    • getContents

      protected Object[][] getContents()
      The super class needs this.
      Angegeben von:
      getContents in Klasse ListResourceBundle
      Gibt zurück:
      the 2-dimensional array of keys and natural language templates.