Package de.uplanet.lucy.util
Schnittstelle ILocale
@Scriptable
public interface ILocale
This interface represents locale settings in up environments.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungreturns the decimal separator for currencyreturns the digit separator for currencyintreturns the number of fraction digits of currency valuesreturns the date format stringreturns the datetime format stringMethod getDayShortDateFormat.Returns the default portal language.intMethod getFirstDayOfWeek returns the int value for the first day of a week. e.g. 2 for monday .Method getHourFormat.returns the integer digit separatorString[]Returns the list of all supported portal languages.The RFC 3066 language tag.returns the decimal separatorreturns the digit separatorintreturns the number of fraction digits of float valuesreturns the time format stringreturns the time format stringgetTimeZone returns the timezone string or null, if none is set. null means the UTC time zone.booleanreturns true, if leading nulls are supported before decimal separator, otherwise falsebooleantrue, if the instance represents the portal's default locale.booleanreturns true, if leading nulls are supported before decimal separator, otherwise falsetimeZone()Returns the timezone ornull, if none is set.
-
Methodendetails
-
getDefaultLanguage
String getDefaultLanguage()Returns the default portal language. The language code might differ from this locale instance's language tag.- Gibt zurück:
- The default language.
-
getLanguages
String[] getLanguages()Returns the list of all supported portal languages. The language codes might differ from this locale instance's language tag.- Gibt zurück:
- The list of all supported portal languages.
-
getLanguageTag
String getLanguageTag()The RFC 3066 language tag.- Gibt zurück:
- The RFC 3066 language tag.
-
isDefault
boolean isDefault()true, if the instance represents the portal's default locale.- Gibt zurück:
true, if the instance represents the portal's default locale.
-
getDateFormat
String getDateFormat()returns the date format string- Gibt zurück:
- date format
-
getShortDateFormat
String getShortDateFormat() -
getLongDateFormat
String getLongDateFormat() -
getTimeFormat
String getTimeFormat()returns the time format string- Gibt zurück:
- time format
-
getTimeFormatWithSeconds
String getTimeFormatWithSeconds()returns the time format string- Gibt zurück:
- time format with seconds part
-
getHourFormat
String getHourFormat()Method getHourFormat.- Gibt zurück:
- String
-
getDateTimeFormat
String getDateTimeFormat()returns the datetime format string- Gibt zurück:
- datetime format
-
getDayShortDateFormat
String getDayShortDateFormat()Method getDayShortDateFormat.- Gibt zurück:
- String
-
getIntegerDigitSeparator
String getIntegerDigitSeparator()returns the integer digit separator- Gibt zurück:
- integer digit separator
-
getNumberDecimalSeparator
String getNumberDecimalSeparator()returns the decimal separator- Gibt zurück:
- decimal separator
-
getNumberDigitSeparator
String getNumberDigitSeparator()returns the digit separator- Gibt zurück:
- digit separator
-
isNumberLeadingNulls
boolean isNumberLeadingNulls()returns true, if leading nulls are supported before decimal separator, otherwise false- Gibt zurück:
- leading null flag
-
getNumberFractionDigits
int getNumberFractionDigits()returns the number of fraction digits of float values- Gibt zurück:
- number of fraction digits
-
getCurrencyDecimalSeparator
String getCurrencyDecimalSeparator()returns the decimal separator for currency- Gibt zurück:
- decimal separator
-
getCurrencyDigitSeparator
String getCurrencyDigitSeparator()returns the digit separator for currency- Gibt zurück:
- digit separator
-
isCurrencyLeadingNulls
boolean isCurrencyLeadingNulls()returns true, if leading nulls are supported before decimal separator, otherwise false- Gibt zurück:
- leading null flag
-
getCurrencyFractionDigits
int getCurrencyFractionDigits()returns the number of fraction digits of currency values- Gibt zurück:
- number of fraction digits
-
timeZone
TimeZone timeZone()Returns the timezone ornull, if none is set.- Gibt zurück:
- The time zone.
-
getTimeZoneId
String getTimeZoneId()getTimeZone returns the timezone string or null, if none is set. null means the UTC time zone.- Gibt zurück:
- Timezone string
-
getFirstDayOfWeek
int getFirstDayOfWeek()Method getFirstDayOfWeek returns the int value for the first day of a week. e.g. 2 for monday .- Gibt zurück:
- int as Calendar.SUNDAY == 1 to Calendar.SATURDAY == 7 values
-