Class Finder.ByNameAllFinder

  • Enclosing class:
    Finder

    public static final class Finder.ByNameAllFinder
    extends java.lang.Object
    Search for all elements by simple name among the given root element(s) and direct children of root element(s)
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ByNameAllFinder()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T extends Element>
      java.util.Collection<T>
      find​(Element root, java.lang.Class[] type, java.lang.String name)
      Find elements by name.
      <T extends Element>
      java.util.Collection<T>
      find​(Element root, java.lang.Class[] type, java.lang.String name, boolean includeRoot)
      Find elements by name.
      <T extends Element>
      java.util.Collection<T>
      find​(Element root, java.lang.Class type, java.lang.String name)
      Find elements by name.
      <T extends Element>
      java.util.Collection<T>
      find​(Element root, java.lang.Class type, java.lang.String name, boolean includeRoot)
      Find elements by name.
      <T extends Element>
      java.util.Collection<T>
      find​(java.util.Collection<? extends Element> roots, java.lang.Class[] type, java.lang.String name)
      Find elements by name.
      <T extends Element>
      java.util.Collection<T>
      find​(java.util.Collection<? extends Element> roots, java.lang.Class[] type, java.lang.String name, boolean includeRoot)
      Find elements by name.
      <T extends Element>
      java.util.Collection<T>
      find​(java.util.Collection<? extends Element> roots, java.lang.Class type, java.lang.String name)
      Find elements by name.
      <T extends Element>
      java.util.Collection<T>
      find​(java.util.Collection<? extends Element> roots, java.lang.Class type, java.lang.String name, boolean includeRoot)
      Find elements by name.
      private static <T extends Element>
      java.util.Collection<T>
      internalFind​(java.util.Collection<? extends Element> roots, java.lang.Class[] types, java.lang.String name, boolean includeRoots)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ByNameAllFinder

        private ByNameAllFinder()
    • Method Detail

      • find

        public <T extends Element> java.util.Collection<T> find​(Element root,
                                                                @CheckForNull
                                                                java.lang.Class type,
                                                                java.lang.String name)
        Find elements by name. Include root(s) into a search.
        Parameters:
        root - root element
        type - strict class type of element. Nulls means any element
        name - Element name
        Returns:
        found Elements
      • find

        public <T extends Element> java.util.Collection<T> find​(Element root,
                                                                @CheckForNull
                                                                java.lang.Class[] type,
                                                                java.lang.String name)
        Find elements by name. Include root(s) into a search.
        Parameters:
        root - root element
        type - strict class types of element. Nulls means any element
        name - Element name
        Returns:
        found Elements
      • find

        public <T extends Element> java.util.Collection<T> find​(java.util.Collection<? extends Element> roots,
                                                                @CheckForNull
                                                                java.lang.Class type,
                                                                java.lang.String name)
        Find elements by name. Include root(s) into a search.
        Parameters:
        roots - root element
        type - strict class type of element. Nulls means any element
        name - Element name
        Returns:
        found Elements
      • find

        public <T extends Element> java.util.Collection<T> find​(java.util.Collection<? extends Element> roots,
                                                                @CheckForNull
                                                                java.lang.Class[] type,
                                                                java.lang.String name)
        Find elements by name. Include root(s) into a search.
        Parameters:
        roots - root element
        type - strict class types of element. Nulls means any element
        name - Element name
        Returns:
        found Elements
      • find

        public <T extends Element> java.util.Collection<T> find​(Element root,
                                                                @CheckForNull
                                                                java.lang.Class type,
                                                                java.lang.String name,
                                                                boolean includeRoot)
        Find elements by name.
        Parameters:
        root - root element
        type - strict class type of element. Nulls means any element
        name - Element name
        Returns:
        found Elements
      • find

        public <T extends Element> java.util.Collection<T> find​(Element root,
                                                                @CheckForNull
                                                                java.lang.Class[] type,
                                                                java.lang.String name,
                                                                boolean includeRoot)
        Find elements by name.
        Parameters:
        root - root element
        type - strict class types of element. Nulls means any element
        name - Element name
        Returns:
        found Elements
      • find

        public <T extends Element> java.util.Collection<T> find​(java.util.Collection<? extends Element> roots,
                                                                @CheckForNull
                                                                java.lang.Class type,
                                                                java.lang.String name,
                                                                boolean includeRoot)
        Find elements by name.
        Parameters:
        roots - root element
        type - strict class type of element. Nulls means any element
        name - Element name
        Returns:
        found Elements
      • find

        public <T extends Element> java.util.Collection<T> find​(java.util.Collection<? extends Element> roots,
                                                                @CheckForNull
                                                                java.lang.Class[] type,
                                                                java.lang.String name,
                                                                boolean includeRoot)
        Find elements by name.
        Parameters:
        roots - root element
        type - strict class types of element. Nulls means any element
        name - Element name
        Returns:
        found Elements
      • internalFind

        private static <T extends Element> java.util.Collection<T> internalFind​(java.util.Collection<? extends Element> roots,
                                                                                @CheckForNull
                                                                                java.lang.Class[] types,
                                                                                java.lang.String name,
                                                                                boolean includeRoots)