Implement the bridge to call Tatoo from java. Very slow at the moment.
[tatoo.git] / src / bindings / java / fxslt / memory / MutableNodeList.java
diff --git a/src/bindings/java/fxslt/memory/MutableNodeList.java b/src/bindings/java/fxslt/memory/MutableNodeList.java
new file mode 100644 (file)
index 0000000..c0137fd
--- /dev/null
@@ -0,0 +1,25 @@
+package fxslt.memory;
+
+import javax.xml.parsers.DocumentBuilderFactory;
+
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import java.util.Vector;
+
+
+public class MutableNodeList implements NodeList {
+
+  private Vector<Node> data;
+
+  public MutableNodeList() {
+
+    data = new Vector<Node>();
+  }
+
+  public void add(Node n) { data.add (n); }
+  public int  getLength() { return data.size(); }
+  public Node item(int i) {
+    return data.get(i);
+  }
+
+}