Class 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 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