Enum Class CreationMode

java.lang.Object
java.lang.Enum<CreationMode>
ch.nolix.baseapi.programcontrol.processproperty.CreationMode
All Implemented Interfaces:
Serializable, Comparable<CreationMode>, Constable

public enum CreationMode extends Enum<CreationMode>
A CreationMode defines the behavior when a target, that should be created, exist already.
Author:
Silvan Wyss
  • Enum Constant Details

    • THROW_EXCEPTION_WHEN_TARGET_DOES_NOT_EXIST_ALREADY

      public static final CreationMode THROW_EXCEPTION_WHEN_TARGET_DOES_NOT_EXIST_ALREADY
    • CREATE_WHEN_TARGET_DOES_NOT_EXIST_ALREADY

      public static final CreationMode CREATE_WHEN_TARGET_DOES_NOT_EXIST_ALREADY
  • Method Details

    • values

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