Enum Class DependencyDeclaration.UpdatePolicy
java.lang.Object
java.lang.Enum<DependencyDeclaration.UpdatePolicy>
io.openems.edge.core.appmanager.dependency.DependencyDeclaration.UpdatePolicy
- All Implemented Interfaces:
Serializable
,Comparable<DependencyDeclaration.UpdatePolicy>
,Constable
- Enclosing class:
- DependencyDeclaration
public static enum DependencyDeclaration.UpdatePolicy
extends Enum<DependencyDeclaration.UpdatePolicy>
Defines if the dependency should get updated when updating the parent app.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
isAllowedToUpdate
(List<OpenemsAppInstance> allInstances, OpenemsAppInstance parent, OpenemsAppInstance app2Update) Determines if anOpenemsAppInstance
is allowed to be updated.Returns the enum constant of this class with the specified name.static DependencyDeclaration.UpdatePolicy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
-
IF_MINE
-
NEVER
-
-
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
-
isAllowedToUpdate
public final boolean isAllowedToUpdate(List<OpenemsAppInstance> allInstances, OpenemsAppInstance parent, OpenemsAppInstance app2Update) Determines if anOpenemsAppInstance
is allowed to be updated.- Parameters:
allInstances
- allOpenemsAppInstance
parent
- the parentOpenemsAppInstance
app2Update
- theOpenemsAppInstance
to updated- Returns:
- true if the instance is allowed to be updated else false
-