XmlSchemaComplexContentExtension.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 XmlSchemaComplexContentExtension.
  10. /// </summary>
  11. public class XmlSchemaComplexContentExtension : XmlSchemaContent
  12. {
  13. private XmlSchemaAnyAttribute any;
  14. private XmlSchemaObjectCollection attributes;
  15. private XmlQualifiedName baseTypeName;
  16. private XmlSchemaParticle particle;
  17. public XmlSchemaComplexContentExtension()
  18. {
  19. attributes = new XmlSchemaObjectCollection();
  20. }
  21. [System.Xml.Serialization.XmlAttribute("base")]
  22. public XmlQualifiedName BaseTypeName
  23. {
  24. get{ return baseTypeName; }
  25. set{ baseTypeName = value; }
  26. }
  27. [XmlElement("anyAttribute",Namespace="http://www.w3.org/2001/XMLSchema")]
  28. public XmlSchemaAnyAttribute AnyAttribute
  29. {
  30. get{ return any; }
  31. set{ any = value;}
  32. }
  33. [XmlElement("attribute",typeof(XmlSchemaAttribute),Namespace="http://www.w3.org/2001/XMLSchema")]
  34. [XmlElement("attributeGroup",typeof(XmlSchemaAttributeGroupRef),Namespace="http://www.w3.org/2001/XMLSchema")]
  35. public XmlSchemaObjectCollection Attributes
  36. {
  37. get{ return attributes; }
  38. }
  39. [XmlElement("group",typeof(XmlSchemaGroupRef),Namespace="http://www.w3.org/2001/XMLSchema")]
  40. [XmlElement("all",typeof(XmlSchemaAll),Namespace="http://www.w3.org/2001/XMLSchema")]
  41. [XmlElement("choice",typeof(XmlSchemaChoice),Namespace="http://www.w3.org/2001/XMLSchema")]
  42. [XmlElement("sequence",typeof(XmlSchemaSequence),Namespace="http://www.w3.org/2001/XMLSchema")]
  43. public XmlSchemaParticle Particle
  44. {
  45. get{ return particle; }
  46. set{ particle = value; }
  47. }
  48. }
  49. }