/******************************************************************************* * Copyright (c) 2006, 2012 Obeo. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Obeo - initial API and implementation *******************************************************************************/ package org.eclipse.emf.compare.diff.metamodel; import java.util.Arrays; import java.util.Collections; import java.util.List; import org.eclipse.emf.common.util.Enumerator; /** * A representation of the literals of the enumeration 'Difference Kind', * and utility methods for working with them. * * These flags will be used to describe the kind of a DiffElement. * * @see org.eclipse.emf.compare.diff.metamodel.DiffPackage#getDifferenceKind() * @model * @generated */ public enum DifferenceKind implements Enumerator { /** * The 'Addition' literal object. * * @see #ADDITION_VALUE * @generated * @ordered */ ADDITION(0, "Addition", "Addition"), //$NON-NLS-1$ //$NON-NLS-2$ /** * The 'Deletion' literal object. * * @see #DELETION_VALUE * @generated * @ordered */ DELETION(1, "Deletion", "Deletion"), //$NON-NLS-1$ //$NON-NLS-2$ /** * The 'Change' literal object. * * @see #CHANGE_VALUE * @generated * @ordered */ CHANGE(2, "Change", "Change"), //$NON-NLS-1$ //$NON-NLS-2$ /** * The 'Move' literal object. * * @see #MOVE_VALUE * @generated * @ordered */ MOVE(3, "Move", "Move"); //$NON-NLS-1$ //$NON-NLS-2$ /** * The 'Addition' literal value. * *
* If the meaning of 'Addition' literal object isn't clear, there really should be * more of a description here... *
* * @see #ADDITION * @model name="Addition" * @generated * @ordered */ public static final int ADDITION_VALUE = 0; /** * The 'Deletion' literal value. * ** If the meaning of 'Deletion' literal object isn't clear, there really should be * more of a description here... *
* * @see #DELETION * @model name="Deletion" * @generated * @ordered */ public static final int DELETION_VALUE = 1; /** * The 'Change' literal value. * ** If the meaning of 'Change' literal object isn't clear, there really should be more * of a description here... *
* * @see #CHANGE * @model name="Change" * @generated * @ordered */ public static final int CHANGE_VALUE = 2; /** * The 'Move' literal value. * ** If the meaning of 'Move' literal object isn't clear, there really should be more * of a description here... *
* * @see #MOVE * @model name="Move" * @generated * @ordered */ public static final int MOVE_VALUE = 3; /** * An array of all the 'Difference Kind' enumerators. * * @generated */ private static final DifferenceKind[] VALUES_ARRAY = new DifferenceKind[] {ADDITION, DELETION, CHANGE, MOVE, }; /** * A public read-only list of all the 'Difference Kind' enumerators. * * @generated */ public static final List