Package de.gebit.integrity.runner

## Class AmbiguousDefinition

- java.lang.Object
- - de.gebit.integrity.runner.AmbiguousDefinition

-     public class AmbiguousDefinition
      extends Object

  Represents an ambiguous definition in a test model. This may refer to ambiguous suites, variables, etc. - these are differentiated by the type string.
  Author:
    Rene Schneider - initial API and implementation

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `AmbiguousDefinition​(String aQualifiedName, String aType, org.eclipse.emf.ecore.EObject aFirstDefinition)` | Creates a new instance.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `addDefinition​(org.eclipse.emf.ecore.EObject aDefinition)` | Adds another definition.
    `boolean` | `equals​(Object anObject)` |
    `List<org.eclipse.emf.ecore.EObject>` | `getDefinitions()` |
    `String` | `getKey()` | Calculates a key string by which this definition is identified.
    `String` | `getQualifiedName()` |
    `String` | `getType()` |
    `int` | `hashCode()` |

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AmbiguousDefinition

          public AmbiguousDefinition​(String aQualifiedName,
                                     String aType,
                                     org.eclipse.emf.ecore.EObject aFirstDefinition)

      Creates a new instance.
      Parameters:
        `aQualifiedName` - the qualified name
        `aType` - the type of the definition
        `aFirstDefinition` - the first definition to add

  - ### Method Detail

    - #### addDefinition

          public void addDefinition​(org.eclipse.emf.ecore.EObject aDefinition)

      Adds another definition.
      Parameters:
        `aDefinition` - the definition to add

    - #### getDefinitions

          public List<org.eclipse.emf.ecore.EObject> getDefinitions()

    - #### getType

          public String getType()

    - #### getQualifiedName

          public String getQualifiedName()

    - #### getKey

          public String getKey()

      Calculates a key string by which this definition is identified.
      Returns:
        the key

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### equals

          public boolean equals​(Object anObject)

      Overrides:
        `equals` in class `Object`