Class Chapter

java.lang.Object
overit.geocall.lang.Chapter
Direct Known Subclasses:
ConfigChapter, LayerChapter, WebResourceChapter

public abstract class Chapter extends Object
This is a base class that defines the object that stores the string translations and will define a Dictionary
  • Field Details

    • associations

      protected TreeMap associations
  • Constructor Details

    • Chapter

      public Chapter(String lang)
      Creates a new chapter for a specific language
      Parameters:
      lang - the language of the chapter
  • Method Details

    • exists

      public boolean exists()
      Gets if the language has been found or not.
      Returns:
      true if the language has been found, false otherwise false
    • setExists

      public void setExists(boolean exists)
      Sets if the language has been found or not.
      Parameters:
      exists - true if a chapter for the langauge exists, false otherwise.
    • getLangName

      public String getLangName()
      Gets the language for which the chapter manages translations
      Returns:
      the language for which the chapter manages translations
    • getAssociations

      public Map getAssociations()
      Gets the translations managed by this chpater
      Returns:
      the translations managed by this chpater
    • splitSourceAndTranslation

      protected static String[] splitSourceAndTranslation(String l)
    • addImport

      protected void addImport(LinkedList ll, String names)
    • convert

      public String convert(String source)
      Translates an input string into the language defined for the chapter
      Parameters:
      source - The string to translate.
      Returns:
      A translation in the chapter's language for the input string source.