home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2001 December / dppcpro1201.iso / Extras / maple / Viewer / WebEQ / MMLViewerInstall.cab / MMLViewerApplet.cab / webeq3 / dom / MathMLDOMNodeList.class (.txt) < prev    next >
Encoding:
Java Class File  |  2001-05-24  |  767 b   |  23 lines

  1. package webeq3.dom;
  2.  
  3. import java.util.Vector;
  4. import org.w3c.dom.Node;
  5.  
  6. public class MathMLDOMNodeList implements MathMLNodeList {
  7.    Vector nodelist = new Vector();
  8.    public int length;
  9.  
  10.    public int getLength() {
  11.       return this.nodelist.size();
  12.    }
  13.  
  14.    public Node item(int var1) {
  15.       return (Node)this.nodelist.elementAt(var1);
  16.    }
  17.  
  18.    public void addNode(Node var1) {
  19.       this.nodelist.addElement(var1);
  20.       this.length = this.nodelist.size();
  21.    }
  22. }
  23.