Package pl.edu.icm.unity.types.basic
Enum 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>
- Enclosing class:
- AttributeStatement
public static enum AttributeStatement.ConflictResolution extends Enum<AttributeStatement.ConflictResolution>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description merge
In case of conflict, the attribute values resulting from this statement will be added to the values of the existing attribute.overwrite
In case of conflict result of this statement will overwrite the existing attribute.skip
In case of conflict this statement will be skipped.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AttributeStatement.ConflictResolution
valueOf(String name)
Returns the enum constant of this type with the specified name.static AttributeStatement.ConflictResolution[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static AttributeStatement.ConflictResolution[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AttributeStatement.ConflictResolution c : AttributeStatement.ConflictResolution.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AttributeStatement.ConflictResolution valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-