Package com.nomagic.magicdraw.uml
Class Finder.ByTypeRecursivelyFinder
java.lang.Object
com.nomagic.magicdraw.uml.Finder.ByTypeRecursivelyFinder
- Enclosing class:
 - Finder
 
Search for all elements by element type in the given root element(s) and all(direct and indirect) children of root element(s)
- 
Method Summary
Modifier and TypeMethodDescription<T extends Element>
Collection<T>Collect all elements of given specific type (not super class or interface) from the project.<T extends Element>
Collection<T>Collect all elements of given specific type (not super class or interface) from the project<T extends Element>
Collection<T>Collect all elements of given specific type (not super class or interface) from the root element.<T extends Element>
Collection<T>Collect all elements of given specific type (not super class or interface) from the root element.<T extends Element>
Collection<T>find(Element root, Class[] types, boolean includeRoot, boolean includeAdditionalContents, ProgressStatus monitor) Collect all elements of given specific type (not super class or interface) from the root element.<T extends Element>
Collection<T>find(Collection<? extends Element> roots, Class[] types, boolean includeRoots) Collect all elements of given specific type (not super class or interface) from the root element.<T extends Element>
Collection<T>find(Collection<? extends Element> roots, Class[] types, boolean includeRoots, boolean includeAdditionalContents, ProgressStatus monitor) Collect all elements of given specific type (not super class or interface) from the root element.<T extends Element>
com.nomagic.ci.persistence.local.query.CloseableIterator<T>Returns iterator which contains elements of given specific type (not super class or interface).<T extends Element>
com.nomagic.ci.persistence.local.query.CloseableIterator<T>Returns iterator which contains elements of given specific type (not super class or interface).<T extends Element>
com.nomagic.ci.persistence.local.query.CloseableIterator<T>Returns iterator which contains elements of given specific type (not super class or interface).<T extends Element>
com.nomagic.ci.persistence.local.query.CloseableIterator<T>Returns iterator which contains elements of given specific type (not super class or interface).<T extends Element>
com.nomagic.ci.persistence.local.query.CloseableIterator<T>iterator(Collection<? extends Element> roots, Class[] types) Returns iterator which contains elements of given specific type (not super class or interface).<T extends Element>
com.nomagic.ci.persistence.local.query.CloseableIterator<T>iterator(Collection<? extends Element> roots, Class[] types, boolean includeRoot) Returns iterator which contains elements of given specific type (not super class or interface). 
- 
Method Details
- 
iterator
public <T extends Element> com.nomagic.ci.persistence.local.query.CloseableIterator<T> iterator(Element root, @CheckForNull Class[] types) Returns iterator which contains elements of given specific type (not super class or interface). Search of elements is done from a given root element.- Parameters:
 root- root element.types- element type. Null means any element- Returns:
 - iterator
 
 - 
iterator
public <T extends Element> com.nomagic.ci.persistence.local.query.CloseableIterator<T> iterator(Element root, @CheckForNull Class[] types, boolean includeRoot) Returns iterator which contains elements of given specific type (not super class or interface). Search of elements is done from a given root element.- Parameters:
 root- root element.types- element type. Null means any elementincludeRoot- include root into result- Returns:
 - iterator
 
 - 
iterator
public <T extends Element> com.nomagic.ci.persistence.local.query.CloseableIterator<T> iterator(Collection<? extends Element> roots, @CheckForNull Class[] types) Returns iterator which contains elements of given specific type (not super class or interface). Search of elements is done from a given root element. Roots are included also.- Parameters:
 roots- root elements.types- element type. Null means any element- Returns:
 - iterator
 
 - 
iterator
public <T extends Element> com.nomagic.ci.persistence.local.query.CloseableIterator<T> iterator(Collection<? extends Element> roots, @CheckForNull Class[] types, boolean includeRoot) Returns iterator which contains elements of given specific type (not super class or interface). Search of elements is done from a given root element.- Parameters:
 roots- root elements.types- element type. Null means any elementincludeRoot- include root elements into result- Returns:
 - iterator
 
 - 
iterator
public <T extends Element> com.nomagic.ci.persistence.local.query.CloseableIterator<T> iterator(Project project, @CheckForNull Class[] types) Returns iterator which contains elements of given specific type (not super class or interface). Search of elements is done in whole project. Root models of project are included.- Parameters:
 project- projecttypes- element type. Null means any element- Returns:
 - iterator
 
 - 
iterator
public <T extends Element> com.nomagic.ci.persistence.local.query.CloseableIterator<T> iterator(Project project, @CheckForNull Class[] types, boolean includeRoot) Returns iterator which contains elements of given specific type (not super class or interface). Search of elements is done in whole project- Parameters:
 project- projecttypes- element type. Null means any elementincludeRoot- include project root models into result- Returns:
 - iterator
 
 - 
find
Collect all elements of given specific type (not super class or interface) from the root element. Roots are also included- Parameters:
 root- the root element for searchingtypes- an array of Element's class types (Class.class, Package.class, Property.class and etc)- Returns:
 - found elements
 
 - 
find
public <T extends Element> Collection<T> find(Element root, @CheckForNull Class[] types, boolean includeRoots) Collect all elements of given specific type (not super class or interface) from the root element.- Parameters:
 root- the root element for searchingtypes- an array of Element's class types (Class.class, Package.class, Property.class and etc)includeRoots- include root elements into search results- Returns:
 - found elements
 
 - 
find
Collect all elements of given specific type (not super class or interface) from the project. Roots are also included.- Parameters:
 project- projecttypes- an array of Element's class types (Class.class, Package.class, Property.class and etc)- Returns:
 - found elements
 
 - 
find
public <T extends Element> Collection<T> find(Project project, @CheckForNull Class[] types, boolean includeRoots) Collect all elements of given specific type (not super class or interface) from the project- Parameters:
 project- projecttypes- an array of Element's class types (Class.class, Package.class, Property.class and etc)includeRoots- include root models of project into search results- Returns:
 - found elements
 
 - 
find
public <T extends Element> Collection<T> find(Element root, @CheckForNull Class[] types, boolean includeRoot, boolean includeAdditionalContents, @CheckForNull ProgressStatus monitor) Collect all elements of given specific type (not super class or interface) from the root element.- Parameters:
 root- the root element for searchingtypes- an array of Element's class types (Class.class, Package.class, Property.class and etc)includeRoot- include root elements into search resultsincludeAdditionalContents- include additional content of Element defined in DSLmonitor- progress monitor- Returns:
 - found elements
 
 - 
find
public <T extends Element> Collection<T> find(Collection<? extends Element> roots, @CheckForNull Class[] types, boolean includeRoots) Collect all elements of given specific type (not super class or interface) from the root element.- Parameters:
 roots- the root element for searchingtypes- an array of Element's class types (Class.class, Package.class, Property.class and etc)includeRoots- include root elements into search results- Returns:
 - found elements
 
 - 
find
public <T extends Element> Collection<T> find(Collection<? extends Element> roots, @CheckForNull Class[] types, boolean includeRoots, boolean includeAdditionalContents, @CheckForNull ProgressStatus monitor) Collect all elements of given specific type (not super class or interface) from the root element.- Parameters:
 roots- the root element for searchingtypes- an array of Element's class types (Class.class, Package.class, Property.class and etc)includeRoots- include root elements into search resultsincludeAdditionalContents- include additional content of Element defined in DSLmonitor- progress monitor- Returns:
 - found elements
 
 
 -