Enum Class UpdateMode

java.lang.Object
java.lang.Enum<UpdateMode>
com.nomagic.magicdraw.elementreferenceintext.UpdateMode
All Implemented Interfaces:
Serializable, Comparable<UpdateMode>, Constable

@OpenApiAll public enum UpdateMode extends Enum<UpdateMode>
The update mode is used to determine when/if an element reference should be updated and/or checked by validation
  • Enum Constant Details

    • AUTOMATIC_UPDATE

      public static final UpdateMode AUTOMATIC_UPDATE
      Text containing references shall be updated if referred element changes
    • AUTOMATIC_CHECK

      public static final UpdateMode AUTOMATIC_CHECK
      Text containing references shall be checked by validation automatically for consistency
    • MANUAL_CHECK

      public static final UpdateMode MANUAL_CHECK
      Text containing references shall be checked for consistency when validation is run manually
    • NO_UPDATE

      public static final UpdateMode NO_UPDATE
      Text containing references shall not be updated if referred element changes
  • Method Details

    • values

      public static UpdateMode[] 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 UpdateMode 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
    • getUpdateMode

      public static UpdateMode getUpdateMode(String name, UpdateMode defaultValue)