Package com.nomagic.magicdraw.uml
Class ElementFinder
- java.lang.Object
-
- com.nomagic.magicdraw.uml.ElementFinder
-
@OpenApiAll @Deprecated public class ElementFinder extends java.lang.Object
Deprecated.useFinder
This class is used for searching of some element in the model structure with given name.
-
-
Constructor Summary
Constructors Constructor Description ElementFinder()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Element
find(Element root, java.lang.Class[] type, java.lang.String name)
Deprecated.useFinder.byName()
static Element
find(Element root, java.lang.Class[] type, java.lang.String name, boolean searchInChildren)
Deprecated.static Element
find(Element root, java.lang.Class[] type, java.lang.String name, boolean searchInChildren, boolean checkRoot)
Deprecated.static void
find(Element root, java.lang.Class[] type, java.lang.String name, java.util.Collection results, boolean searchInChildren)
Deprecated.static Element
find(Element root, java.lang.Class type, java.lang.String name)
Deprecated.useFinder.byName()
static Element
find(Element root, java.lang.Class type, java.lang.String name, boolean searchInChildren)
Deprecated.static Element
find(Element root, java.lang.Class type, java.lang.String name, boolean searchInChildren, boolean checkRoot)
Deprecated.static void
find(Element root, java.lang.Class type, java.lang.String name, java.util.Collection results, boolean searchInChildren)
Deprecated.static void
find(java.util.Collection children, java.lang.String name, java.util.Collection results)
Deprecated.useFinder.byName()
static java.util.Collection
getChildren(Element parent, java.lang.Class[] type, boolean checkParent)
Deprecated.useFinder.byType()
static java.util.Collection
getChildren(Element parent, java.lang.Class[] type, boolean recursively, boolean checkParent)
Deprecated.
-
-
-
Method Detail
-
find
@CheckForNull @Deprecated public static Element find(Element root, java.lang.Class type, java.lang.String name)
Deprecated.useFinder.byName()
Find element.- Parameters:
root
- Root element.type
- Type of element.name
- Element name.- Returns:
- Element.
-
find
@CheckForNull @Deprecated public static Element find(Element root, java.lang.Class[] type, java.lang.String name)
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, java.lang.Class type, java.lang.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, java.lang.Class[] type, java.lang.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, java.lang.Class type, java.lang.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, java.lang.Class[] type, java.lang.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, java.lang.Class type, java.lang.String name, java.util.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, java.lang.Class[] type, java.lang.String name, java.util.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 public static void find(java.util.Collection children, java.lang.String name, java.util.Collection results)
Deprecated.useFinder.byName()
Find Element.- Parameters:
children
- childrenname
- Element name.results
- The matched element.
-
getChildren
@Deprecated public static java.util.Collection getChildren(Element parent, java.lang.Class[] type, boolean checkParent)
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 java.util.Collection getChildren(Element parent, java.lang.Class[] type, boolean recursively, boolean checkParent)
Deprecated.
-
-