Package com.nomagic.magicdraw.uml
Class ElementFinder
java.lang.Object
com.nomagic.magicdraw.uml.ElementFinder
Deprecated.
This class is used for searching of some element in the model structure with given name.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Element
Deprecated.useFinder.byName()
static Element
Deprecated.static Element
Deprecated.static void
find
(Element root, Class[] type, String name, Collection results, boolean searchInChildren) Deprecated.static Element
Deprecated.useFinder.byName()
static Element
Deprecated.static Element
Deprecated.static void
find
(Element root, Class type, String name, Collection results, boolean searchInChildren) Deprecated.static void
find
(Collection children, String name, Collection results) Deprecated.useFinder.byName()
static Collection
getChildren
(Element parent, Class[] type, boolean checkParent) Deprecated.useFinder.byType()
static Collection
getChildren
(Element parent, Class[] type, boolean recursively, boolean checkParent) Deprecated.
-
Constructor Details
-
ElementFinder
public ElementFinder()Deprecated.
-
-
Method Details
-
find
Deprecated.useFinder.byName()
Find element.- Parameters:
root
- Root element.type
- Type of element.name
- Element name.- Returns:
- Element.
-
find
Deprecated.useFinder.byName()
Find element.- Parameters:
root
- Root element.type
- Elements type list.name
- Element name.- Returns:
- Element.
-
find
@CheckForNull @Deprecated public static Element find(Element root, Class type, String name, boolean searchInChildren) Deprecated.Find element.- Parameters:
root
- Root element.type
- Type of element.name
- Element name.searchInChildren
- Is search in children?- Returns:
- Element.
-
find
@CheckForNull @Deprecated public static Element find(Element root, Class[] type, String name, boolean searchInChildren) Deprecated.Find element.- Parameters:
root
- Root element.type
- Element type list.name
- Element name.searchInChildren
- Is search in children?- Returns:
- Element.
-
find
@CheckForNull @Deprecated public static Element find(Element root, Class type, String name, boolean searchInChildren, boolean checkRoot) Deprecated.Find Element.- Parameters:
root
- Root element.type
- Type of element.name
- Element namesearchInChildren
- Is search in children?checkRoot
- Check with root element.- Returns:
- Element.
-
find
@CheckForNull @Deprecated public static Element find(Element root, Class[] type, String name, boolean searchInChildren, boolean checkRoot) Deprecated.Find Element- Parameters:
root
- Root element.type
- Element type list.name
- Element namesearchInChildren
- Is search in children?checkRoot
- Check with root element.- Returns:
- Element.
-
find
@Deprecated public static void find(Element root, Class type, String name, Collection results, boolean searchInChildren) Deprecated.Find Element.- Parameters:
root
- Root Element.type
- Type of element.name
- Element name.results
- The matched element.searchInChildren
- Is search in children?
-
find
@Deprecated public static void find(Element root, Class[] type, String name, Collection results, boolean searchInChildren) Deprecated.Find Element.- Parameters:
root
- Root Element.type
- Element type list.name
- Element name.results
- The matched element.searchInChildren
- Is search in children?
-
find
Deprecated.useFinder.byName()
Find Element.- Parameters:
children
- childrenname
- Element name.results
- The matched element.
-
getChildren
Deprecated.useFinder.byType()
Use this method if you don`t want to search recursively. It checks if parent has owned elements if yes checks if elements are specified type if yes adds them. If needs checks parent and adds it to list.- Parameters:
parent
- Root Element.type
- Element type list.checkParent
- is need to check parent?- Returns:
- Collection of elements.
-
getChildren
@Deprecated public static Collection getChildren(Element parent, Class[] type, boolean recursively, boolean checkParent) Deprecated.
-
Finder