Enum Class Modification

java.lang.Object
java.lang.Enum<Modification>
de.espirit.firstspirit.access.editor.value.Modification
All Implemented Interfaces:
Serializable, Comparable<Modification>, Constable

public enum Modification extends Enum<Modification>
This enum provides fields indicating a modification type. Each modification type is related to specific color.
Since:
4.0.19
  • Enum Constant Details

    • NONE

      public static final Modification NONE
      Indicates no modifications.
      Since:
      4.0.19
    • INSERTED

      public static final Modification INSERTED
      Indicates a modification based on an insertion of an element.
      Since:
      4.0.19
    • DELETED

      public static final Modification DELETED
      Indicates a modification based on a deletion of an element.
      Since:
      4.0.19
    • CHANGED

      public static final Modification CHANGED
      Indicates a modifcation based on a change of an element.
      Since:
      4.0.19
  • Method Details

    • values

      public static Modification[] 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 Modification 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
    • getColor

      public Color getColor()
      Returns the color related to the modification.
      Since:
      4.0.19