2002-05-18 Daniel Morgan <danmorg@sc.rr.com>
[mono.git] / mcs / class / System.Data / System.Xml / XmlDataDocument.cs
1 //
2 // mcs/class/System.Data/System.Xml/XmlDataDocument.cs
3 //
4 // Purpose: Provides a W3C XML DOM Document to interact with
5 //          relational data in a DataSet
6 //
7 // class: XmlDataDocument
8 // assembly: System.Data.dll
9 // namespace: System.Xml
10 //
11 // Author:
12 //     Daniel Morgan <danmorg@sc.rr.com>
13 //
14 // (c)copyright 2002 Daniel Morgan
15 //
16 // XmlDataDocument is included within the Mono Class Library.
17 //
18
19 using System;
20 using System.Data;
21 using System.IO;
22 using System.Text;
23 using System.Xml.XPath;
24
25 namespace System.Xml {
26
27         public class XmlDataDocument : XmlDocument {
28
29                 #region Fields
30
31                 private DataSet dataSet;
32
33                 #endregion // Fields
34
35                 #region Constructors
36
37                 public XmlDataDocument() {
38                         dataSet = new DataSet();
39                 }
40
41                 public XmlDataDocument(DataSet dataset) {
42                         this.dataSet = dataset;
43                 }
44
45                 #endregion // Constructors
46
47                 #region Public Properties
48
49                 public override string BaseURI {
50                         [MonoTODO]
51                         get {
52                                 // TODO: why are we overriding?
53                                 return base.BaseURI;
54                         }
55                 }
56
57                 public DataSet DataSet {
58                         [MonoTODO]
59                         get {
60                                 return dataSet;
61                         }
62                 }
63
64                 // override inheritted method from XmlDocument
65                 public override string InnerXml {
66                         [MonoTODO]
67                         get {
68                                 throw new NotImplementedException();
69                         }
70                                  
71                         [MonoTODO]
72                         set {
73                                 throw new NotImplementedException();
74                         }
75                 }
76
77                 public override bool IsReadOnly {
78                         [MonoTODO]
79                         get {
80                                 throw new NotImplementedException();
81                         }
82
83                 }
84
85                 // Item indexer
86                 public override XmlElement this[string name] {
87                         [MonoTODO]
88                         get {
89                                 throw new NotImplementedException();
90                         }
91                 }
92
93                 // Item indexer
94                 public override XmlElement this[string localname, string ns] {
95                         [MonoTODO]
96                         get {
97                                 throw new NotImplementedException();
98                         }
99                 }
100
101                 public override string LocalName {
102                         [MonoTODO]
103                         get {
104                                 throw new NotImplementedException();
105                         }
106                 }
107
108                 public override string Name {
109                         [MonoTODO]
110                         get {
111                                 throw new NotImplementedException();
112                         }
113                 }
114
115                 public override XmlDocument OwnerDocument {
116                         [MonoTODO]
117                         get {
118                                 return null;
119                         }
120                 }
121
122                 #endregion // Public Properties
123
124                 #region Public Methods
125
126                 [MonoTODO]
127                 public override XmlNode CloneNode(bool deep) 
128                 {
129                         throw new NotImplementedException();
130                 }
131
132                 #region overloaded CreateElement methods
133
134                 [MonoTODO]
135                 public new XmlElement CreateElement(string prefix,
136                                 string localName, string namespaceURI) 
137                 {
138                         throw new NotImplementedException();
139                 }
140
141                 [MonoTODO]
142                 public new XmlElement CreateElement(string qualifiedName,
143                                 string namespaceURI) 
144                 {
145                         throw new NotImplementedException();
146                 }
147
148                 [MonoTODO]
149                 public new XmlElement CreateElement(string name) 
150                 {
151                         throw new NotImplementedException();
152                 }
153
154                 #endregion // overloaded CreateElement Methods
155                         
156                 // will not be supported
157                 public override XmlEntityReference CreateEntityReference(string name) 
158                 {
159                         throw new NotSupportedException();
160                 }
161                 
162                 // will not be supported
163                 public override XmlElement GetElementById(string elemId) 
164                 {
165                         throw new NotSupportedException();
166                 }
167
168                 // get the XmlElement associated with the DataRow
169                 public XmlElement GetElementFromRow(DataRow r) 
170                 {
171                         throw new NotImplementedException();
172                 }
173
174                 // get the DataRow associated with the XmlElement
175                 [MonoTODO]
176                 public DataRow GetRowFromElement(XmlElement e) \r
177                 {\r
178                         throw new NotImplementedException();\r
179                 }\r
180 \r
181                 #region overload Load methods\r
182 \r
183                 [MonoTODO]\r
184                 public override void Load(Stream inStream) {\r
185                         throw new NotImplementedException();\r
186                 }\r
187 \r
188                 [MonoTODO]\r
189                 public override void Load(string filename) {\r
190                         throw new NotImplementedException();\r
191                 }\r
192 \r
193                 [MonoTODO]\r
194                 public override void Load(TextReader txtReader) {\r
195                         throw new NotImplementedException();\r
196                 }\r
197 \r
198                 [MonoTODO]\r
199                 public override void Load(XmlReader reader) {\r
200                         throw new NotImplementedException();\r
201                 }\r
202 \r
203                 #endregion // overloaded Load methods\r
204 \r
205                 [MonoTODO]\r
206                 public override void WriteContentTo(XmlWriter xw) {\r
207                         throw new NotImplementedException();\r
208                 }\r
209 \r
210                 [MonoTODO]\r
211                 public override void WriteTo(XmlWriter w) {\r
212                         throw new NotImplementedException();\r
213                 }\r
214
215                 #endregion // Public Methods
216
217                 #region Protected Methods
218
219                 [MonoTODO]
220                 protected override XPathNavigator CreateNavigator(XmlNode node) {\r
221                         throw new NotImplementedException();\r
222                 }\r
223
224                 [MonoTODO]
225                 public new XPathNavigator CreateNavigator() {\r
226                         throw new NotImplementedException();\r
227                 }\r
228
229                 #endregion // Protected Methods
230
231         }
232 }