Interface TranslatableEnum

All Superinterfaces:
Nameable
All Known Implementing Classes:
AcMeterType, AwattarHourly.Zone, EntsoE.BiddingZone, FeedInType, GoodWeGridMeterCategory, JanitzaMeter.JanitzaModel, MeterType, ModbusType, Phase, SafetyCountry

public interface TranslatableEnum extends Nameable
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.openems.edge.core.appmanager.Nameable

    Nameable.StaticNameable
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the translation of the current value.
    default String
    Gets the value which is being selected in the OptionsFactory.

    Methods inherited from interface io.openems.edge.core.appmanager.Nameable

    name
  • Method Details

    • getTranslation

      String getTranslation(Language language)
      Gets the translation of the current value.
      Parameters:
      language - the language of the value
      Returns:
      the translated value
    • getValue

      default String getValue()
      Gets the value which is being selected in the OptionsFactory. 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