Package org.eclipse.epsilon.eunit
Class ModelBindings
java.lang.Object
org.eclipse.epsilon.eunit.ModelBindings
Data model class for the EUnit
$with
and $onlywith
EOL annotations.- Author:
- Antonio García-Domínguez
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Model binding exclusivity mode enumeration. -
Constructor Summary
ConstructorsConstructorDescriptionModelBindings
(Map<String, String> mapping, ModelBindings.ExclusiveMode mode) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the model binding exclusivity mode of this binding.Returns an unmodifiable map where the keys are the names of the models to be renamed, and their respective values are the names they should be renamed to.toString()
-
Constructor Details
-
ModelBindings
public ModelBindings(Map<String, String> mapping, ModelBindings.ExclusiveMode mode) throws EolRuntimeExceptionCreates a new instance.- Parameters:
mapping
- Map from the source models to their new names after the rename.mode
- Model binding exclusivity mode enumeration. Indicates whether models not mentioned in the map should be included, or whether they should be excluded.- Throws:
EolRuntimeException
-
-
Method Details
-
getExclusiveMode
Returns the model binding exclusivity mode of this binding. -
getMappings
Returns an unmodifiable map where the keys are the names of the models to be renamed, and their respective values are the names they should be renamed to.- See Also:
-
toString
-