Class Finder.ByNameAllRecursivelyFinder

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

public static final class Finder.ByNameAllRecursivelyFinder extends Object
Search for all elements by simple name among the given root element(s) and all(direct and indirect) children of root element(s)
  • Method Details

    • find

      public <T extends Element> Collection<T> find(Element root, @CheckForNull Class type, String name)
      Find elements by name. Include root(s) into a search.
      Parameters:
      root - root element
      type - strict class type of element. Nulls means any element
      name - Element name
      Returns:
      found Elements
    • find

      public <T extends Element> Collection<T> find(Element root, @CheckForNull Class[] type, String name)
      Find elements by name. Include root(s) into a search.
      Parameters:
      root - root element
      type - strict class types of element. Nulls means any element
      name - Element name
      Returns:
      found Elements
    • find

      public <T extends Element> Collection<T> find(Collection<? extends Element> roots, @CheckForNull Class type, String name)
      Find elements by name. Include root(s) into a search.
      Parameters:
      roots - root element
      type - strict class type of element. Nulls means any element
      name - Element name
      Returns:
      found Elements
    • find

      public <T extends Element> Collection<T> find(Collection<? extends Element> roots, @CheckForNull Class[] type, String name)
      Find elements by name. Include root(s) into a search.
      Parameters:
      roots - root element
      type - strict class types of element. Nulls means any element
      name - Element name
      Returns:
      found Elements
    • find

      public <T extends Element> Collection<T> find(Project project, @CheckForNull Class type, String name)
      Find element by name. Include all project models into a search.
      Parameters:
      project - project (Project.getModels() will be used as roots)
      type - strict class type of element. Nulls means any element
      name - Element name
      Returns:
      found Element or null
    • find

      public <T extends Element> Collection<T> find(Project project, @CheckForNull Class[] type, String name)
      Find element by name. Include all project models into a search.
      Parameters:
      project - project (Project.getModels() will be used as roots)
      type - strict class types of element. Nulls means any element
      name - Element name
      Returns:
      found Element or null
    • find

      public <T extends Element> Collection<T> find(Element root, @CheckForNull Class type, String name, boolean includeRoot)
      Find elements by name.
      Parameters:
      root - root element
      type - strict class type of element. Nulls means any element
      name - Element name
      includeRoot - include root element(s) into a search
      Returns:
      found Elements
    • find

      public <T extends Element> Collection<T> find(Element root, @CheckForNull Class[] type, String name, boolean includeRoot)
      Find elements by name.
      Parameters:
      root - root element
      type - strict class types of element. Nulls means any element
      name - Element name
      includeRoot - include root element(s) into a search
      Returns:
      found Elements
    • find

      public <T extends Element> Collection<T> find(Collection<? extends Element> roots, @CheckForNull Class type, String name, boolean includeRoot)
      Find elements by name.
      Parameters:
      roots - root element
      type - strict class type of element. Nulls means any element
      name - Element name
      includeRoot - include root element(s) into a search
      Returns:
      found Elements
    • find

      public <T extends Element> Collection<T> find(Collection<? extends Element> roots, @CheckForNull Class[] type, String name, boolean includeRoot)
      Find elements by name.
      Parameters:
      roots - root element
      type - strict class types of element. Nulls means any element
      name - Element name
      includeRoot - include root element(s) into a search
      Returns:
      found Elements
    • find

      public <T extends Element> Collection<T> find(Project project, @CheckForNull Class type, String name, boolean includeRoot)
      Find element by name.
      Parameters:
      project - project (Project.getModels() will be used as roots)
      type - strict class type of element. Nulls means any element
      name - Element name
      includeRoot - include root element(s) into a search
      Returns:
      found Element or null
    • find

      public <T extends Element> Collection<T> find(Project project, @CheckForNull Class[] type, String name, boolean includeRoot)
      Find element by name.
      Parameters:
      project - project (Project.getModels() will be used as roots)
      type - strict class types of element. Nulls means any element
      name - Element name
      includeRoot - include root element(s) into a search
      Returns:
      found Element or null