Provides lookup of elements by QName.

@param name the name or shortcut key for nodes of interest
@return the nodes of interest which match name
166311
public NodeList getAt(QName name) {
        NodeList answer = new NodeList();
        for (Object child : this) {
            if (child instanceof Node) {
                Node childNode = (Node) child;
                NodeList temp = childNode.getAt(name);
                answer.addAll(temp);
            }
        }
        return answer;
    }
280524
public AstNode node( String name ) {
        CheckArg.isNotNull(name, "name");
        AstNode node = new AstNode(name);
        node.setProperty(JCR_PRIMARY_TYPE, NT_UNSTRUCTURED);
        return node;
    }
998020
public Node find(String nodeName)
	{
		// Sanity check
		if (IS_EMPTY.test(nodeName))
		{
			throw new IllegalArgumentException("The node name should not be empty");
		}
		Node _result = null;
		while (hasMoreAvailableElement() && (null == _result))
		{
			int _position = getPosition();
			Node _current = getSource().item(_position);
			_position++;
			setPosition(_position);

			if (nodeName.equals(_current.getNodeName()))
			{
				_result = _current;
			}
		}
		return _result;
	}
800932
public Tree getNode(String name) {
    Tree tree = namesToNodes.get(name);
    return tree;
  }
875964
@SuppressWarnings("unchecked")
    public static List<Element> elements(Element element, QName name) {

        return element.elements(name);
    }
544381
public CallTreeNode getChild(String name) {
		return (children == null) ? null : children.get(name);
	}
580989
public XElement childElement(String name) {
        for (XElement e : children) {
            if (e.name.equals(name)) {
                return e;
            }
        }
        return null;
    }
13199
public String[] nameToUrls(final String name) throws IOException {

		NameValuePair[] args = {
				new NameValuePair(
						ResourceFileLocationDBServlet.OPERATION_ARGUMENT,
						ResourceFileLocationDBServlet.LOOKUP_OPERATION),
					
				new NameValuePair(
						ResourceFileLocationDBServlet.NAME_ARGUMENT,
						name)
		};
		String locations = doGetMethod(args);
		if(locations != null) {
			return locations.split("\n");
		}
		return null;
	}
1148263
public static Element getChild(final String name, final Element root) {
		@SuppressWarnings("unchecked")
		List<Element> allChildren = root.getChildren();
		for (Element child : allChildren) {
			if (child.getName().equals(name)) {
				return child;
			}
		}
		return null;
	}
106537
@Override
	public SortedSet<String> getDomainNames(String name) {
		if ( name.length() < 4)
			throw new IllegalArgumentException("Can't interpret IDs that are shorter than 4 residues!");

		String url = String.format("%srepresentativeDomains?cluster=%s&structureId=%s",
				base, cutoff, name);
		return requestRepresentativeDomains(url);
	}
255198
public static String getChildValue(Element element, String name) {
        return getValue(getChild(element, name));
    }
701817
public FieldValue lookup(FieldName name){
		Map<FieldName, FieldValue> values = getValues();

		FieldValue value = values.getOrDefault(name, EvaluationContext.UNDECLARED_VALUE);
		if(value != EvaluationContext.UNDECLARED_VALUE){
			return value;
		}

		throw new MissingValueException(name);
	}
133583
function lookup(name){
  utils.assertType(name, 'string', 'name');
  var node = this.lookup(name.val);
  if (!node) return nodes.null;
  return this.visit(node);
}
503576
function getNodesByNameHelper(childArray, name) {
  let nodes = [].concat(childArray.filter(element => element.name === name));
  let otherNodes = [];
  childArray.forEach(node => {
    if (hasChildren(node)) {
      otherNodes = otherNodes.concat(getNodesByNameHelper(node.children, name));
    }
  });
  return nodes.concat(otherNodes);
}
1256266
public static List<Node> qnodes(String name) {
        final List<Node> nodes;

        final CommandLine cmdLine = new CommandLine(COMMAND_QNODES);
        cmdLine.addArgument(PARAMETER_XML);
        if (StringUtils.isNotBlank(name)) {
            cmdLine.addArgument(name);
        }

        final OutputStream out = new ByteArrayOutputStream();
        final OutputStream err = new ByteArrayOutputStream();

        DefaultExecuteResultHandler resultHandler;
        try {
            resultHandler = execute(cmdLine, null, out, err);
            resultHandler.waitFor(DEFAULT_TIMEOUT);
        } catch (ExecuteException e) {
            throw new PBSException("Failed to execute qnodes command: " + e.getMessage(), e);
        } catch (IOException e) {
            throw new PBSException("Failed to execute qnodes command: " + e.getMessage(), e);
        } catch (InterruptedException e) {
            throw new PBSException("Failed to execute qnodes command: " + e.getMessage(), e);
        }

        final int exitValue = resultHandler.getExitValue();
        LOGGER.info("qnodes exit value: " + exitValue);

        try {
            nodes = NODE_XML_PARSER.parse(out.toString());
        } catch (ParseException pe) {
            throw new PBSException("Failed to parse node XML: " + pe.getMessage(), pe);
        }

        return nodes;
    }
536975
@NotNull
    public List<Integer> getIndexes(String name) {
        List<Integer> indexes = parametersMapping.get(name);
        if (indexes == null) {
            throw new IllegalArgumentException("Parameter not found: " + name);
        }
        return indexes;
    }
700205
def get_node(self, node_name):
        """"""
        for node in self.nodes:
            if node.__name__ == node_name:
                return node