Implement the bridge to call Tatoo from java. Very slow at the moment.
[tatoo.git] / src / bindings / java / fxslt / memory / MutableNodeList.java
1 package fxslt.memory;
2
3 import javax.xml.parsers.DocumentBuilderFactory;
4
5 import org.w3c.dom.Node;
6 import org.w3c.dom.NodeList;
7 import java.util.Vector;
8
9
10 public class MutableNodeList implements NodeList {
11
12   private Vector<Node> data;
13
14   public MutableNodeList() {
15
16     data = new Vector<Node>();
17   }
18
19   public void add(Node n) { data.add (n); }
20   public int  getLength() { return data.size(); }
21   public Node item(int i) {
22     return data.get(i);
23   }
24
25 }