XmlSchemaComplexContentRestriction.cs 1.8 KB

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