Package io.openems.edge.app.enums
Interface TranslatableEnum
- All Superinterfaces:
Nameable
- All Known Implementing Classes:
AcMeterType
,AwattarHourly.Zone
,EntsoE.BiddingZone
,FeedInType
,GoodWeGridMeterCategory
,JanitzaMeter.JanitzaModel
,MeterType
,ModbusType
,Phase
,SafetyCountry
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.openems.edge.core.appmanager.Nameable
Nameable.StaticNameable
-
Method Summary
Modifier and TypeMethodDescriptiongetTranslation
(Language language) Gets the translation of the current value.default String
getValue()
Gets the value which is being selected in theOptionsFactory
.
-
Method Details
-
getTranslation
Gets the translation of the current value.- Parameters:
language
- the language of the value- Returns:
- the translated value
-
getValue
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.- Returns:
- the value of this
TranslatableEnum
-