Get the value nodes in this name/value chain.
@param header The message header that contains the name/value tree.
@oaram bAddIfNotFound Add the value if it is not found.
@return The node at the end of the name/value tree.
435567
public NameValue[] getNameValueArray(BaseMessageHeader header)
    {
        Object[][] mxString = header.getNameValueTree();
        NameValue[] rgNodes = new NameValue[10];
        rgNodes[0] = this;
        int i = 0;
        if (mxString != null)
        {
            for (; i < mxString.length; i++)
            {
                rgNodes[i + 1] = rgNodes[i].getNameValueNode((String)mxString[i][MessageConstants.NAME], mxString[i][MessageConstants.VALUE], false);
                if (rgNodes[i + 1] == null)
                    break;
            }
        }
        NameValue[] rgNodesNew = new NameValue[i + 1];
        for (int j = 0; j <= i; j++)
        {
            rgNodesNew[j] = rgNodes[j];
        }
        return rgNodesNew;
    }
29736
public String getAttributeValue(String name) {
        Attr att = node.getAttributeNode(name);
        if (att == null) return null;
        return att.getNodeValue();
    }
44473
public com.google.protobuf.ByteString
      getNodeNameBytes() {
    java.lang.Object ref = nodeName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      nodeName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }
864370
public Content getHeader(String header) {
        HtmlTree bodyTree = getBody(true, getWindowTitle(header));
        HtmlTree htmlTree = (configuration.allowTag(HtmlTag.HEADER))
                ? HtmlTree.HEADER()
                : bodyTree;
        addTop(htmlTree);
        addNavLinks(true, htmlTree);
        if (configuration.allowTag(HtmlTag.HEADER)) {
            bodyTree.addContent(htmlTree);
        }
        Content h1Content = new StringContent(header);
        Content heading = HtmlTree.HEADING(HtmlConstants.TITLE_HEADING, true,
                HtmlStyle.title, h1Content);
        Content div = HtmlTree.DIV(HtmlStyle.header, heading);
        if (configuration.allowTag(HtmlTag.MAIN)) {
            mainTree.addContent(div);
        } else {
            bodyTree.addContent(div);
        }
        return bodyTree;
    }
1021440
public String getHeader(String name, String defaultValue) {
        return header.getValue(name, defaultValue);
    }
1115977
@Nullable
  private static RawTextNode getAttributeValue(
      HtmlTagNode tagNode, String name, ErrorReporter errorReporter) {
    HtmlAttributeNode attribute = tagNode.getDirectAttributeNamed(name);
    if (attribute == null) {
      return null;
    }
    RawTextNode value = getAttributeValue(attribute, name, errorReporter);
    // Remove it, we don't actually want to render it
    tagNode.removeChild(attribute);
    return value;
  }
1075617
public String getHeader(String name)
    {
        HeaderField f = getHeaderField(name);
        if (f != null)
        {
            return f.getStringValue();
        }
        else
        {
            return null;
        }
    }
1279020
protected String getSecondaryKey(DependencyTreeNode focusNode,
                                     String contextHeader) {
        return (contextHeader == null) ? focusNode.word() : contextHeader;
    }
601808
@CanIgnoreReturnValue
  private Node<K, V> addNode(@Nullable K key, @Nullable V value, @Nullable Node<K, V> nextSibling) {
    Node<K, V> node = new Node<K, V>(key, value);
    if (head == null) { // empty list
      head = tail = node;
      keyToKeyList.put(key, new KeyList<K, V>(node));
      modCount++;
    } else if (nextSibling == null) { // non-empty list, add to tail
      tail.next = node;
      node.previous = tail;
      tail = node;
      KeyList<K, V> keyList = keyToKeyList.get(key);
      if (keyList == null) {
        keyToKeyList.put(key, keyList = new KeyList<K, V>(node));
        modCount++;
      } else {
        keyList.count++;
        Node<K, V> keyTail = keyList.tail;
        keyTail.nextSibling = node;
        node.previousSibling = keyTail;
        keyList.tail = node;
      }
    } else { // non-empty list, insert before nextSibling
      KeyList<K, V> keyList = keyToKeyList.get(key);
      keyList.count++;
      node.previous = nextSibling.previous;
      node.previousSibling = nextSibling.previousSibling;
      node.next = nextSibling;
      node.nextSibling = nextSibling;
      if (nextSibling.previousSibling == null) { // nextSibling was key head
        keyToKeyList.get(key).head = node;
      } else {
        nextSibling.previousSibling.nextSibling = node;
      }
      if (nextSibling.previous == null) { // nextSibling was head
        head = node;
      } else {
        nextSibling.previous.next = node;
      }
      nextSibling.previous = node;
      nextSibling.previousSibling = node;
    }
    size++;
    return node;
  }
