Package org.eclipse.epsilon.eunit
Class ModelBindings
- java.lang.Object
-
- org.eclipse.epsilon.eunit.ModelBindings
-
public class ModelBindings extends Object
Data model class for the EUnit$with
and$onlywith
EOL annotations.- Author:
- Antonio García-Domínguez
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModelBindings.ExclusiveMode
Model binding exclusivity mode enumeration.
-
Constructor Summary
Constructors Constructor Description ModelBindings(Map<String,String> mapping, ModelBindings.ExclusiveMode mode)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelBindings.ExclusiveMode
getExclusiveMode()
Returns the model binding exclusivity mode of this binding.Map<String,String>
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.String
toString()
-
-
-
Constructor Detail
-
ModelBindings
public ModelBindings(Map<String,String> mapping, ModelBindings.ExclusiveMode mode) throws EolRuntimeException
Creates 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 Detail
-
getExclusiveMode
public ModelBindings.ExclusiveMode getExclusiveMode()
Returns the model binding exclusivity mode of this binding.
-
getMappings
public Map<String,String> 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:
Collections.unmodifiableMap(Map)
-
-