Package com.nomagic.magicdraw.uml
Class Finder.ByNameAllFinder
java.lang.Object
com.nomagic.magicdraw.uml.Finder.ByNameAllFinder
- Enclosing class:
- Finder
Search for all elements by simple name among the given root element(s) and direct children of root element(s)
-
Method Summary
Modifier and TypeMethodDescription<T extends Element>
Collection<T>Find elements by name.<T extends Element>
Collection<T>Find elements by name.<T extends Element>
Collection<T>Find elements by name.<T extends Element>
Collection<T>Find elements by name.<T extends Element>
Collection<T>find
(Collection<? extends Element> roots, Class[] type, String name) Find elements by name.<T extends Element>
Collection<T>find
(Collection<? extends Element> roots, Class[] type, String name, boolean includeRoot) Find elements by name.<T extends Element>
Collection<T>find
(Collection<? extends Element> roots, Class type, String name) Find elements by name.<T extends Element>
Collection<T>find
(Collection<? extends Element> roots, Class type, String name, boolean includeRoot) Find elements by name.
-
Method Details
-
find
Find elements by name. Include root(s) into a search.- Parameters:
root
- root elementtype
- strict class type of element. Nulls means any elementname
- 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 elementtype
- strict class types of element. Nulls means any elementname
- 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 elementtype
- strict class type of element. Nulls means any elementname
- 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 elementtype
- strict class types of element. Nulls means any elementname
- Element name- 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 elementtype
- strict class type of element. Nulls means any elementname
- Element name- 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 elementtype
- strict class types of element. Nulls means any elementname
- Element name- 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 elementtype
- strict class type of element. Nulls means any elementname
- Element name- 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 elementtype
- strict class types of element. Nulls means any elementname
- Element name- Returns:
- found Elements
-