Class Finder.ByScopeFinder

java.lang.Object
com.nomagic.magicdraw.uml.Finder.ByScopeFinder
Enclosing class:
Finder

public static final class Finder.ByScopeFinder extends Object
Search for all elements in the given root element(s) and all(direct and indirect) children of root element(s)
  • Method Details

    • iterator

      public <T extends Element> com.nomagic.ci.persistence.local.query.CloseableIterator<T> iterator(Element root)
      Create iterator for iterating content from a given root including it.
      Parameters:
      root - root elements
      Returns:
      elements iterator
    • iterator

      public <T extends Element> com.nomagic.ci.persistence.local.query.CloseableIterator<T> iterator(Project project)
      Create iterator for iterating content of given project including root models of project.
      Parameters:
      project - project
      Returns:
      elements iterator
    • iterator

      public <T extends Element> com.nomagic.ci.persistence.local.query.CloseableIterator<T> iterator(Collection<? extends Element> roots)
      Create iterator for iterating content from a given roots including them.
      Parameters:
      roots - root elements
      Returns:
      elements iterator
    • iteratorIncludingPresentationElements

      public <T extends BaseElement> com.nomagic.ci.persistence.local.query.CloseableIterator<T> iteratorIncludingPresentationElements(Element root)
      Create iterator for iterating content from a given root including PresentationElements and root
      Parameters:
      root - root elements
      Returns:
      elements iterator
    • iteratorIncludingPresentationElements

      public <T extends BaseElement> com.nomagic.ci.persistence.local.query.CloseableIterator<T> iteratorIncludingPresentationElements(Project project)
      Create iterator for iterating content of given Project including PresentationElements and project root models
      Returns:
      elements iterator
    • iteratorIncludingPresentationElements

      public <T extends BaseElement> com.nomagic.ci.persistence.local.query.CloseableIterator<T> iteratorIncludingPresentationElements(Collection<? extends Element> roots)
      Create iterator for iterating content from a given root including PresentationElements and roots
      Parameters:
      roots - root elements
      Returns:
      elements iterator
    • iterator

      public <T extends Element> com.nomagic.ci.persistence.local.query.CloseableIterator<T> iterator(Element root, boolean includeRoot)
      Create iterator for iterating content from a given root.
      Parameters:
      root - root element
      includeRoot - include roots
      Returns:
      elements iterator
    • iterator

      public <T extends Element> com.nomagic.ci.persistence.local.query.CloseableIterator<T> iterator(Project project, boolean includeRoot)
      Create iterator for iterating content from a given root.
      Parameters:
      project - project
      includeRoot - include roots
      Returns:
      elements iterator
    • iterator

      public <T extends Element> com.nomagic.ci.persistence.local.query.CloseableIterator<T> iterator(Collection<? extends Element> roots, boolean includeRoot)
      Create iterator for iterating content from a given root.
      Parameters:
      roots - root elements
      includeRoot - include roots
      Returns:
      elements iterator
    • iteratorIncludingPresentationElements

      public <T extends BaseElement> com.nomagic.ci.persistence.local.query.CloseableIterator<T> iteratorIncludingPresentationElements(Element root, boolean includeRoot)
      Create iterator for iterating content from a given root including PresentationElements
      Parameters:
      root - root elements
      includeRoot - include roots
      Returns:
      elements iterator
    • iteratorIncludingPresentationElements

      public <T extends BaseElement> com.nomagic.ci.persistence.local.query.CloseableIterator<T> iteratorIncludingPresentationElements(Project project, boolean includeRoot)
      Create iterator for iterating content of whole Project including PresentationElements
      Parameters:
      project - project
      includeRoot - include roots
      Returns:
      elements iterator
    • iteratorIncludingPresentationElements

      public <T extends BaseElement> com.nomagic.ci.persistence.local.query.CloseableIterator<T> iteratorIncludingPresentationElements(Collection<? extends Element> roots, boolean includeRoot)
      Create iterator for iterating content from a given root including PresentationElements
      Parameters:
      roots - root elements
      includeRoot - include roots
      Returns:
      elements iterator
    • find

      public <T extends Element> Collection<T> find(Project project, boolean includeRoot)
      Collects all elements from a given project.
      Parameters:
      project - project
      includeRoot - include project root models
      Returns:
      elements
    • find

      public <T extends Element> Collection<T> find(Element root, boolean includeRoot)
      Collects all elements from a given root
      Parameters:
      root - root element
      includeRoot - include root into result
      Returns:
      elements
    • find

      public <T extends Element> Collection<T> find(Collection<? extends Element> roots, boolean includeRoot)
      Collects all elements from a given root
      Parameters:
      roots - root elements
      includeRoot - includes root into result
      Returns:
      elements
    • find

      public <T extends Element> Collection<T> find(Project project)
      Collects all elements from a given project. Project root models are included.
      Parameters:
      project - project
      Returns:
      elements
    • find

      public <T extends Element> Collection<T> find(Element root)
      Collects all elements from a given root.Root element is included
      Parameters:
      root - root element
      Returns:
      elements
    • find

      public <T extends Element> Collection<T> find(Collection<? extends Element> roots)
      Collects all elements from a given root. Root elements are included
      Parameters:
      roots - root elements
      Returns:
      elements
    • findIncludingPresentationElements

      public <T extends BaseElement> Collection<T> findIncludingPresentationElements(Project project)
      Collects all elements from a given project including PresentationElements. Project root models are included.
      Parameters:
      project - project
      Returns:
      elements
    • findIncludingPresentationElements

      public <T extends BaseElement> Collection<T> findIncludingPresentationElements(Element root)
      Collects all elements from a given root including PresentationElements. Root element is included.
      Parameters:
      root - root element
      Returns:
      elements
    • findIncludingPresentationElements

      public <T extends BaseElement> Collection<T> findIncludingPresentationElements(Collection<? extends Element> roots)
      Collects all elements from a given root including PresentationElements. Root elements are included.
      Parameters:
      roots - roots element
      Returns:
      elements
    • findIncludingPresentationElements

      public <T extends BaseElement> Collection<T> findIncludingPresentationElements(Project project, boolean includeRoot)
      Collects all elements from a given project including PresentationElements
      Parameters:
      project - project
      includeRoot - include project root models
      Returns:
      elements
    • findIncludingPresentationElements

      public <T extends BaseElement> Collection<T> findIncludingPresentationElements(Element root, boolean includeRoot)
      Collects all elements from a given root including PresentationElements
      Parameters:
      root - root element
      includeRoot - include project root models
      Returns:
      elements
    • findIncludingPresentationElements

      public <T extends BaseElement> Collection<T> findIncludingPresentationElements(Collection<? extends Element> roots, boolean includeRoot)
      Collects all elements from a given root including PresentationElements
      Parameters:
      roots - roots element
      includeRoot - include project root models
      Returns:
      elements