1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.commons.jxpath.ri.model.beans;
17
18 import org.apache.commons.jxpath.ri.QName;
19 import org.apache.commons.jxpath.ri.model.NodeIterator;
20 import org.apache.commons.jxpath.ri.model.NodePointer;
21
22 /***
23 * Combines attribute node iterators of all elements of a collection into one
24 * aggregate attribute node iterator.
25 *
26 * @author Dmitri Plotnikov
27 * @version $Revision: 1.3 $ $Date: 2004/02/29 14:17:41 $
28 */
29 public class CollectionAttributeNodeIterator extends CollectionNodeIterator {
30
31 private QName name;
32
33 public CollectionAttributeNodeIterator(
34 CollectionPointer pointer,
35 QName name)
36 {
37 super(pointer, false, null);
38 this.name = name;
39 }
40
41 protected NodeIterator getElementNodeIterator(NodePointer elementPointer) {
42 return elementPointer.attributeIterator(name);
43 }
44 }