XmlAttributes.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. //
  2. // XmlAttributes.cs:
  3. //
  4. // Author:
  5. // John Donagher ([email protected])
  6. //
  7. // (C) 2002 John Donagher
  8. //
  9. using System.Reflection;
  10. using System;
  11. namespace System.Xml.Serialization
  12. {
  13. /// <summary>
  14. /// Summary description for XmlAttributes.
  15. /// </summary>
  16. public class XmlAttributes
  17. {
  18. private XmlAnyAttributeAttribute xmlAnyAttribute;
  19. private XmlAnyElementAttributes xmlAnyElements;
  20. private XmlArrayAttribute xmlArray;
  21. private XmlArrayItemAttributes xmlArrayItems;
  22. private XmlAttributeAttribute xmlAttribute;
  23. private XmlChoiceIdentifierAttribute xmlChoiceIdentifier;
  24. private object xmlDefaultValue;
  25. private XmlElementAttributes xmlElements;
  26. private XmlEnumAttribute xmlEnum;
  27. private bool xmlIgnore;
  28. private bool xmlns;
  29. private XmlRootAttribute xmlRoot;
  30. private XmlTextAttribute xmlText;
  31. private XmlTypeAttribute xmlType;
  32. public XmlAttributes ()
  33. {
  34. xmlAnyElements = new XmlAnyElementAttributes ();
  35. xmlArrayItems = new XmlArrayItemAttributes ();
  36. xmlElements = new XmlElementAttributes ();
  37. }
  38. [MonoTODO]
  39. public XmlAttributes (ICustomAttributeProvider provider)
  40. {
  41. throw new NotImplementedException ();
  42. }
  43. public XmlAnyAttributeAttribute XmlAnyAttribute {
  44. get {
  45. return xmlAnyAttribute;
  46. }
  47. set {
  48. xmlAnyAttribute = value;
  49. }
  50. }
  51. public XmlAnyElementAttributes XmlAnyElements {
  52. get {
  53. return xmlAnyElements;
  54. }
  55. }
  56. public XmlArrayAttribute XmlArray {
  57. get {
  58. return xmlArray;
  59. }
  60. set {
  61. xmlArray = value;
  62. }
  63. }
  64. public XmlArrayItemAttributes XmlArrayItems {
  65. get {
  66. return xmlArrayItems;
  67. }
  68. }
  69. public XmlAttributeAttribute XmlAttribute {
  70. get {
  71. return xmlAttribute;
  72. }
  73. set {
  74. xmlAttribute = value;
  75. }
  76. }
  77. public XmlChoiceIdentifierAttribute XmlChoiceIdentifier {
  78. get {
  79. return xmlChoiceIdentifier;
  80. }
  81. set {
  82. xmlChoiceIdentifier = value;
  83. }
  84. }
  85. public object XmlDefaultValue {
  86. get {
  87. return xmlDefaultValue;
  88. }
  89. set {
  90. xmlDefaultValue = value;
  91. }
  92. }
  93. public XmlElementAttributes XmlElements {
  94. get {
  95. return xmlElements;
  96. }
  97. }
  98. public XmlEnumAttribute XmlEnum {
  99. get {
  100. return xmlEnum;
  101. }
  102. set {
  103. xmlEnum = value;
  104. }
  105. }
  106. public bool XmlIgnore {
  107. get {
  108. return xmlIgnore;
  109. }
  110. set {
  111. xmlIgnore = value;
  112. }
  113. }
  114. public bool Xmlns {
  115. get {
  116. return xmlns;
  117. }
  118. set {
  119. xmlns = value;
  120. }
  121. }
  122. public XmlRootAttribute XmlRoot {
  123. get {
  124. return xmlRoot;}
  125. set {
  126. xmlRoot = value;
  127. }
  128. }
  129. public XmlTextAttribute XmlText {
  130. get {
  131. return xmlText;
  132. }
  133. set {
  134. xmlText = value;
  135. }
  136. }
  137. public XmlTypeAttribute XmlType {
  138. get {
  139. return xmlType;
  140. }
  141. set {
  142. xmlType = value;
  143. }
  144. }
  145. }
  146. }