Package de.uplanet.lucy.util
Interface ILocale
-
@Scriptable public interface ILocale
This interface represents locale settings in up environments.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getCurrencyDecimalSeparator()
returns the decimal separator for currencyString
getCurrencyDigitSeparator()
returns the digit separator for currencyint
getCurrencyFractionDigits()
returns the number of fraction digits of currency valuesString
getDateFormat()
returns the date format stringString
getDateTimeFormat()
returns the datetime format stringString
getDayShortDateFormat()
Method getDayShortDateFormat.String
getDefaultLanguage()
Returns the default portal language.int
getFirstDayOfWeek()
Method getFirstDayOfWeek returns the int value for the first day of a week.String
getHourFormat()
Method getHourFormat.String
getIntegerDigitSeparator()
returns the integer digit separatorString[]
getLanguages()
Returns the list of all supported portal languages.String
getLanguageTag()
The RFC 3066 language tag.String
getLongDateFormat()
String
getNumberDecimalSeparator()
returns the decimal separatorString
getNumberDigitSeparator()
returns the digit separatorint
getNumberFractionDigits()
returns the number of fraction digits of float valuesString
getShortDateFormat()
String
getTimeFormat()
returns the time format stringString
getTimeFormatWithSeconds()
returns the time format stringString
getTimeZoneId()
getTimeZone returns the timezone string or null, if none is set.boolean
isCurrencyLeadingNulls()
returns true, if leading nulls are supported before decimal separator, otherwise falseboolean
isDefault()
true
, if the instance represents the portal's default locale.boolean
isNumberLeadingNulls()
returns true, if leading nulls are supported before decimal separator, otherwise falseTimeZone
timeZone()
Returns the timezone ornull
, if none is set.
-
-
-
Method Detail
-
getDefaultLanguage
String getDefaultLanguage()
Returns the default portal language. The language code might differ from this locale instance's language tag.- Returns:
- 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.- Returns:
- The list of all supported portal languages.
-
getLanguageTag
String getLanguageTag()
The RFC 3066 language tag.- Returns:
- The RFC 3066 language tag.
-
isDefault
boolean isDefault()
true
, if the instance represents the portal's default locale.- Returns:
true
, if the instance represents the portal's default locale.
-
getDateFormat
String getDateFormat()
returns the date format string- Returns:
- date format
-
getShortDateFormat
String getShortDateFormat()
-
getLongDateFormat
String getLongDateFormat()
-
getTimeFormat
String getTimeFormat()
returns the time format string- Returns:
- time format
-
getTimeFormatWithSeconds
String getTimeFormatWithSeconds()
returns the time format string- Returns:
- time format with seconds part
-
getHourFormat
String getHourFormat()
Method getHourFormat.- Returns:
- String
-
getDateTimeFormat
String getDateTimeFormat()
returns the datetime format string- Returns:
- datetime format
-
getDayShortDateFormat
String getDayShortDateFormat()
Method getDayShortDateFormat.- Returns:
- String
-
getIntegerDigitSeparator
String getIntegerDigitSeparator()
returns the integer digit separator- Returns:
- integer digit separator
-
getNumberDecimalSeparator
String getNumberDecimalSeparator()
returns the decimal separator- Returns:
- decimal separator
-
getNumberDigitSeparator
String getNumberDigitSeparator()
returns the digit separator- Returns:
- digit separator
-
isNumberLeadingNulls
boolean isNumberLeadingNulls()
returns true, if leading nulls are supported before decimal separator, otherwise false- Returns:
- leading null flag
-
getNumberFractionDigits
int getNumberFractionDigits()
returns the number of fraction digits of float values- Returns:
- number of fraction digits
-
getCurrencyDecimalSeparator
String getCurrencyDecimalSeparator()
returns the decimal separator for currency- Returns:
- decimal separator
-
getCurrencyDigitSeparator
String getCurrencyDigitSeparator()
returns the digit separator for currency- Returns:
- digit separator
-
isCurrencyLeadingNulls
boolean isCurrencyLeadingNulls()
returns true, if leading nulls are supported before decimal separator, otherwise false- Returns:
- leading null flag
-
getCurrencyFractionDigits
int getCurrencyFractionDigits()
returns the number of fraction digits of currency values- Returns:
- number of fraction digits
-
timeZone
TimeZone timeZone()
Returns the timezone ornull
, if none is set.- Returns:
- The time zone.
-
getTimeZoneId
String getTimeZoneId()
getTimeZone returns the timezone string or null, if none is set. null means the UTC time zone.- Returns:
- Timezone string
-
getFirstDayOfWeek
int getFirstDayOfWeek()
Method getFirstDayOfWeek returns the int value for the first day of a week. e.g. 2 for monday .- Returns:
- int as Calendar.SUNDAY == 1 to Calendar.SATURDAY == 7 values
-
-