Enum CollisionMode
- java.lang.Object
-
- java.lang.Enum<CollisionMode>
-
- com.sodius.mdw.metamodel.sa.io.app.CollisionMode
-
- All Implemented Interfaces:
Serializable
,Comparable<CollisionMode>
public enum CollisionMode extends Enum<CollisionMode>
Determines how to handle conflicts when updating an encyclopedia.- Since:
- 2.2.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NO_OVERWRITE
Never overwrite an existing definition or diagram.REPLACE
Always replace existing diagram.REPOPULATE
If the definition exists, get all properties for it, delete it, recreate it, repopulate the properties.UPDATE
Update single fields when data supplied.UPDATE_OR_CLEAR
Update single fields - clear field if no data.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
Returns the underlying value used by System Architect APIs.static CollisionMode
valueOf(int value)
Returns the enum constant of this type with the specified name.static CollisionMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static CollisionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_OVERWRITE
public static final CollisionMode NO_OVERWRITE
Never overwrite an existing definition or diagram.
-
REPOPULATE
public static final CollisionMode REPOPULATE
If the definition exists, get all properties for it, delete it, recreate it, repopulate the properties.
-
UPDATE
public static final CollisionMode UPDATE
Update single fields when data supplied.
-
UPDATE_OR_CLEAR
public static final CollisionMode UPDATE_OR_CLEAR
Update single fields - clear field if no data.
-
REPLACE
public static final CollisionMode REPLACE
Always replace existing diagram.
-
-
Method Detail
-
values
public static CollisionMode[] 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 (CollisionMode c : CollisionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CollisionMode 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
-
valueOf
public static CollisionMode valueOf(int value)
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:
value
- 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
-
getValue
public int getValue()
Returns the underlying value used by System Architect APIs.- Returns:
- the underlying value used by System Architect APIs.
-
-