Class ModelBindings


  • public class ModelBindings
    extends java.lang.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.
    • 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.
      java.util.Map<java.lang.String,​java.lang.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.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ModelBindings

        public ModelBindings​(java.util.Map<java.lang.String,​java.lang.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

      • getMappings

        public java.util.Map<java.lang.String,​java.lang.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)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object