2
0

XPathNavigator.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. //
  2. // System.Xml.XPath.XPathNavigator
  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.XPath
  11. {
  12. public abstract class XPathNavigator : ICloneable
  13. {
  14. #region Constructor
  15. protected XPathNavigator ()
  16. {
  17. }
  18. #endregion
  19. #region Properties
  20. public abstract string BaseURI { get; }
  21. public abstract bool HasAttributes { get; }
  22. public abstract bool HasChildren { get; }
  23. public abstract bool IsEmptyElement { get; }
  24. public abstract string LocalName { get; }
  25. public abstract string Name { get; }
  26. public abstract string NamespaceURI { get; }
  27. public abstract XmlNameTable NameTable { get; }
  28. public abstract XPathNodeType NodeType { get; }
  29. public abstract string Prefix { get; }
  30. public abstract string Value { get; }
  31. public abstract string XmlLang { get; }
  32. #endregion
  33. #region Methods
  34. public abstract XPathNavigator Clone ();
  35. [MonoTODO]
  36. public virtual XmlNodeOrder ComparePosition (XPathNavigator nav)
  37. {
  38. throw new NotImplementedException ();
  39. }
  40. [MonoTODO]
  41. public virtual XPathExpression Compile (string xpath)
  42. {
  43. throw new NotImplementedException ();
  44. }
  45. [MonoTODO]
  46. public virtual object Evaluate (string xpath)
  47. {
  48. throw new NotImplementedException ();
  49. }
  50. [MonoTODO]
  51. public virtual object Evaluate (XPathExpression expr)
  52. {
  53. throw new NotImplementedException ();
  54. }
  55. [MonoTODO]
  56. public virtual object Evaluate (XPathExpression expr, XPathNodeIterator context)
  57. {
  58. throw new NotImplementedException ();
  59. }
  60. public abstract string GetAttribute (string localName, string namespaceURI);
  61. public abstract string GetNamespace (string name);
  62. [MonoTODO]
  63. object ICloneable.Clone ()
  64. {
  65. throw new NotImplementedException ();
  66. }
  67. [MonoTODO]
  68. public virtual bool IsDescendant (XPathNavigator nav)
  69. {
  70. throw new NotImplementedException ();
  71. }
  72. public abstract bool IsSamePosition (XPathNavigator other);
  73. [MonoTODO]
  74. public virtual bool Matches (string xpath)
  75. {
  76. throw new NotImplementedException ();
  77. }
  78. [MonoTODO]
  79. public virtual bool Matches (XPathExpression expr)
  80. {
  81. throw new NotImplementedException ();
  82. }
  83. public abstract bool MoveTo (XPathNavigator other);
  84. public abstract bool MoveToAttribute (string localName, string namespaceURI);
  85. public abstract bool MoveToFirst ();
  86. public abstract bool MoveToFirstAttribute ();
  87. public abstract bool MoveToFirstChild ();
  88. [MonoTODO]
  89. public bool MoveToFirstNamespace ()
  90. {
  91. throw new NotImplementedException ();
  92. }
  93. public abstract bool MoveToFirstNamespace (XPathNamespaceScope namespaceScope);
  94. public abstract bool MoveToId (string id);
  95. public abstract bool MoveToNamespace (string name);
  96. public abstract bool MoveToNext ();
  97. public abstract bool MoveToNextAttribute ();
  98. [MonoTODO]
  99. public bool MoveToNextNamespace ()
  100. {
  101. throw new NotImplementedException ();
  102. }
  103. public abstract bool MoveToNextNamespace (XPathNamespaceScope namespaceScope);
  104. public abstract bool MoveToParent ();
  105. public abstract bool MoveToPrevious ();
  106. public abstract bool MoveToRoot ();
  107. [MonoTODO]
  108. public virtual XPathNodeIterator Select (string xpath)
  109. {
  110. throw new NotImplementedException ();
  111. }
  112. [MonoTODO]
  113. public virtual XPathNodeIterator Select (XPathExpression expr)
  114. {
  115. throw new NotImplementedException ();
  116. }
  117. [MonoTODO]
  118. public virtual XPathNodeIterator SelectAncestors (XPathNodeType type, bool matchSelf)
  119. {
  120. throw new NotImplementedException ();
  121. }
  122. [MonoTODO]
  123. public virtual XPathNodeIterator SelectAncestors (string name, string namespaceURI, bool matchSelf)
  124. {
  125. throw new NotImplementedException ();
  126. }
  127. [MonoTODO]
  128. public virtual XPathNodeIterator SelectChildren (XPathNodeType type)
  129. {
  130. throw new NotImplementedException ();
  131. }
  132. [MonoTODO]
  133. public virtual XPathNodeIterator SelectChildren (string name, string namespaceURI)
  134. {
  135. throw new NotImplementedException ();
  136. }
  137. [MonoTODO]
  138. public virtual XPathNodeIterator SelectDescendants (XPathNodeType type, bool matchSelf)
  139. {
  140. throw new NotImplementedException ();
  141. }
  142. [MonoTODO]
  143. public virtual XPathNodeIterator SelectDescendants (string name, string namespaceURI, bool matchSelf)
  144. {
  145. throw new NotImplementedException ();
  146. }
  147. [MonoTODO]
  148. public override string ToString ()
  149. {
  150. throw new NotImplementedException ();
  151. }
  152. #endregion
  153. }
  154. }