XmlSchemaSimpleContentExtension.cs 979 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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]
  22. public XmlSchemaAnyAttribute AnyAttribute
  23. {
  24. get{ return any; }
  25. set{ any = value; }
  26. }
  27. [XmlElement]
  28. public XmlSchemaObjectCollection Attributes
  29. {
  30. get{ return attributes; }
  31. }
  32. [XmlAttribute]
  33. public XmlQualifiedName BaseTypeName
  34. {
  35. get{ return baseTypeName; }
  36. set{ baseTypeName = value; }
  37. }
  38. }
  39. }