2
0

XmlSchemaSimpleContentRestriction.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 XmlSchemaSimpleContentRestriction.
  10. /// </summary>
  11. public class XmlSchemaSimpleContentRestriction : XmlSchemaContent
  12. {
  13. private XmlSchemaAnyAttribute any;
  14. private XmlSchemaObjectCollection attributes;
  15. private XmlSchemaSimpleType baseType;
  16. private XmlQualifiedName baseTypeName;
  17. private XmlSchemaObjectCollection facets;
  18. public XmlSchemaSimpleContentRestriction()
  19. {
  20. baseTypeName = XmlQualifiedName.Empty;
  21. attributes = new XmlSchemaObjectCollection();
  22. facets = new XmlSchemaObjectCollection();
  23. }
  24. [XmlElement]
  25. public XmlSchemaAnyAttribute AnyAttribute
  26. {
  27. get{ return any; }
  28. set{ any = value; }
  29. }
  30. [XmlElement]
  31. public XmlSchemaObjectCollection Attributes
  32. {
  33. get{ return attributes; }
  34. }
  35. [XmlElement]
  36. public XmlSchemaSimpleType BaseType
  37. {
  38. get{ return baseType; }
  39. set{ baseType = value; }
  40. }
  41. [XmlAttribute]
  42. public XmlQualifiedName BaseTypeName
  43. {
  44. get{ return baseTypeName; }
  45. set{ baseTypeName = value; }
  46. }
  47. [XmlElement]
  48. public XmlSchemaObjectCollection Facets
  49. {
  50. get{ return facets; }
  51. }
  52. }
  53. }