Enum Class OpenemsAppCategory

java.lang.Object
java.lang.Enum<OpenemsAppCategory>
io.openems.edge.core.appmanager.OpenemsAppCategory
All Implemented Interfaces:
Serializable, Comparable<OpenemsAppCategory>, Constable

public enum OpenemsAppCategory extends Enum<OpenemsAppCategory>
  • Enum Constant Details

  • Method Details

    • values

      public static OpenemsAppCategory[] 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

      public static OpenemsAppCategory valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getReadableName

      public String getReadableName(Language language)
      Gets the readable name in the specific language.
      Parameters:
      language - the language of the name
      Returns:
      the name
    • toJsonObject

      public com.google.gson.JsonObject toJsonObject(Language language)
      Creates a JsonObject of the OpenemsAppCategory.
      Parameters:
      language - the language of the readable name
      Returns:
      the JsonObject