Returns the DN (Distinguished Name) for a Node.

@param node the given Node.
@return the DN of that Node.
761187
public String getDNForNode(final LdapNode node) {
        if (node instanceof LdapGroup) {
            return String.format(LdapKeys.GROUP_CN_FORMAT, groupIdentifyer, node.get(groupIdentifyer), baseGroupDn);
        } else {
            return String.format(LdapKeys.USER_UID_FORMAT, userIdentifyer, node.get(userIdentifyer), basePeopleDn);
        }
    }
56638
public static ProbabilisticNode getNode(ProbabilisticNetwork bn,
            String nodeName) throws ShanksException {
        ProbabilisticNode node = (ProbabilisticNode) bn.getNode(nodeName);
        if (node == null) {
            throw new UnknownNodeException(bn, nodeName);
        }
        return node;
    }
176000
public static String getNamespace(JsonNode node) {
		JsonNode nodeNs = obj(node).get(ID_NAMESPACE);
		return (nodeNs != null) ? nodeNs.asText() : null;
	}
865996
public Node<T> getNext(Node<T> node) {
    	if (node.right != null) {
    		node = node.right;
    		while (node.left != null) node = node.left;
    		return node;
    	}
    	// nothing at right, it may be the parent node if the node is at the left
    	if (node == last) return null;
    	return getNext(root, node.value);
    }
1218760
public String getReadable( Node node ) {
        if (node == null) return "";
        try {
            return node.getPath();
        } catch (RepositoryException err) {
            return node.toString();
        }
    }
294086
public function getValueForNode(Node $node)
    {
        if ($node->isNamed()) {
            return $node->getUri();
        } elseif ($node->isLiteral()) {
            return $node->getValue();
        } elseif ($node->isBlank()) {
            return $node->getBlankId();
        } else {
            return null;
        }
    }
951615
public static JsonNode getValue(JsonNode node, String dPath) {
        return DPathUtils.getValue(node, dPath);
    }
1300063
public static String getElementNodeValue(Node node) {
        StringWriter sw = new StringWriter(2000);
        if (node.getNodeType() == Node.ELEMENT_NODE) {
            NodeList all = node.getChildNodes();
            for (int i = 0; i < all.getLength(); i++) {
                if (all.item(i).getNodeType() == Node.TEXT_NODE ||
                    all.item(i).getNodeType() == Node.CDATA_SECTION_NODE) {
                    // TODO: Check if we exceed the limit for getNodeValue
                    sw.append(all.item(i).getNodeValue());
                }
            }
        }
        return sw.toString();
    }
156076
public Object getValue(VariableNode node) {
        try {
            return debugger.getObjectProperty(node.object, node.id);
        } catch (Exception exc) {
            return "undefined";
        }
    }
653879
public Node getNode(final String name) {
        if (name == null) {
            return null;
        }
        for (final Node node : nodeList) {
            if (name.equals(node.settings().get(NODE_NAME))) {
                return node;
            }
        }
        return null;
    }
1154397
private static String getNodeName(Node n) {
        String nodeName = n.getLocalName();
        if (nodeName == null || nodeName.length() == 0) {
            nodeName = n.getNodeName();
        }
        return nodeName;
    }
659970
static public String getTextValue(Node node) {
        if( node.getChildNodes().getLength() == 0 ) {
            return null;
        }
        return node.getFirstChild().getNodeValue();
    }
829110
private DatanodeDescriptor getDatanode(DatanodeID node) {
    if (node == null) {
      return null;
    }
    DatanodeDescriptor ds = null;
    try {
      ds = namesystem.getDatanode(node);
    } catch (Exception e) {
      // probably dead on unregistered datanode
      LOG.warn("Failover - caught exception when getting datanode", e);
      return null;
    }
    return ds;
  }
249878
public String getNodeNameX(int nodeHandle)
  {

    /** @todo: implement this org.apache.xml.dtm.DTMDefaultBase abstract method */
    error(XMLMessages.createXMLMessage(XMLErrorResources.ER_METHOD_NOT_SUPPORTED, null));//"Not yet supported!");

    return null;
  }
1340255
@Override
    public String get(String key) {
    	if("dn".equals(key)) {
    		return this.dn;
    	} else if (key != null
                && attributes != null
                && getKeys().contains(key)
                && attributes.get(key) != null) {
            return attributes.get(key).toString().replace(key + ":", "").trim();
        }
        return null;
    }
700205
def get_node(self, node_name):
        """"""
        for node in self.nodes:
            if node.__name__ == node_name:
                return node
800035
public static JsonNode getValue(JsonNode node, String dPath) {
        String[] paths = splitDpath(dPath);
        Object result = node;
        for (String path : paths) {
            result = extractValue(result, path);
        }
        if (result instanceof POJONode) {
            result = extractValue((POJONode) result);
        }
        return result != null
                ? result instanceof JsonNode ? ((JsonNode) result) : JacksonUtils.toJson(result)
                : null;
    }