Enum Class Contributions.CoreFunction

java.lang.Object
java.lang.Enum<Contributions.CoreFunction>
net.ssehub.easy.producer.eclipse.contributions.Contributions.CoreFunction
All Implemented Interfaces:
Serializable, Comparable<Contributions.CoreFunction>, Constable
Enclosing class:
Contributions

public static enum Contributions.CoreFunction extends Enum<Contributions.CoreFunction>
Denotes individual core functions.
Author:
Holger Eichelberger
  • Enum Constant Details

    • PULL_CONFIGURATION

      public static final Contributions.CoreFunction PULL_CONFIGURATION
      The button for pulling the configuration.
  • Field Details

    • enabled

      private boolean enabled
      Stores the default behavior if no contribution is present.
  • Constructor Details

    • CoreFunction

      private CoreFunction(boolean enabled)
      Creates a new UI element constant.
      Parameters:
      enabled - the default behavior if no contribution is present
  • Method Details

    • values

      public static Contributions.CoreFunction[] 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 Contributions.CoreFunction 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
    • getEnabled

      public boolean getEnabled()
      Returns the default behavior of no contribution is present.
      Returns:
      the default behavior
    • combine

      boolean combine(boolean val1, boolean val2)
      Combines two enabled values.
      Parameters:
      val1 - the first value
      val2 - the second value
      Returns:
      the combined result