XmlSchemaSimpleContentExtension.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Author: Dwivedi, Ajay kumar
  2. // [email protected]
  3. using System;
  4. using System.Xml;
  5. using System.Xml.Serialization;
  6. namespace System.Xml.Schema
  7. {
  8. /// <summary>
  9. /// Summary description for XmlSchemaSimpleContentExtension.
  10. /// </summary>
  11. public class XmlSchemaSimpleContentExtension : XmlSchemaContent
  12. {
  13. private XmlSchemaAnyAttribute any;
  14. private XmlSchemaObjectCollection attributes;
  15. private XmlQualifiedName baseTypeName;
  16. public XmlSchemaSimpleContentExtension()
  17. {
  18. baseTypeName = XmlQualifiedName.Empty;
  19. attributes = new XmlSchemaObjectCollection();
  20. }
  21. [XmlElement("anyAttribute",Namespace="http://www.w3.org/2001/XMLSchema")]
  22. public XmlSchemaAnyAttribute AnyAttribute
  23. {
  24. get{ return any; }
  25. set{ any = value; }
  26. }
  27. [XmlElement("attribute",typeof(XmlSchemaAttribute),Namespace="http://www.w3.org/2001/XMLSchema")]
  28. [XmlElement("attributeGroup",typeof(XmlSchemaAttributeGroupRef),Namespace="http://www.w3.org/2001/XMLSchema")]
  29. public XmlSchemaObjectCollection Attributes
  30. {
  31. get{ return attributes; }
  32. }
  33. [System.Xml.Serialization.XmlAttribute("base")]
  34. public XmlQualifiedName BaseTypeName
  35. {
  36. get{ return baseTypeName; }
  37. set{ baseTypeName = value; }
  38. }
  39. }
  40. }