Enum Class DefaultTranslationsGenerationMode
java.lang.Object
java.lang.Enum<DefaultTranslationsGenerationMode>
org.openhab.core.tools.i18n.plugin.DefaultTranslationsGenerationMode
- All Implemented Interfaces:
Serializable
,Comparable<DefaultTranslationsGenerationMode>
,Constable
@NonNullByDefault
public enum DefaultTranslationsGenerationMode
extends Enum<DefaultTranslationsGenerationMode>
Enumerates all the different modes for generating default translations.
- Author:
- Wouter Born - Initial contribution
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCreates XML based default translations files only when these do not yet exist.Same asADD_MISSING_FILES
but also adds missing translations to existing default translations files.Removes existing default translation files and regenerates them based on the XML based texts only. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static DefaultTranslationsGenerationMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADD_MISSING_FILES
Creates XML based default translations files only when these do not yet exist. -
ADD_MISSING_TRANSLATIONS
Same asADD_MISSING_FILES
but also adds missing translations to existing default translations files. -
REGENERATE_FILES
Removes existing default translation files and regenerates them based on the XML based texts only.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-