Package com._1c.g5.v8.dt.core.format
Enum FormatStringParameter
- java.lang.Object
-
- java.lang.Enum<FormatStringParameter>
-
- com._1c.g5.v8.dt.core.format.FormatStringParameter
-
- All Implemented Interfaces:
Serializable
,Comparable<FormatStringParameter>
public enum FormatStringParameter extends Enum<FormatStringParameter>
Dual named V8 format string parameters.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEAN_FALSE
BOOLEAN_TRUE
DATE_EMPTY
DATE_FORMAT
DATE_LOCAL_FORMAT
LOCALE_NAME
NUM_DEC_SEPARATOR
NUM_DIGITS
NUM_FORMAT
NUM_FRACT_DIGITS
NUM_GROUP_SEPARATOR
NUM_GROUPING
NUM_LEADING_ZEROES
NUM_NEG_ORDER
NUM_SHIFT
NUM_ZERO
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FormatStringParameter
get(String key)
Gets formatStringParameters byname
ornameRu
String
getLocaleName(ScriptVariant scriptVariant)
Gets parameter locale namestatic Map<FormatStringParameter,String>
parse(String formatString)
Parses V8 format string to map.static FormatStringParameter
valueOf(String name)
Returns the enum constant of this type with the specified name.static FormatStringParameter[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOCALE_NAME
public static final FormatStringParameter LOCALE_NAME
-
NUM_DIGITS
public static final FormatStringParameter NUM_DIGITS
-
NUM_FRACT_DIGITS
public static final FormatStringParameter NUM_FRACT_DIGITS
-
NUM_SHIFT
public static final FormatStringParameter NUM_SHIFT
-
NUM_DEC_SEPARATOR
public static final FormatStringParameter NUM_DEC_SEPARATOR
-
NUM_GROUP_SEPARATOR
public static final FormatStringParameter NUM_GROUP_SEPARATOR
-
NUM_ZERO
public static final FormatStringParameter NUM_ZERO
-
NUM_LEADING_ZEROES
public static final FormatStringParameter NUM_LEADING_ZEROES
-
NUM_GROUPING
public static final FormatStringParameter NUM_GROUPING
-
NUM_NEG_ORDER
public static final FormatStringParameter NUM_NEG_ORDER
-
NUM_FORMAT
public static final FormatStringParameter NUM_FORMAT
-
DATE_FORMAT
public static final FormatStringParameter DATE_FORMAT
-
DATE_LOCAL_FORMAT
public static final FormatStringParameter DATE_LOCAL_FORMAT
-
DATE_EMPTY
public static final FormatStringParameter DATE_EMPTY
-
BOOLEAN_FALSE
public static final FormatStringParameter BOOLEAN_FALSE
-
BOOLEAN_TRUE
public static final FormatStringParameter BOOLEAN_TRUE
-
-
Method Detail
-
values
public static FormatStringParameter[] 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 (FormatStringParameter c : FormatStringParameter.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FormatStringParameter 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 FormatStringParameter get(String key)
Gets formatStringParameters byname
ornameRu
- Parameters:
key
-name
ornameRu
- Returns:
- the format string parameters or
null
if it's not founded
-
getLocaleName
public String getLocaleName(ScriptVariant scriptVariant)
Gets parameter locale name- Parameters:
scriptVariant
- the configuration script variant, cannot benull
- Returns:
- the parameter locale string name, never
null
-
parse
public static Map<FormatStringParameter,String> parse(String formatString)
Parses V8 format string to map.- Parameters:
formatString
- the format string, cannot benull
- Returns:
- the format parameters map, never
null
-
-