protected Object getNextNode(final Iterator iter) { while (iter.hasNext()) { final Object next = iter.next(); if (next instanceof Attribute) { return next; } else { String attributeKey = Attributes.this.attributeName; if (Attributes.this.namespacePrefix != null && !"*".equals(Attributes.this.namespacePrefix) && Attributes.this.namespacePrefix.length() > 0) { attributeKey = new QName(Attributes.this.lookupNamespace(Attributes.this.namespacePrefix), Attributes.this.attributeName).toString(); } final String value = (String) ((Node) next).attributes().get(attributeKey); if (value != null) { return new Attribute(Attributes.this.name, value, new NodeChild((Node) next, Attributes.this.parent.parent, "", Attributes.this.namespaceTagHints), (Attributes.this.namespacePrefix == null || "*".equals(Attributes.this.namespacePrefix)) ? "" : Attributes.this.namespacePrefix, Attributes.this.namespaceTagHints); } } } return null; } };
public GPathResult findAll(final Closure closure) { return find(closure); }
public Iterator iterator() { return nodeIterator(); }
public Iterator nodeIterator() { return createIterator(this); }
public Iterator iterator() { return nodeIterator(); }
public GPathResult findAll(final Closure closure) { return find(closure); }
protected Object getNextNode(final Iterator iter) { while (iter.hasNext()) { final Object next = iter.next(); if (next instanceof Attribute) { return next; } else { final String value = (String) ((Node) next).attributes().get(Attributes.this.attributeName); if (value != null) { return new Attribute(Attributes.this.attributeName, value, new NodeChild((Node) next, Attributes.this.parent.parent, "", Attributes.this.namespaceTagHints), "", Attributes.this.namespaceTagHints); } } } return null; } };
public Iterator iterator() { return nodeIterator(); }
public GPathResult findAll(final Closure closure) { return find(closure); }
protected Object getNextNode(final Iterator iter) { while (iter.hasNext()) { final Object next = iter.next(); if (next instanceof Attribute) { return next; } else { final String value = (String) ((Node) next).attributes().get(Attributes.this.attributeName); if (value != null) { return new Attribute(Attributes.this.attributeName, value, new NodeChild((Node) next, Attributes.this.parent.parent, "", Attributes.this.namespaceTagHints), "", Attributes.this.namespaceTagHints); } } } return null; } };
public Iterator iterator() { return nodeIterator(); }
public GPathResult findAll(final Closure closure) { return find(closure); }
protected Object getNextNode(final Iterator iter) { while (iter.hasNext()) { final Object next = iter.next(); if (next instanceof Attribute) { return next; } else { final String value = (String) ((Node) next).attributes().get(Attributes.this.attributeName); if (value != null) { return new Attribute(Attributes.this.name, value, new NodeChild((Node) next, Attributes.this.parent.parent, "", Attributes.this.namespaceTagHints), "", Attributes.this.namespaceTagHints); } } } return null; } };
public Iterator iterator() { return nodeIterator(); }
public GPathResult findAll(final Closure closure) { return find(closure); }
protected Object getNextNode(final Iterator iter) { while (iter.hasNext()) { final Object next = iter.next(); if (next instanceof Attribute) { return next; } else { final String value = (String) ((Node) next).attributes().get(Attributes.this.attributeName); if (value != null) { return new Attribute(Attributes.this.name, value, new NodeChild((Node) next, Attributes.this.parent.parent, "", Attributes.this.namespaceTagHints), "", Attributes.this.namespaceTagHints); } } } return null; } };
public Iterator iterator() { return nodeIterator(); }
public GPathResult findAll(final Closure closure) { return find(closure); }
protected Object getNextNode(final Iterator iter) { while (iter.hasNext()) { final Object next = iter.next(); if (next instanceof Attribute) { return next; } else { String attributeKey = Attributes.this.attributeName; if (Attributes.this.namespacePrefix != null && !"*".equals(Attributes.this.namespacePrefix) && Attributes.this.namespacePrefix.length() > 0) { attributeKey = new QName(Attributes.this.lookupNamespace(Attributes.this.namespacePrefix), Attributes.this.attributeName).toString(); } final String value = (String) ((Node) next).attributes().get(attributeKey); if (value != null) { return new Attribute(Attributes.this.name, value, new NodeChild((Node) next, Attributes.this.parent.parent, "", Attributes.this.namespaceTagHints), (Attributes.this.namespacePrefix == null || "*".equals(Attributes.this.namespacePrefix)) ? "" : Attributes.this.namespacePrefix, Attributes.this.namespaceTagHints); } } } return null; } };