public class LangsProviderInstance extends java.lang.Object
|Constructor and Description|
|Modifier and Type||Method and Description|
The static method returns an iterator over languages from the user preferred languages that also exists in the DTS passed in in the dts parameter.
Gets the langs provider instance.
Sets the langs provider instance.
public static void setLangsProviderInstance(LangsProvider newProvider)
newProvider- the new langs provider instance
public static LangsProvider getLangsProviderInstance()
public static java.util.Iterator<java.lang.String> getLangsCombined(DTSContainer dts)
Languages in the DTS are collected automatically during the DTS discovery process and they are collected in no particular order.
The list of user preferred languages is set in a call to the
setLangsProviderInstance(LangsProvider) and the
first one in the list is the most preferred language.
In case no intersection exists, this method falls back to prepare the
intersection of languages between the content of the DTSContainer property
DTSContainer.DTS_USER_LANGUAGES and the languages from the DTS.
In case no intersection exists, then this method prepares an iterator including the language indicated in the user.language property of the JVM and the static constant "en".
dts- The DTSContainer
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa