Enum BooleanLocale
- java.lang.Object
-
- java.lang.Enum<BooleanLocale>
-
- com._1c.g5.v8.dt.core.format.impl.BooleanLocale
-
- All Implemented Interfaces:
Serializable
,Comparable<BooleanLocale>
public enum BooleanLocale extends Enum<BooleanLocale>
BooleanLocale is a enum that stores formats boolean values.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AZERBAIDJAN
BULGARIAN
CHINESE
CZECH
DANISH
DEFAULT
DUTCH
FINNISH
FRENCH
GEORGIAN
GERMAN
GREEK
HUNGARIAN
ITALIAN_V653
KAZAKH
LATVIAN_V653
LITHUANIAN
NORWEGIAN_BOKMЕL
NORWEGIAN_NYNORSK
POLISH
PORTUGUESE
ROMANIAN
RUSSIAN
SLOVENIAN
SPANISH
SWEDISH
TURKISH_V653
UKRAINIAN
VIETNAMESE_V653
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
format(boolean trueFalse)
Formats boolean value.static BooleanLocale
get(com.ibm.icu.util.ULocale locale)
Gets boolean locale representation bylocale
('az', 'ru' e.t.c.) By default -> 'en'.static BooleanLocale
get(String localeName)
Gets boolean locale representation bylocale
('az', 'ru' e.t.c.) By default -> 'en'.String
getFalse()
Gets 'false' representation.String
getTrue()
Gets 'true' representation.static BooleanLocale
valueOf(String name)
Returns the enum constant of this type with the specified name.static BooleanLocale[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AZERBAIDJAN
public static final BooleanLocale AZERBAIDJAN
-
BULGARIAN
public static final BooleanLocale BULGARIAN
-
CZECH
public static final BooleanLocale CZECH
-
DANISH
public static final BooleanLocale DANISH
-
GERMAN
public static final BooleanLocale GERMAN
-
GREEK
public static final BooleanLocale GREEK
-
SPANISH
public static final BooleanLocale SPANISH
-
FINNISH
public static final BooleanLocale FINNISH
-
FRENCH
public static final BooleanLocale FRENCH
-
HUNGARIAN
public static final BooleanLocale HUNGARIAN
-
ITALIAN_V653
public static final BooleanLocale ITALIAN_V653
-
GEORGIAN
public static final BooleanLocale GEORGIAN
-
KAZAKH
public static final BooleanLocale KAZAKH
-
LITHUANIAN
public static final BooleanLocale LITHUANIAN
-
LATVIAN_V653
public static final BooleanLocale LATVIAN_V653
-
NORWEGIAN_BOKMЕL
public static final BooleanLocale NORWEGIAN_BOKMЕL
-
DUTCH
public static final BooleanLocale DUTCH
-
NORWEGIAN_NYNORSK
public static final BooleanLocale NORWEGIAN_NYNORSK
-
POLISH
public static final BooleanLocale POLISH
-
PORTUGUESE
public static final BooleanLocale PORTUGUESE
-
ROMANIAN
public static final BooleanLocale ROMANIAN
-
RUSSIAN
public static final BooleanLocale RUSSIAN
-
SLOVENIAN
public static final BooleanLocale SLOVENIAN
-
SWEDISH
public static final BooleanLocale SWEDISH
-
TURKISH_V653
public static final BooleanLocale TURKISH_V653
-
UKRAINIAN
public static final BooleanLocale UKRAINIAN
-
VIETNAMESE_V653
public static final BooleanLocale VIETNAMESE_V653
-
CHINESE
public static final BooleanLocale CHINESE
-
DEFAULT
public static final BooleanLocale DEFAULT
-
-
Method Detail
-
values
public static BooleanLocale[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BooleanLocale c : BooleanLocale.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BooleanLocale valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
get
public static BooleanLocale get(String localeName)
Gets boolean locale representation bylocale
('az', 'ru' e.t.c.) By default -> 'en'.- Parameters:
localeName
-locale
- Returns:
- the boolean locale representation. If it's not founded - 'en' uses.
-
get
public static BooleanLocale get(com.ibm.icu.util.ULocale locale)
Gets boolean locale representation bylocale
('az', 'ru' e.t.c.) By default -> 'en'.- Parameters:
locale
- the localeULocale
- Returns:
- the boolean locale representation. If it's not founded - 'en' uses.
-
format
public String format(boolean trueFalse)
Formats boolean value.- Parameters:
trueFalse
- boolean value- Returns:
- boolean value representation
-
getFalse
public String getFalse()
Gets 'false' representation.- Returns:
- the 'false' representation.
-
getTrue
public String getTrue()
Gets 'true' representation.- Returns:
- the 'true' representation.
-
-