Examples of NodeListIterator


Examples of com.caucho.xpath.pattern.NodeListIterator

    Object obj = getObject();

    if (obj instanceof Node)
      return new SingleNodeIterator(env, (Node) obj);
    else if (obj instanceof NodeList)
      return new NodeListIterator(env, (NodeList) obj);
    else if (obj instanceof ArrayList)
      return new NodeArrayListIterator(env, (ArrayList) obj);
    else
      return new SingleNodeIterator(env, null);
  }
View Full Code Here

Examples of com.caucho.xpath.pattern.NodeListIterator

    if (obj instanceof Node)
      return new SingleNodeIterator(env, (Node) obj);

    else if (obj instanceof NodeList)
      return new NodeListIterator(env, (NodeList) obj);

    else if (obj instanceof NodeIterator)
      return (NodeIterator) obj;

    else if (obj instanceof ArrayList)
View Full Code Here

Examples of com.caucho.xpath.pattern.NodeListIterator

    if (obj instanceof Node)
      return new SingleNodeIterator(env, (Node) obj);

    else if (obj instanceof NodeList)
      return new NodeListIterator(env, (NodeList) obj);

    else if (obj instanceof NodeIterator)
      return (NodeIterator) obj;

    else if (obj instanceof ArrayList)
View Full Code Here

Examples of com.caucho.xpath.pattern.NodeListIterator

    Object obj = getObject();

    if (obj instanceof Node)
      return new SingleNodeIterator(env, (Node) obj);
    else if (obj instanceof NodeList)
      return new NodeListIterator(env, (NodeList) obj);
    else if (obj instanceof ArrayList)
      return new NodeArrayListIterator(env, (ArrayList) obj);
    else
      return new SingleNodeIterator(env, null);
  }
View Full Code Here

Examples of net.sf.gluebooster.java.booster.essentials.objects.NodeListIterator

    HashSet<String> nameSet = new HashSet<String>();
    for (String name : names) {
      nameSet.add(name);
    }
    ArrayList<Node> result = new ArrayList<Node>();
    NodeListIterator iterator = new NodeListIterator(node);
    for (Node node1 : iterator) {
      if (hasName(ignoreNamespacePrefix, node1, nameSet))
        result.add(node1);
      else
        INSTANCE.getLog().trace("ignored node ", node1.getNodeName());
View Full Code Here

Examples of net.sf.gluebooster.java.booster.essentials.objects.NodeListIterator

      if (hasName(ignoreNamespacePrefix, node, names)) {
        result.add(node);
      }
    }

    NodeListIterator iterator = new NodeListIterator(node);
    while (iterator.hasNext()) {
      findNodes(ignoreNamespacePrefix, iterator.next(), names, true,
          result);
    }

  }
View Full Code Here

Examples of org.apache.commons.collections.iterators.NodeListIterator

     */
    public static NodeListIterator nodeListIterator(final NodeList nodeList) {
        if (nodeList == null) {
            throw new NullPointerException("NodeList must not be null");
        }
        return new NodeListIterator(nodeList);
    }
View Full Code Here

Examples of org.apache.commons.collections.iterators.NodeListIterator

     */
    public static NodeListIterator nodeListIterator(final Node node) {
        if (node == null) {
            throw new NullPointerException("Node must not be null");
        }
        return new NodeListIterator(node);
    }
View Full Code Here

Examples of org.apache.commons.collections.iterators.NodeListIterator

        }
        if (obj instanceof Map) {
            return ((Map<?, ?>) obj).values().iterator();
        }
        if (obj instanceof NodeList) {
            return new NodeListIterator((NodeList) obj);
        }
        if (obj instanceof Node) {
            return new NodeListIterator((Node) obj);
        }
        if (obj instanceof Dictionary) {
            return new EnumerationIterator<Object>(((Dictionary<?, ?>) obj).elements());
        } else if (obj.getClass().isArray()) {
            return new ArrayIterator<Object>(obj);
View Full Code Here

Examples of org.apache.commons.collections4.iterators.NodeListIterator

                return 0;
            }
        };

        if (createIteratorWithStandardConstr) {
            return new NodeListIterator(emptyNodeList);
        } else {
            final Node parentNode = createMock(Node.class);
            expect(parentNode.getChildNodes()).andStubReturn(emptyNodeList);
            replay(parentNode);

            return new NodeListIterator(parentNode);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.