Class ElementFinder


  • @OpenApiAll
    @Deprecated
    public class ElementFinder
    extends java.lang.Object
    Deprecated.
    use Finder
    This class is used for searching of some element in the model structure with given name.
    • Constructor Detail

      • ElementFinder

        public ElementFinder()
        Deprecated.
    • Method Detail

      • find

        @CheckForNull
        @Deprecated
        public static Element find​(Element root,
                                   java.lang.Class type,
                                   java.lang.String name)
        Deprecated.
        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.
        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)
        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)
        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)
        Find Element.
        Parameters:
        root - Root element.
        type - Type of element.
        name - Element name
        searchInChildren - 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)
        Find Element
        Parameters:
        root - Root element.
        type - Element type list.
        name - Element name
        searchInChildren - 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)
        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)
        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.
        Find Element.
        Parameters:
        children - children
        name - Element name.
        results - The matched element.
      • getChildren

        @Deprecated
        public static java.util.Collection getChildren​(Element parent,
                                                       java.lang.Class[] type,
                                                       boolean checkParent)
        Deprecated.
        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.