Package de.gebit.integrity.runner
Class AmbiguousDefinition
- java.lang.Object
-
- de.gebit.integrity.runner.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()
-
-
-
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 nameaType
- the type of the definitionaFirstDefinition
- 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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object anObject)
- Overrides:
equals
in classjava.lang.Object
-
-