2002-03-11 Duncan Mak <duncan@ximian.com>
[mono.git] / mcs / class / System.XML / System.Xml / XmlCharacterData.cs
1 //
2 // System.Xml.XmlText
3 //
4 // Author:
5 //   Jason Diamond <jason@injektilo.org>
6 //
7 // (C) 2002 Jason Diamond  http://injektilo.org/
8 //
9
10 using System;
11
12 namespace System.Xml
13 {
14         public abstract class XmlCharacterData : XmlLinkedNode
15         {
16                 private string data;
17
18                 #region Constructor
19
20                 protected internal XmlCharacterData (string data, XmlDocument doc) : base (doc)
21                 {
22                         this.data = data;
23                 }
24
25                 #endregion
26                 
27                 #region Properties
28
29                 public virtual string Data {
30                         get {
31                                 return data;
32                         }
33                         
34                         set {
35                                 data = value;
36                         }
37                 }
38
39                 [MonoTODO]
40                 public override string InnerText {
41                         get {
42                                 throw new NotImplementedException ();
43                         }
44
45                         set {
46                                 throw new NotImplementedException ();
47                         }
48                 }
49
50                 public int Length {
51                         get {
52                                 return data != null ? data.Length : 0;
53                         }
54                 }
55
56                 public override string Value {
57                         get {
58                                 return data;
59                         }
60
61                         set {
62                                 data = value;
63                         }
64                 }
65
66                 #endregion
67
68                 #region Methods
69
70                 [MonoTODO]
71                 public virtual void AppendData (string strData)
72                 {
73                         throw new NotImplementedException ();
74                 }
75
76                 [MonoTODO]
77                 public virtual void DeleteData (int offset, int count)
78                 {
79                         throw new NotImplementedException ();
80                 }
81
82                 [MonoTODO]
83                 public virtual void InsertData (int offset, string strData)
84                 {
85                         throw new NotImplementedException ();
86                 }
87
88                 [MonoTODO]
89                 public virtual void ReplaceData (int offset, int count, string strData)
90                 {
91                         throw new NotImplementedException();
92                 }
93
94                 [MonoTODO]
95                 public virtual string Substring(int offset, int count)
96                 {
97                         throw new NotImplementedException();
98                 }
99
100                 #endregion
101         }
102 }