Package overit.geocall.lang
Class Omission
java.lang.Object
overit.geocall.lang.Omission
This class implements the object that manages the storing of the missing translations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected LongThe company ID for which the dictionary is written and the omissions are storedprotected StringThe language with which the dictionary is written and the omissions are storedprotected LinkedHashSetMaintains a list of string for which there isn't a translation.protected StringThe package for which the dictionary is written and the omissions are stored -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OmissionExtracts the Omission starting from the language, the package and the factoryReturns the company ID for which the omissions are storedgetLang()Returns the language for which the omissions are storedRetuns a copy of the set of missing translations, keeping the insertion orderstatic DBViewgetOmissionsDBView(Identity id, Lang lang) Creates and returns aDBViewthat contains all the missing translationsReturns the package for which the omissions are storedprotected voidlogOmission(String source) Records a missing translationintsize()Returns the number of missing translations
-
Field Details
-
_lang
The language with which the dictionary is written and the omissions are stored -
_factory
The company ID for which the dictionary is written and the omissions are stored -
_pkg
The package for which the dictionary is written and the omissions are stored -
_omissionEntries
Maintains a list of string for which there isn't a translation. The @ characters are removed from the strings because they are not considered in dictionaries files
-
-
Constructor Details
-
Omission
Creates the Omission, for the specific language, package and factory- Parameters:
lang- The specific language for which the dictionary is written and the omissions are storedpkg- The specific package for which the dictionary is written and the omissions are storedfactory- The specific factory for which the dictionary is written and the omissions are stored
-
-
Method Details
-
get
Extracts the Omission starting from the language, the package and the factory- Parameters:
lang- The languagepkg- The applicative packagefactory- The company ID- Returns:
- The desired Omission instance
-
getLang
Returns the language for which the omissions are stored- Returns:
- The
languagevalue
-
getFactory
Returns the company ID for which the omissions are stored- Returns:
- The
factoryvalue
-
getPackage
Returns the package for which the omissions are stored- Returns:
- The
packagevalue
-
getOmissionEntries
Retuns a copy of the set of missing translations, keeping the insertion order- Returns:
- A
LinkedHashSetthat is the copy of the set missing translations
-
size
public int size()Returns the number of missing translations- Returns:
- The number of missing translations, stored in the Omission object
-
logOmission
Records a missing translation- Parameters:
source- The string for which the translation is missing
-
getOmissionsDBView
Creates and returns aDBViewthat contains all the missing translations
-