Package com.e1c.langtool.v8.dt.format
Class FormatInternalizeTokenProvider
java.lang.Object
com.e1c.langtool.v8.dt.format.FormatInternalizeTokenProvider
Translates internal format string enums
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe Constant BOOLEAN_FRACTION.static final StringThe Constant BOOLEAN_FRACTION_RU.The cases.The date format symbols.The date format tokens.The enum tokens.The gender.The local date format tokens.The number in words type.The number presentation.static final StringThe Constant NUMERAL_TYPE.The numeral type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBooleanType(String key, ScriptVariant scriptVariant) Gets boolean type from booleanType collection.getCase(String enumValue, ScriptVariant scriptVariant) Gets the case.getGender(String enumValue, ScriptVariant scriptVariant) Gets the gender.getInternalizeDateFormatSybmol(String symbol, ScriptVariant scriptVariant) Gets the internalize date format sybmol.getInternalizeDateFormatValue(String enumValue, boolean isRussian) Gets the internalize date format value.getInternalizeDateFormatValue(String enumValue, ScriptVariant scriptVariant) Gets the internalize date format value.getInternalizeEnumValue(String enumValue, boolean isRussian) Gets the internalize enum value.getInternalizeEnumValue(String enumValue, ScriptVariant scriptVariant) Gets the internalize enum value.getInternalizeLocalDateFormatValue(String enumValue, boolean isRussian) Gets the internalize local date format value.getInternalizeLocalDateFormatValue(String enumValue, ScriptVariant scriptVariant) Gets the internalize local date format value.getNumberInWordsType(String enumValue, ScriptVariant scriptVariant) Gets the number in words type.getNumberPresentation(String enumValue, ScriptVariant scriptVariant) Gets the number presentation.getNumeralType(String enumValue, ScriptVariant scriptVariant) Gets the numeral type.protected voidinit()Inits internal mapsprotected voidInits the cases.protected voidInits the date format symbols.protected voidInits the date format tokens.protected voidInits the enum tokens.protected voidInits the gender.protected voidInits the local date format tokens.protected voidInits the number in words type.protected voidInits the number presentation.protected voidInits the numeral type.booleanisBooleanType(String key) Checks if is boolean type.booleanChecks if is case.booleanisDataFormat(String enumValue) Checks if is data format.booleanisEnumType(String enumValue) Checks if is enum type.booleanisFormatKey(String key) Checks if is format key.booleanChecks if is gender.booleanisLocalDataFormat(String enumValue) Checks if is local data format.booleanisNumberInWordsType(String enumValue) Checks if is number in words type.booleanisNumberPresentation(String enumValue) Checks if is number presentation.booleanisNumeralType(String enumValue) Checks if is numeral type.
-
Field Details
-
NUMERAL_TYPE
The Constant NUMERAL_TYPE.- See Also:
-
BOOLEAN_FRACTION
The Constant BOOLEAN_FRACTION.- See Also:
-
BOOLEAN_FRACTION_RU
The Constant BOOLEAN_FRACTION_RU.- See Also:
-
enumTokens
The enum tokens. -
dateFormatTokens
The date format tokens. -
dateFormatSymbols
The date format symbols. -
localDateFormatTokens
The local date format tokens. -
numberInWordsType
The number in words type. -
cases
The cases. -
gender
The gender. -
numberPresentation
The number presentation. -
numeralType
The numeral type.
-
-
Constructor Details
-
FormatInternalizeTokenProvider
public FormatInternalizeTokenProvider()
-
-
Method Details
-
getInternalizeEnumValue
Gets the internalize enum value.- Parameters:
enumValue- the enum value. Cannot benullisRussian- the is russian- Returns:
- the internalize enum value. Can be
null
-
getInternalizeEnumValue
Gets the internalize enum value.- Parameters:
enumValue- the enum value. Cannot benullscriptVariant- the script variant. Cannot benull- Returns:
- the internalize enum value. Can be
null
-
getInternalizeDateFormatValue
Gets the internalize date format value.- Parameters:
enumValue- the enum value. Cannot benullisRussian- the is russian- Returns:
- the internalize date format value. Can be
null
-
getInternalizeDateFormatValue
Gets the internalize date format value.- Parameters:
enumValue- the enum value. Cannot benullscriptVariant- the script variant. Cannot benull- Returns:
- the internalize date format value. Can be
null
-
getInternalizeDateFormatSybmol
Gets the internalize date format sybmol.- Parameters:
symbol- the symbol. Cannot benullscriptVariant- the script variant. Cannot benull- Returns:
- the internalize date format sybmol. Can be
null
-
getInternalizeLocalDateFormatValue
Gets the internalize local date format value.- Parameters:
enumValue- the enum value. Cannot benullisRussian- the is russian- Returns:
- the internalize local date format value. Can be
null
-
getInternalizeLocalDateFormatValue
Gets the internalize local date format value.- Parameters:
enumValue- the enum value. Cannot benullscriptVariant- the script variant. Cannot benull- Returns:
- the internalize local date format value. Can be
null
-
getCase
Gets the case.- Parameters:
enumValue- the enum value. Cannot benullscriptVariant- the script variant. Cannot benull- Returns:
- the case. Can be
null
-
getGender
Gets the gender.- Parameters:
enumValue- the enum value. Cannot benullscriptVariant- the script variant. Cannot benull- Returns:
- the gender. Can be
null
-
getNumberInWordsType
Gets the number in words type.- Parameters:
enumValue- the enum value. Cannot benullscriptVariant- the script variant. Cannot benull- Returns:
- the number in words type. Can be
null
-
getNumberPresentation
Gets the number presentation.- Parameters:
enumValue- the enum value. Cannot benullscriptVariant- the script variant. Cannot benull- Returns:
- the number presentation. Can be
null
-
getNumeralType
Gets the numeral type.- Parameters:
enumValue- the enum value. Cannot benullscriptVariant- the script variant. Cannot benull- Returns:
- the numeral type. Can be
null
-
getBooleanType
Gets boolean type from booleanType collection.- Parameters:
key- of enum value. Cannot benullscriptVariant- the script variant. Cannot benull- Returns:
- the boolean type present in lower case. Can be
null
-
isDataFormat
Checks if is data format.- Parameters:
enumValue- the enum value. Cannot benull- Returns:
true, if is data format
-
isLocalDataFormat
Checks if is local data format.- Parameters:
enumValue- the enum value. Cannot benull- Returns:
true, if is local data format
-
isCase
Checks if is case.- Parameters:
enumValue- the enum value. Cannot benull- Returns:
true, if is case
-
isGender
Checks if is gender.- Parameters:
enumValue- the enum value. Cannot benull- Returns:
true, if is gender
-
isNumberInWordsType
Checks if is number in words type.- Parameters:
enumValue- the enum value. Cannot benull- Returns:
true, if is number in words type
-
isNumberPresentation
Checks if is number presentation.- Parameters:
enumValue- the enum value. Cannot benull- Returns:
true, if is number presentation
-
isNumeralType
Checks if is numeral type.- Parameters:
enumValue- the enum value. Cannot benull- Returns:
true, if is numeral type
-
isBooleanType
Checks if is boolean type.- Parameters:
enum- key, can benull- Returns:
trueif is boolean type
-
isEnumType
Checks if is enum type.- Parameters:
enumValue- the enum value, can benull- Returns:
true, if is enum type
-
init
protected void init()Inits internal maps -
initEnumTokens
protected void initEnumTokens()Inits the enum tokens. -
isFormatKey
Checks if is format key.- Parameters:
key- the key, can benull- Returns:
true, if is format key
-
initDateFormatTokens
protected void initDateFormatTokens()Inits the date format tokens. -
initDateFormatSymbols
protected void initDateFormatSymbols()Inits the date format symbols. -
initNumeralType
protected void initNumeralType()Inits the numeral type. -
initCases
protected void initCases()Inits the cases. -
initNumberPresentation
protected void initNumberPresentation()Inits the number presentation. -
initGender
protected void initGender()Inits the gender. -
initNumberInWordsType
protected void initNumberInWordsType()Inits the number in words type. -
initLocalDateFormatTokens
protected void initLocalDateFormatTokens()Inits the local date format tokens.
-