Filter text nodes.

@return concatenated String of text treeData values.
175975
private String expandString() {
        final FastStringBuffer fsb = new FastStringBuffer(FastStringBuffer.SMALL);
        try {
            final INodeReadTrx rtx = createRtxAndMove();
            final FilterAxis axis = new FilterAxis(new DescendantAxis(rtx), rtx, new TextFilter(rtx));

            while (axis.hasNext()) {
                if (rtx.getNode().getKind() == TEXT) {
                    fsb.append(rtx.getValueOfCurrentNode());
                }
                axis.next();
            }
            rtx.close();
        } catch (final TTException exc) {
            LOGGER.error(exc.toString());
        }
        return fsb.condense().toString();
    }
621314
protected List<NodeData> getDirectChildNodesData(NodeData parent, List<QPathEntryFilter> itemDataFilters)
      throws RepositoryException, IllegalStateException
   {
      checkIfOpened();
      if (itemDataFilters.isEmpty())
      {
         return new ArrayList<NodeData>();
      }

      List<NodeData> children = new ArrayList<NodeData>();
      for (Iterator<QPathEntryFilter> it = itemDataFilters.iterator(); it.hasNext(); )
      {
         QPathEntryFilter filter = it.next();
         if (filter.isExactName())
         {
            NodeData data = (NodeData)getItemData(parent, filter.getQPathEntry(), ItemType.NODE);
            if (data != null)
            {
               children.add(data);
            }
            it.remove();
         }
      }
      if (!itemDataFilters.isEmpty())
      {
         children.addAll(getChildNodesDataInternal(parent, itemDataFilters));
      }
      return children;
   }
461607
protected DefaultMutableTreeNode getDataAsTree() {
        try {
            return (DefaultMutableTreeNode) MethodUtils.invokeMethod(view, "getDataAsTree", null);
        } catch (Exception e) {
            return null;
        }
    }
663009
function(propNode) {
        var content = null;
        if (propNode.childNodes && propNode.childNodes.length > 0) {
            var subNodes = [];
            // filter out text nodes
            for (var j = 0; j < propNode.childNodes.length; j++) {
                var node = propNode.childNodes[j];
                if (node.nodeType === 1) {
                    subNodes.push(node);
                }
            }
            if (subNodes.length) {
                content = subNodes;
            }
        }

        return content || propNode.textContent || propNode.text || '';
    }
197047
@Override
    public List<String> getAllDescription() {
        final List<String> result = new ArrayList<String>();
        final List<Node> nodes = this.getRootNode().get("description");
        for (final Node node : nodes) {
            result.add(node.getText());
        }
        return result;
    }
494835
public static List<String> texts(Collection<WebElement> elements) {
    return elements.stream().map(ElementsCollection::getText).collect(toList());
  }
62421
def filter_tree(tree):
    """"""
    to_remove = []
    for elem in tree.findall('urldata'):
        valid = elem.find('valid')
        if valid is not None and valid.text == '0' and \
           valid.attrib.get('result', '').startswith('401'):
            to_remove.append(elem)
    root = tree.getroot()
    for elem in to_remove:
        root.remove(elem)
1178786
public FilterMappingType<T> portletName(String ... values)
   {
      if (values != null)
      {
         for(String name: values)
         {
            childNode.createChild("portlet-name").text(name);
         }
      }
      return this;
   }
569484
public void cleanNameValueTree(BaseMessageFilter filter)
    {
        NameValue[] rgNodes = this.getNameValueArray(filter);
        for (int i = rgNodes.length - 1; i > 0; i--)
        {       // From the last node to the one after the root node.
            NameValue node = rgNodes[i];
            if (!node.isEmpty())
                return;     // Okay, don't need to check any other nodes up the tree.
            // It is empty, remove it from the parent node and free it.
            NameValue nodeParent = rgNodes[i - 1];
            if (!nodeParent.removeNameValueNode(node))
                System.out.println("Error: tree node not removed");
            node.free();
        }
    }
259464
def getText(node, recursive=False):
    """"""
    L = [u'']
    for n in node.childNodes:
        if n.nodeType in (node.TEXT_NODE, node.CDATA_SECTION_NODE):
            L.append(n.data)
        else:
            if not recursive:
                return None
        L.append(getText(n))
    return u''.join(L)
828594
def _getText(nodelist):
    '''
    
    '''
    rc = []
    for node in nodelist:
        if node.nodeType == node.TEXT_NODE:
            rc.append(node.data)
    return ''.join(rc)
1158453
public function filterLanguage()
    {
        $this->lexer->moveNext();

        $node = $this->filterNode();

        // Check for end of string
        if ($this->lexer->lookahead !== null) {
            $this->syntaxError('end of string');
        }

        return $node;
    }
659970
static public String getTextValue(Node node) {
        if( node.getChildNodes().getLength() == 0 ) {
            return null;
        }
        return node.getFirstChild().getNodeValue();
    }
1101514
@Override
    // TODO Accept final values
    // TODO put explicit IllegalArgumentException in throws clause (just to be clear)
    public FilterMutableType description(final String... values) throws IllegalArgumentException {
        // TODO Added precondition checks per the docs
        for (final String name : values) {
            if (name == null || name.length() == 0) {
                throw new IllegalArgumentException("no value for description may be null or blank");
            }
            this.getRootNode().createChild("description").text(name);
        }
        return this;
    }
1099062
function getTextNodes(el) {
  el = el || document.body

  var doc = el.ownerDocument || document
    , walker = doc.createTreeWalker(el, NodeFilter.SHOW_TEXT, null, false)
    , textNodes = []
    , node

  while (node = walker.nextNode()) {
    textNodes.push(node)
  }
  return textNodes
}
445442
public List<V> getChildValues() {

        List<V> result = Lists.newArrayList();
        for (CmsPathTree<P, V> child : m_children.values()) {
            if (child.m_value != null) {
                result.add(child.m_value);
            }
        }
        return result;
    }
750378
public void clearTmpData() {
		for (Enumeration<?> e = breadthFirstEnumeration(); e.hasMoreElements(); ) {
			((LblTree) e.nextElement()).setTmpData(null);
		}
	}