XmlCharacterData.cs 1.5 KB

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