XmlSchemaAttributeGroup.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // Author: Dwivedi, Ajay kumar
  2. // [email protected]
  3. using System;
  4. using System.Xml.Serialization;
  5. namespace System.Xml.Schema
  6. {
  7. /// <summary>
  8. /// Summary description for XmlSchemaAttributeGroup.
  9. /// </summary>
  10. public class XmlSchemaAttributeGroup : XmlSchemaAnnotated
  11. {
  12. private XmlSchemaAnyAttribute any;
  13. private XmlSchemaObjectCollection attributes;
  14. private string name;
  15. private XmlSchemaAttributeGroup redefined;
  16. public XmlSchemaAttributeGroup()
  17. {
  18. attributes = new XmlSchemaObjectCollection();
  19. //FIXME:
  20. redefined = this;
  21. }
  22. [XmlElement("anyAttribute",Namespace="http://www.w3.org/2001/XMLSchema")]
  23. public XmlSchemaAnyAttribute AnyAttribute
  24. {
  25. get{ return any;}
  26. set{ any = value;}
  27. }
  28. [XmlElement("attribute",typeof(XmlSchemaAttribute),Namespace="http://www.w3.org/2001/XMLSchema")]
  29. [XmlElement("attributeGroup",typeof(XmlSchemaAttributeGroupRef),Namespace="http://www.w3.org/2001/XMLSchema")]
  30. public XmlSchemaObjectCollection Attributes
  31. {
  32. get{ return attributes;}
  33. }
  34. [System.Xml.Serialization.XmlAttribute("name")]
  35. public string Name
  36. {
  37. get{ return name;}
  38. set{ name = value;}
  39. }
  40. //Undocumented property
  41. [XmlIgnore]
  42. public XmlSchemaAttributeGroup RedefinedAttributeGroup
  43. {
  44. get{ return redefined;}
  45. }
  46. }
  47. }