Package io.openems.edge.app.meter
Enum Class JanitzaMeter.JanitzaModel
- All Implemented Interfaces:
TranslatableEnum
,Nameable
,Serializable
,Comparable<JanitzaMeter.JanitzaModel>
,Constable
- Enclosing class:
JanitzaMeter
public static enum JanitzaMeter.JanitzaModel
extends Enum<JanitzaMeter.JanitzaModel>
implements TranslatableEnum
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface io.openems.edge.core.appmanager.Nameable
Nameable.StaticNameable
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetTranslation
(Language language) Gets the translation of the current value.getValue()
Gets the value which is being selected in theOptionsFactory
.static JanitzaMeter.JanitzaModel
Returns the enum constant of this class with the specified name.static JanitzaMeter.JanitzaModel[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UMG_96_RME
-
UMG_604
-
UMG_511
-
-
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
-
getTranslation
Description copied from interface:TranslatableEnum
Gets the translation of the current value.- Specified by:
getTranslation
in interfaceTranslatableEnum
- Parameters:
language
- the language of the value- Returns:
- the translated value
-
getValue
Description copied from interface:TranslatableEnum
Gets the value which is being selected in theOptionsFactory
. If you choose to override this be careful when calling a method which gets the enum value of a string name and not this value.- Specified by:
getValue
in interfaceTranslatableEnum
- Returns:
- the value of this
TranslatableEnum
-