406082
private List<String> getHeaderValues(String name) {
        List<String> values = headers.get(name);
        if (values == null) {
            values = new ArrayList<String>();
            headers.put(name, values);
        }
        return values;
    }
1216350
public static <T> T getValue(JsonNode node, String dPath, Class<T> clazz) {
        return DPathUtils.getValue(node, dPath, clazz);
    }
903792
@Override
    public Optional<SipHeader> getHeader(final Buffer headerName) throws SipPacketParseException {
        return this.msg.getHeader(headerName);
    }
718216
@Override
  public Object getHeader(BindingProvider soapClient, String headerName) {
    for (SOAPElement addedHeader : getContextHandlerFromClient(soapClient).getAddedHeaders()) {
      if (addedHeader.getNodeName().equals(headerName)) {
        return addedHeader;
      }
    }
    return null;
  }
169581
public List<String> getValuesList(HttpHeader header) {
        final List<String> list = new ArrayList<>();
        for (HttpField f : this)
            if (f.getHeader() == header)
                list.add(f.getValue());
        return list;
    }
556446
public String getHeaderValue( String name )
    {
        for ( Header header : headers ) {
            if ( header.getName().equals( name ) ) {
                return header.getValue();
            }
        }
        return null;
    }
659962
@Override
    public Object getValueAt(Object nodeObj, int column) {
        if (debugger == null) { return null; }
        VariableNode node = (VariableNode)nodeObj;
        switch (column) {
        case 0: // Name
            return node.toString();
        case 1: // Value
            String result;
            try {
                result = debugger.objectToString(getValue(node));
            } catch (RuntimeException exc) {
                result = exc.getMessage();
            }
            StringBuilder buf = new StringBuilder();
            int len = result.length();
            for (int i = 0; i < len; i++) {
                char ch = result.charAt(i);
                if (Character.isISOControl(ch)) {
                    ch = ' ';
                }
                buf.append(ch);
            }
            return buf.toString();
        }
        return null;
    }
93140
@Override
    public List<String> getTableHeaders() throws WidgetException {
        List<String> list = new ArrayList<String>();

        try {

            NodeList nodes = getNodeListUsingJavaXPath(getTableXPath(generateXPathLocator())
                    + "//thead[not(contains(@style,'display: none') or contains(@style,'visibility: hidden'))]//th");
            if (nodes.getLength() == 0) {
                nodes = getNodeListUsingJavaXPath(getTableXPath(generateXPathLocator()) + "//th");
            }

            if(nodes.getLength() == 0) {
                throw new WidgetException("Table headers do not exist", generateXPathLocator());
            }

            for (int i = 0; i < nodes.getLength(); i++) {
                Node n = nodes.item(i);
                if (n != null && n.getNodeName() != null && n.getNodeName() != null) {
                    NamedNodeMap thNodeAttributes = n.getAttributes();
                    Node thStyleAttr = thNodeAttributes.getNamedItem("style");
                    if (thStyleAttr != null) {
                        String style = thStyleAttr.getTextContent();
                        style = style.toLowerCase();
                        if (!(style.contains("display: none") || style
                                .contains("visibility: hidden"))) {
                            list.add(n.getTextContent().trim());
                        }
                    } else {
                        list.add(n.getTextContent().trim());
                    }

                }
            }
        } catch (Exception e) {
            throw new WidgetException("Error fetching table headers", generateXPathLocator(), e);
        }

        return list;
    }