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
Denotes individual core functions.
- Author:
- Holger Eichelberger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanStores the default behavior if no contribution is present. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCoreFunction(boolean enabled) Creates a new UI element constant. -
Method Summary
Modifier and TypeMethodDescription(package private) booleancombine(boolean val1, boolean val2) Combines two enabled values.booleanReturns the default behavior of no contribution is present.static Contributions.CoreFunctionReturns the enum constant of this class with the specified name.static Contributions.CoreFunction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PULL_CONFIGURATION
The button for pulling the configuration.
-
-
Field Details
-
enabled
private boolean enabledStores 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
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
-
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 valueval2- the second value- Returns:
- the combined result
-