Class MapBasedScope

  • All Implemented Interfaces:
    IScope

    public class MapBasedScope
    extends AbstractScope
    A scope implemented using a Map used for efficient lookup of ordinary named EObjectDescriptions. This implementation assumes, that the keys of the Map correspond to the keys of the contained EObjectDescription. Additionally it assumes, that those keys are equal to description.getName().toLowerCase(). When looking up elements using AbstractScope.getElements(QualifiedName) this implementation looks up the elements from the map, hence are much more efficient for many IEObjectDescriptions.