Package overit.geocall.lang
Class Chapter
java.lang.Object
overit.geocall.lang.Chapter
- Direct Known Subclasses:
ConfigChapter,LayerChapter,WebResourceChapter
This is a base class that defines the object that stores the string translations and will define a
Dictionary-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddImport(LinkedList ll, String names) Translates an input string into the language defined for the chapterbooleanexists()Gets if the language has been found or not.Gets the translations managed by this chpaterGets the language for which the chapter manages translationsvoidsetExists(boolean exists) Sets if the language has been found or not.protected static String[]
-
Field Details
-
associations
-
-
Constructor Details
-
Chapter
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:
trueif the language has been found, false otherwisefalse
-
setExists
public void setExists(boolean exists) Sets if the language has been found or not.- Parameters:
exists-trueif a chapter for the langauge exists,falseotherwise.
-
getLangName
Gets the language for which the chapter manages translations- Returns:
- the language for which the chapter manages translations
-
getAssociations
Gets the translations managed by this chpater- Returns:
- the translations managed by this chpater
-
splitSourceAndTranslation
-
addImport
-
convert
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.
-