XmlSchemaAttributeGroup.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. // Author: Dwivedi, Ajay kumar
  2. // [email protected]
  3. using System;
  4. using System.Xml.Serialization;
  5. using System.Xml;
  6. namespace System.Xml.Schema
  7. {
  8. /// <summary>
  9. /// Summary description for XmlSchemaAttributeGroup.
  10. /// </summary>
  11. public class XmlSchemaAttributeGroup : XmlSchemaAnnotated
  12. {
  13. private XmlSchemaAnyAttribute any;
  14. private XmlSchemaObjectCollection attributes;
  15. private string name;
  16. private XmlSchemaAttributeGroup redefined;
  17. private XmlQualifiedName qualifiedName;
  18. public XmlSchemaAttributeGroup()
  19. {
  20. attributes = new XmlSchemaObjectCollection();
  21. //FIXME:
  22. redefined = this;
  23. }
  24. [XmlElement("anyAttribute",Namespace="http://www.w3.org/2001/XMLSchema")]
  25. public XmlSchemaAnyAttribute AnyAttribute
  26. {
  27. get{ return any;}
  28. set{ any = value;}
  29. }
  30. [XmlElement("attribute",typeof(XmlSchemaAttribute),Namespace="http://www.w3.org/2001/XMLSchema")]
  31. [XmlElement("attributeGroup",typeof(XmlSchemaAttributeGroupRef),Namespace="http://www.w3.org/2001/XMLSchema")]
  32. public XmlSchemaObjectCollection Attributes
  33. {
  34. get{ return attributes;}
  35. }
  36. [System.Xml.Serialization.XmlAttribute("name")]
  37. public string Name
  38. {
  39. get{ return name;}
  40. set{ name = value;}
  41. }
  42. //Undocumented property
  43. [XmlIgnore]
  44. public XmlSchemaAttributeGroup RedefinedAttributeGroup
  45. {
  46. get{ return redefined;}
  47. }
  48. [XmlIgnore]
  49. internal XmlQualifiedName QualifiedName
  50. {
  51. get{ return qualifiedName;}
  52. }
  53. [MonoTODO]
  54. internal bool Compile(ValidationEventHandler h, XmlSchemaInfo info)
  55. {
  56. return false;
  57. }
  58. [MonoTODO]
  59. internal bool Validate(ValidationEventHandler h)
  60. {
  61. return false;
  62. }
  63. }
  64. }