public static final class Finder.ByNameFinder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
<T extends Element> |
find(java.util.Collection<? extends Element> roots,
java.lang.Class[] type,
java.lang.String name)
Find element by name.
|
<T extends Element> |
find(java.util.Collection<? extends Element> roots,
java.lang.Class[] type,
java.lang.String name,
boolean includeRoot)
Find element by name.
|
<T extends Element> |
find(java.util.Collection<? extends Element> roots,
java.lang.Class type,
java.lang.String name)
Find element by name.
|
<T extends Element> |
find(java.util.Collection<? extends Element> roots,
java.lang.Class type,
java.lang.String name,
boolean includeRoot)
Find element by name.
|
<T extends Element> |
find(Element root,
java.lang.Class[] type,
java.lang.String name)
Find element by name.
|
<T extends Element> |
find(Element root,
java.lang.Class[] type,
java.lang.String name,
boolean includeRoot)
Find element by name.
|
<T extends Element> |
find(Element root,
java.lang.Class type,
java.lang.String name)
Find element by name.
|
<T extends Element> |
find(Element root,
java.lang.Class type,
java.lang.String name,
boolean includeRoot)
Find element by name.
|
<T extends Element> |
findFirstInCollection(java.util.Collection<T> elements,
java.lang.String name)
Find first NameElement in a given collection with a given name
|
<T extends Element> |
findInCollection(java.util.Collection<T> elements,
java.lang.String name)
Find NameElements in a given collection with a given name
|
@CheckForNull public <T extends Element> T find(Element root, @CheckForNull java.lang.Class type, java.lang.String name)
root
- root elementtype
- strict class type of element. Nulls means any elementname
- Element name@CheckForNull public <T extends Element> T find(Element root, @CheckForNull java.lang.Class[] type, java.lang.String name)
root
- root elementtype
- strict class types of element. Nulls means any elementname
- Element name@CheckForNull public <T extends Element> T find(Element root, @CheckForNull java.lang.Class type, java.lang.String name, boolean includeRoot)
root
- root elementtype
- strict class type of element. Nulls means any elementname
- Element nameincludeRoot
- include root element into a search@CheckForNull public <T extends Element> T find(Element root, @CheckForNull java.lang.Class[] type, java.lang.String name, boolean includeRoot)
root
- root elementtype
- strict class types of element. Nulls means any elementname
- Element nameincludeRoot
- include root element into a search@CheckForNull public <T extends Element> T find(java.util.Collection<? extends Element> roots, @CheckForNull java.lang.Class[] type, java.lang.String name)
roots
- root elementstype
- strict class types of element. Nulls means any elementname
- Element name@CheckForNull public <T extends Element> T find(java.util.Collection<? extends Element> roots, @CheckForNull java.lang.Class type, java.lang.String name)
roots
- root elementstype
- strict class type of element. Nulls means any elementname
- Element name@CheckForNull public <T extends Element> T find(java.util.Collection<? extends Element> roots, @CheckForNull java.lang.Class type, java.lang.String name, boolean includeRoot)
roots
- root elementtype
- strict class type of element. Nulls means any elementname
- Element nameincludeRoot
- include root element into a search@CheckForNull public <T extends Element> T find(java.util.Collection<? extends Element> roots, @CheckForNull java.lang.Class[] type, java.lang.String name, boolean includeRoot)
roots
- root elementtype
- strict class types of element. Nulls means any elementname
- Element nameincludeRoot
- include root element into a searchpublic <T extends Element> java.util.Collection<T> findInCollection(java.util.Collection<T> elements, java.lang.String name)
elements
- elementsname
- element name@CheckForNull public <T extends Element> T findFirstInCollection(java.util.Collection<T> elements, java.lang.String name)
elements
- elementsname
- element name