2002-03-11 Duncan Mak <duncan@ximian.com>
[mono.git] / mcs / class / System.XML / System.Xml / XmlNamedNodeMap.cs
1 //
2 // System.Xml.XmlNamedNodeMap
3 //
4 // Author:
5 //   Jason Diamond (jason@injektilo.org)
6 //
7 // (C) 2002 Jason Diamond  http://injektilo.org/
8 //
9
10 using System;
11 using System.Collections;
12
13 namespace System.Xml
14 {
15         public class XmlNamedNodeMap : IEnumerable
16         {
17                 private XmlNode parent;
18                 private ArrayList nodeList;
19
20                 internal XmlNamedNodeMap (XmlNode parent)
21                 {
22                         this.parent = parent;
23                         nodeList = new ArrayList ();
24                 }
25
26                 [MonoTODO]
27                 public virtual int Count {
28                         get {
29                                 throw new NotImplementedException ();
30                         }
31                 }
32
33                 [MonoTODO]
34                 public virtual IEnumerator GetEnumerator () 
35                 {
36                         throw new NotImplementedException ();
37                 }
38
39                 [MonoTODO]
40                 public virtual XmlNode GetNamedItem (string name)
41                 {
42                         foreach (XmlNode node in nodeList) {
43                                 if (node.Name == name)
44                                         return node;
45                         }
46
47                         return null;
48                 }
49
50                 [MonoTODO]
51                 public virtual XmlNode GetNamedItem (string localName, string namespaceURI)
52                 {
53                         throw new NotImplementedException ();
54                 }
55
56                 [MonoTODO]
57                 public virtual XmlNode Item (int index)
58                 {
59                         throw new NotImplementedException ();
60                 }
61
62                 [MonoTODO]
63                 public virtual XmlNode RemoveNamedItem (string name)
64                 {
65                         throw new NotImplementedException ();
66                 }
67
68                 [MonoTODO]
69                 public virtual XmlNode RemoveNamedItem (string localName, string namespaceURI)
70                 {
71                         throw new NotImplementedException ();
72                 }
73
74                 [MonoTODO]
75                 public virtual XmlNode SetNamedItem (XmlNode node)
76                 {
77                         nodeList.Add (node);
78                         return node;
79                 }
80         }
81 }