Package org.eclipse.emf.compare
Enum ConflictKind
java.lang.Object
java.lang.Enum<ConflictKind>
org.eclipse.emf.compare.ConflictKind
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ConflictKind>,java.lang.constant.Constable,Enumerator
public enum ConflictKind extends java.lang.Enum<ConflictKind> implements Enumerator
A representation of the literals of the enumeration 'Conflict Kind',
and utility methods for working with them.
Conflicts detected through EMF Compare can be of a number of different types.
- REAL are the conflicts that cannot be merged automatically,
- PSEUDO are the "conflicts" that represent the same change made on the two sides, which can thus be automatically merged.
- See Also:
ComparePackage.getConflictKind()- Generated:
-
Nested Class Summary
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Stringcopyrightstatic intPSEUDO_VALUEThe 'PSEUDO' literal value.static intREAL_VALUEThe 'REAL' literal value.static java.util.List<ConflictKind>VALUESA public read-only list of all the 'Conflict Kind' enumerators. -
Method Summary
Modifier and Type Method Description static ConflictKindget(int value)Returns the 'Conflict Kind' literal with the specified integer value.static ConflictKindget(java.lang.String literal)Returns the 'Conflict Kind' literal with the specified literal value.static ConflictKindgetByName(java.lang.String name)Returns the 'Conflict Kind' literal with the specified name.java.lang.StringgetLiteral()java.lang.StringgetName()intgetValue()java.lang.StringtoString()Returns the literal value of the enumerator, which is its string representation.static ConflictKindvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ConflictKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
REAL
The 'REAL' literal object.- See Also:
REAL_VALUE- Generated:
-
PSEUDO
The 'PSEUDO' literal object.- See Also:
PSEUDO_VALUE- Generated:
-
-
Field Details
-
copyright
public static final java.lang.String copyright- See Also:
- Constant Field Values
- Generated:
-
REAL_VALUE
public static final int REAL_VALUEThe 'REAL' literal value. conflicts that cannot be merged automatically as they represent incompatible differences on the two sides.- See Also:
REAL, Constant Field Values- Generated:
-
PSEUDO_VALUE
public static final int PSEUDO_VALUEThe 'PSEUDO' literal value. If the same change has been made on the two sides since the common ancestor, these changes will be marked as "pseudo-conflicting" changes : there are changes, but they can be merged automatically.- See Also:
PSEUDO, Constant Field Values- Generated:
-
VALUES
A public read-only list of all the 'Conflict Kind' enumerators.- Generated:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
get
Returns the 'Conflict Kind' literal with the specified literal value.- Generated:
-
getByName
Returns the 'Conflict Kind' literal with the specified name.- Generated:
-
get
Returns the 'Conflict Kind' literal with the specified integer value.- Generated:
-
getValue
public int getValue()- Specified by:
getValuein interfaceEnumerator- Generated:
-
getName
public java.lang.String getName()- Specified by:
getNamein interfaceEnumerator- Generated:
-
getLiteral
public java.lang.String getLiteral()- Specified by:
getLiteralin interfaceEnumerator- Generated:
-
toString
public java.lang.String toString()Returns the literal value of the enumerator, which is its string representation.- Overrides:
toStringin classjava.lang.Enum<ConflictKind>- Generated:
-