Class AmbiguousDefinition


  • public class AmbiguousDefinition
    extends java.lang.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​(java.lang.String aQualifiedName, java.lang.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​(java.lang.Object anObject)  
      java.util.List<org.eclipse.emf.ecore.EObject> getDefinitions()  
      java.lang.String getKey()
      Calculates a key string by which this definition is identified.
      java.lang.String getQualifiedName()  
      java.lang.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​(java.lang.String aQualifiedName,
                                   java.lang.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 java.util.List<org.eclipse.emf.ecore.EObject> getDefinitions()
      • getType

        public java.lang.String getType()
      • getQualifiedName

        public java.lang.String getQualifiedName()
      • getKey

        public java.lang.String getKey()
        Calculates a key string by which this definition is identified.
        Returns:
        the key
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object anObject)
        Overrides:
        equals in class java.lang.Object