XQueryExpression.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. //
  2. // XQueryExpression.cs - abstract syntax tree for XQuery 1.0
  3. //
  4. // Author:
  5. // Atsushi Enomoto <[email protected]>
  6. //
  7. //
  8. // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
  9. //
  10. // Permission is hereby granted, free of charge, to any person obtaining
  11. // a copy of this software and associated documentation files (the
  12. // "Software"), to deal in the Software without restriction, including
  13. // without limitation the rights to use, copy, modify, merge, publish,
  14. // distribute, sublicense, and/or sell copies of the Software, and to
  15. // permit persons to whom the Software is furnished to do so, subject to
  16. // the following conditions:
  17. //
  18. // The above copyright notice and this permission notice shall be
  19. // included in all copies or substantial portions of the Software.
  20. //
  21. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  22. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  23. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  24. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  25. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  26. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  27. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  28. //
  29. #if NET_2_0
  30. using System;
  31. using System.Collections;
  32. using System.Xml;
  33. using System.Xml.Schema;
  34. using System.Xml.XPath;
  35. using Mono.Xml.XPath2;
  36. namespace Mono.Xml.XQuery
  37. {
  38. public class ElementConstructor : ExprSingle
  39. {
  40. public ElementConstructor (XmlQualifiedName name, AttributeConstructorList attributes, ExprSequence content)
  41. {
  42. }
  43. }
  44. public class AttributeConstructorList
  45. {
  46. ArrayList list = new ArrayList ();
  47. public AttributeConstructorList ()
  48. {
  49. }
  50. public void Add (AttributeConstructor item)
  51. {
  52. list.Add (item);
  53. }
  54. public void Insert (int pos, AttributeConstructor item)
  55. {
  56. list.Insert (pos, item);
  57. }
  58. }
  59. public class AttributeConstructor
  60. {
  61. public AttributeConstructor (XmlQualifiedName name, ExprSequence content)
  62. {
  63. }
  64. }
  65. public class XmlElemConstructor : ExprSingle
  66. {
  67. XmlQualifiedName name;
  68. ExprSequence nameExpr;
  69. ExprSequence content;
  70. public XmlElemConstructor (XmlQualifiedName name, ExprSequence content)
  71. {
  72. }
  73. public XmlElemConstructor (ExprSequence name, ExprSequence content)
  74. {
  75. }
  76. }
  77. public class XmlAttrConstructor : ExprSingle
  78. {
  79. XmlQualifiedName name;
  80. ExprSequence nameExpr;
  81. ExprSequence content;
  82. public XmlAttrConstructor (XmlQualifiedName name, ExprSequence content)
  83. {
  84. }
  85. public XmlAttrConstructor (ExprSequence name, ExprSequence content)
  86. {
  87. }
  88. }
  89. public class XmlNSConstructor : ExprSingle
  90. {
  91. public XmlNSConstructor (string prefix, ExprSequence content)
  92. {
  93. }
  94. }
  95. public class XmlDocConstructor : ExprSingle
  96. {
  97. public XmlDocConstructor (ExprSequence content)
  98. {
  99. }
  100. }
  101. public class XmlTextConstructor : ExprSingle
  102. {
  103. public XmlTextConstructor (string text)
  104. {
  105. }
  106. public XmlTextConstructor (ExprSequence content)
  107. {
  108. }
  109. }
  110. public class XmlCommentConstructor : ExprSingle
  111. {
  112. string contentLiteral;
  113. ExprSequence contentExpr;
  114. public XmlCommentConstructor (string content)
  115. {
  116. this.contentLiteral = content;
  117. }
  118. public XmlCommentConstructor (ExprSequence content)
  119. {
  120. this.contentExpr = content;
  121. }
  122. }
  123. public class XmlPIConstructor : ExprSingle
  124. {
  125. string name;
  126. ExprSequence nameExpr;
  127. string contentExpr;
  128. ExprSequence content;
  129. public XmlPIConstructor (string name, string content)
  130. {
  131. }
  132. public XmlPIConstructor (string name, ExprSequence content)
  133. {
  134. }
  135. public XmlPIConstructor (ExprSequence name, ExprSequence content)
  136. {
  137. }
  138. }
  139. }
  140. #endif