Enum Class AttributeStatement.ConflictResolution

java.lang.Object
java.lang.Enum<AttributeStatement.ConflictResolution>
pl.edu.icm.unity.types.basic.AttributeStatement.ConflictResolution
All Implemented Interfaces:
Serializable, Comparable<AttributeStatement.ConflictResolution>, Constable
Enclosing class:
AttributeStatement

public static enum AttributeStatement.ConflictResolution extends Enum<AttributeStatement.ConflictResolution>
  • Enum Constant Details

    • skip

      public static final AttributeStatement.ConflictResolution skip
      In case of conflict this statement will be skipped.
    • overwrite

      public static final AttributeStatement.ConflictResolution overwrite
      In case of conflict result of this statement will overwrite the existing attribute.
    • merge

      public static final AttributeStatement.ConflictResolution merge
      In case of conflict, the attribute values resulting from this statement will be added to the values of the existing attribute. Only new values are added. Values are added only if the attribute type has no upper cardinality bound. If so then the attribute statement is skipped.
  • Method Details

    • values

      public static AttributeStatement.ConflictResolution[] 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 AttributeStatement.ConflictResolution 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