Interface IResolutionScope

All Known Implementing Classes:
Compound, ContainableModelElementList, Project, ProjectInterface

public interface IResolutionScope
Provides access to containable model elements.
Author:
Holger Eichelberger
  • Method Details

    • getName

      String getName()
      Returns the (unqualified) name of the scope.
      Returns:
      the unqualified name of the scope
    • getParent

      IModelElement getParent()
      Returns the parent model element.
      Returns:
      the parent model element (may be null)
    • getElement

      ContainableModelElement getElement(int index)
      Returns a contained model element specified by index.
      Parameters:
      index - a 0-based index specifying the operation to be returned
      Returns:
      the contained element
      Throws:
      IndexOutOfBoundsException - if index<0 || index>=getElementCount()
    • getElement

      ContainableModelElement getElement(String name)
      Returns a contained model element specified by its name.
      Parameters:
      name - the qualified or unqualified name to search for
      Returns:
      the related element or null if no such element is known
    • getElementCount

      int getElementCount()
      Returns the number of contained elements.
      Returns:
      the number of contained elements
    • getImportsCount

      int getImportsCount()
      Returns the number of imports.
      Returns:
      the number of imports
    • getImport

      ProjectImport getImport(int index)
      Returns the project import specified by index.
      Parameters:
      index - a 0-based index specifying the import to be returned
      Returns:
      the project import
      Throws:
      IndexOutOfBoundsException - if index<0 || index>=getImportsCount()
    • hasInterfaces

      boolean hasInterfaces()
      Returns whether this scope has interfaces.
      Returns:
      true if it has interfaces, false else
    • isInterface

      boolean isInterface()
      Returns whether this scope is an interfaces.
      Returns:
      true if it is an interface, false else