Package com.nomagic.magicdraw.uml
Class Finder.ByScopeFinder
java.lang.Object
com.nomagic.magicdraw.uml.Finder.ByScopeFinder
- Enclosing class:
- Finder
Search for all elements 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>Collects all elements from a given project.<T extends Element>
Collection<T>Collects all elements from a given project.<T extends Element>
Collection<T>Collects all elements from a given root.Root element is included<T extends Element>
Collection<T>Collects all elements from a given root<T extends Element>
Collection<T>find
(Collection<? extends Element> roots) Collects all elements from a given root.<T extends Element>
Collection<T>find
(Collection<? extends Element> roots, boolean includeRoot) Collects all elements from a given root<T extends BaseElement>
Collection<T>findIncludingPresentationElements
(Project project) Collects all elements from a given project including PresentationElements.<T extends BaseElement>
Collection<T>findIncludingPresentationElements
(Project project, boolean includeRoot) Collects all elements from a given project including PresentationElements<T extends BaseElement>
Collection<T>Collects all elements from a given root including PresentationElements.<T extends BaseElement>
Collection<T>findIncludingPresentationElements
(Element root, boolean includeRoot) Collects all elements from a given root including PresentationElements<T extends BaseElement>
Collection<T>findIncludingPresentationElements
(Collection<? extends Element> roots) Collects all elements from a given root including PresentationElements.<T extends BaseElement>
Collection<T>findIncludingPresentationElements
(Collection<? extends Element> roots, boolean includeRoot) Collects all elements from a given root including PresentationElements<T extends Element>
com.nomagic.ci.persistence.local.query.CloseableIterator<T>Create iterator for iterating content of given project including root models of project.<T extends Element>
com.nomagic.ci.persistence.local.query.CloseableIterator<T>Create iterator for iterating content from a given root.<T extends Element>
com.nomagic.ci.persistence.local.query.CloseableIterator<T>Create iterator for iterating content from a given root including it.<T extends Element>
com.nomagic.ci.persistence.local.query.CloseableIterator<T>Create iterator for iterating content from a given root.<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.<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.<T extends BaseElement>
com.nomagic.ci.persistence.local.query.CloseableIterator<T>Create iterator for iterating content of given Project including PresentationElements and project root models<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<T extends BaseElement>
com.nomagic.ci.persistence.local.query.CloseableIterator<T>Create iterator for iterating content from a given root including PresentationElements and root<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<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<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
-
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 elementincludeRoot
- 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
- projectincludeRoot
- 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 elementsincludeRoot
- 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 elementsincludeRoot
- 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
- projectincludeRoot
- 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 elementsincludeRoot
- include roots- Returns:
- elements iterator
-
find
Collects all elements from a given project.- Parameters:
project
- projectincludeRoot
- include project root models- Returns:
- elements
-
find
Collects all elements from a given root- Parameters:
root
- root elementincludeRoot
- 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 elementsincludeRoot
- includes root into result- Returns:
- elements
-
find
Collects all elements from a given project. Project root models are included.- Parameters:
project
- project- Returns:
- elements
-
find
Collects all elements from a given root.Root element is included- Parameters:
root
- root element- Returns:
- elements
-
find
Collects all elements from a given root. Root elements are included- Parameters:
roots
- root elements- Returns:
- elements
-
findIncludingPresentationElements
Collects all elements from a given project including PresentationElements. Project root models are included.- Parameters:
project
- project- Returns:
- elements
-
findIncludingPresentationElements
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
- projectincludeRoot
- 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 elementincludeRoot
- 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 elementincludeRoot
- include project root models- Returns:
- elements
-