Provides lookup of elements by non-namespaced name. @param name the name or shortcut key for nodes of interest @return the nodes of interest which match name
(String name)
| 158 | * @return the nodes of interest which match name |
| 159 | */ |
| 160 | public NodeList getAt(String name) { |
| 161 | NodeList answer = new NodeList(); |
| 162 | for (Object child : this) { |
| 163 | if (child instanceof Node childNode) { |
| 164 | Object temp = childNode.get(name); |
| 165 | if (temp instanceof Collection) { |
| 166 | answer.addAll((Collection) temp); |
| 167 | } else { |
| 168 | answer.add(temp); |
| 169 | } |
| 170 | } |
| 171 | } |
| 172 | return answer; |
| 173 | } |
| 174 | |
| 175 | /** |
| 176 | * Provides lookup of elements by QName. |
nothing calls this directly
no test coverage detected