2002-12-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
[mono.git] / mcs / class / System.XML / System.Xml / XmlValidatingReader.cs
1 //
2 // System.Xml.XmlValidatingReader.cs
3 //
4 // Author:
5 //   Tim Coleman (tim@timcoleman.com)
6 //
7 // Copyright (C) Tim Coleman, 2002
8 //
9
10 using System.IO;
11 using System.Text;
12 using System.Xml.Schema;
13
14 namespace System.Xml {
15         public class XmlValidatingReader : XmlReader, IXmlLineInfo {
16
17                 #region Fields
18
19                 EntityHandling entityHandling;
20                 bool namespaces;
21                 XmlReader reader;
22                 ValidationType validationType;
23
24                 #endregion // Fields
25
26                 #region Constructors
27
28                 [MonoTODO]
29                 public XmlValidatingReader (XmlReader reader)
30                         : base ()
31                 {
32                         if (!(reader is XmlTextReader))
33                                 throw new ArgumentException ();
34
35                         this.reader = reader;
36                         entityHandling = EntityHandling.ExpandEntities;
37                         namespaces = true;
38                         validationType = ValidationType.Auto;
39                 }
40
41                 [MonoTODO]
42                 public XmlValidatingReader (Stream xmlFragment, XmlNodeType fragType, XmlParserContext context)
43                         : this (new XmlTextReader (xmlFragment))
44                 {
45                 }
46
47                 public XmlValidatingReader (string xmlFragment, XmlNodeType fragType, XmlParserContext context)
48                         : this (new XmlTextReader (xmlFragment))
49                 {
50                 }
51
52                 #endregion // Constructors
53
54                 #region Properties
55
56                 public override int AttributeCount {
57                         [MonoTODO]
58                         get { throw new NotImplementedException (); }
59                 }
60
61                 public override string BaseURI {
62                         [MonoTODO]
63                         get { throw new NotImplementedException (); }
64                 }
65
66                 public override bool CanResolveEntity {
67                         get { return true; }
68                 }
69
70                 public override int Depth { 
71                         [MonoTODO]
72                         get { throw new NotImplementedException (); }
73                 }
74
75                 public Encoding Encoding {
76                         [MonoTODO]
77                         get { throw new NotImplementedException (); }
78                 }
79
80                 public EntityHandling EntityHandling {
81                         get { return entityHandling; }
82                         set { entityHandling = value; }
83                 }
84
85                 public override bool EOF { 
86                         [MonoTODO]
87                         get { throw new NotImplementedException (); }
88                 }
89
90                 public override bool HasValue { 
91                         [MonoTODO]
92                         get { throw new NotImplementedException (); }
93                 }
94
95                 public override bool IsDefault {
96                         [MonoTODO]
97                         get { throw new NotImplementedException (); }
98                 }
99
100                 public override bool IsEmptyElement { 
101                         [MonoTODO]
102                         get { throw new NotImplementedException (); }
103                 }
104
105                 public override string this [int i] { 
106                         [MonoTODO]
107                         get { throw new NotImplementedException (); }
108                 }
109
110                 public override string this [string name] { 
111                         [MonoTODO]
112                         get { throw new NotImplementedException (); }
113                 }
114
115                 public override string this [string localName, string namespaceName] { 
116                         [MonoTODO]
117                         get { throw new NotImplementedException (); }
118                 }
119
120                 int IXmlLineInfo.LineNumber {
121                         [MonoTODO]
122                         get { throw new NotImplementedException (); }
123                 }
124
125                 int IXmlLineInfo.LinePosition {
126                         [MonoTODO]
127                         get { throw new NotImplementedException (); }
128                 }
129
130                 public override string LocalName { 
131                         [MonoTODO]
132                         get { throw new NotImplementedException (); }
133                 }
134
135                 public override string Name {
136                         [MonoTODO]
137                         get { throw new NotImplementedException (); }
138                 }
139
140                 public bool Namespaces {
141                         get { return namespaces; }
142                         set { namespaces = value; }
143                 }
144
145                 public override string NamespaceURI { 
146                         [MonoTODO]
147                         get { throw new NotImplementedException (); }
148                 }
149
150                 public override XmlNameTable NameTable { 
151                         [MonoTODO]
152                         get { throw new NotImplementedException (); }
153                 }
154
155                 public override XmlNodeType NodeType { 
156                         [MonoTODO]
157                         get { throw new NotImplementedException (); }
158                 }
159
160                 public override string Prefix { 
161                         [MonoTODO]
162                         get { throw new NotImplementedException (); }
163                 }
164
165                 public override char QuoteChar { 
166                         [MonoTODO]
167                         get { throw new NotImplementedException (); }
168                 }
169
170                 public XmlReader Reader {
171                         get { return reader; }
172                 }
173
174                 public override ReadState ReadState { 
175                         [MonoTODO]
176                         get { throw new NotImplementedException (); }
177                 }
178
179                 public XmlSchemaCollection Schemas {
180                         [MonoTODO]
181                         get { throw new NotImplementedException (); }
182                 }
183
184                 public object SchemaType {
185                         [MonoTODO]
186                         get { throw new NotImplementedException (); }
187                 }
188
189                 public ValidationType ValidationType {
190                         get { return validationType; }
191                         [MonoTODO ("Need to check for exception.")]
192                         set { validationType = value; }
193                 }
194
195                 public override string Value {
196                         [MonoTODO]
197                         get { throw new NotImplementedException (); }
198                 }
199
200                 public override string XmlLang {
201                         [MonoTODO]
202                         get { throw new NotImplementedException (); }
203                 }
204
205                 public XmlResolver XmlResolver {
206                         [MonoTODO]
207                         set { throw new NotImplementedException (); }
208                 }
209
210                 public override XmlSpace XmlSpace {
211                         [MonoTODO]
212                         get { throw new NotImplementedException (); }
213                 }
214
215                 #endregion // Properties
216
217                 #region Methods
218
219                 [MonoTODO]
220                 public override void Close ()
221                 {
222                         throw new NotImplementedException ();
223                 }
224
225                 [MonoTODO]
226                 public override string GetAttribute (int i)
227                 {
228                         throw new NotImplementedException ();
229                 }
230
231                 [MonoTODO]
232                 public override string GetAttribute (string name)
233                 {
234                         throw new NotImplementedException ();
235                 }
236
237                 [MonoTODO]
238                 public override string GetAttribute (string localName, string namespaceName)
239                 {
240                         throw new NotImplementedException ();
241                 }
242
243                 [MonoTODO]
244                 bool IXmlLineInfo.HasLineInfo ()
245                 {
246                         throw new NotImplementedException ();
247                 }
248
249                 [MonoTODO]
250                 public override string LookupNamespace (string prefix)
251                 {
252                         throw new NotImplementedException ();
253                 }
254
255                 [MonoTODO]
256                 public override void MoveToAttribute (int i)
257                 {
258                         throw new NotImplementedException ();
259                 }
260
261                 [MonoTODO]
262                 public override bool MoveToAttribute (string name)
263                 {
264                         throw new NotImplementedException ();
265                 }
266
267                 [MonoTODO]
268                 public override bool MoveToAttribute (string localName, string namespaceName)
269                 {
270                         throw new NotImplementedException ();
271                 }
272
273                 [MonoTODO]
274                 public override bool MoveToElement ()
275                 {
276                         throw new NotImplementedException ();
277                 }
278
279                 [MonoTODO]
280                 public override bool MoveToFirstAttribute ()
281                 {
282                         throw new NotImplementedException ();
283                 }
284
285                 [MonoTODO]
286                 public override bool MoveToNextAttribute ()
287                 {
288                         throw new NotImplementedException ();
289                 }
290
291                 [MonoTODO]
292                 public override bool Read ()
293                 {
294                         throw new NotImplementedException ();
295                 }
296
297                 [MonoTODO]
298                 public override bool ReadAttributeValue ()
299                 {
300                         throw new NotImplementedException ();
301                 }
302
303                 [MonoTODO]
304                 public override string ReadInnerXml ()
305                 {
306                         throw new NotImplementedException ();
307                 }
308
309                 [MonoTODO]
310                 public override string ReadOuterXml ()
311                 {
312                         throw new NotImplementedException ();
313                 }
314
315                 [MonoTODO]
316                 public override string ReadString ()
317                 {
318                         throw new NotImplementedException ();
319                 }
320
321                 [MonoTODO]
322                 public object ReadTypedValue ()
323                 {
324                         throw new NotImplementedException ();
325                 }
326
327                 [MonoTODO]
328                 public override void ResolveEntity ()
329                 {
330                         throw new NotImplementedException ();
331                 }
332
333                 #endregion // Methods
334
335                 #region Events and Delegates
336
337                 public event ValidationEventHandler ValidationEventHandler;
338
339                 #endregion // Events and Delegates
340         }
341 }