XmlSchemaSimpleContentRestriction.cs 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. [System.Xml.Serialization.XmlAttribute("base")]
  25. public XmlQualifiedName BaseTypeName
  26. {
  27. get{ return baseTypeName; }
  28. set{ baseTypeName = value; }
  29. }
  30. [XmlElement("anyAttribute",Namespace="http://www.w3.org/2001/XMLSchema")]
  31. public XmlSchemaAnyAttribute AnyAttribute
  32. {
  33. get{ return any; }
  34. set{ any = value; }
  35. }
  36. [XmlElement("attribute",typeof(XmlSchemaAttribute),Namespace="http://www.w3.org/2001/XMLSchema")]
  37. [XmlElement("attributeGroup",typeof(XmlSchemaAttributeGroupRef),Namespace="http://www.w3.org/2001/XMLSchema")]
  38. public XmlSchemaObjectCollection Attributes
  39. {
  40. get{ return attributes; }
  41. }
  42. [XmlElement("simpleType",Namespace="http://www.w3.org/2001/XMLSchema")]
  43. public XmlSchemaSimpleType BaseType
  44. {
  45. get{ return baseType; }
  46. set{ baseType = value; }
  47. }
  48. [XmlElement("minExclusive",typeof(XmlSchemaMinExclusiveFacet),Namespace="http://www.w3.org/2001/XMLSchema")]
  49. [XmlElement("minInclusive",typeof(XmlSchemaMinInclusiveFacet),Namespace="http://www.w3.org/2001/XMLSchema")]
  50. [XmlElement("maxExclusive",typeof(XmlSchemaMaxExclusiveFacet),Namespace="http://www.w3.org/2001/XMLSchema")]
  51. [XmlElement("maxInclusive",typeof(XmlSchemaMaxInclusiveFacet),Namespace="http://www.w3.org/2001/XMLSchema")]
  52. [XmlElement("totalDigits",typeof(XmlSchemaTotalDigitsFacet),Namespace="http://www.w3.org/2001/XMLSchema")]
  53. [XmlElement("fractionDigits",typeof(XmlSchemaFractionDigitsFacet),Namespace="http://www.w3.org/2001/XMLSchema")]
  54. [XmlElement("length",typeof(XmlSchemaLengthFacet),Namespace="http://www.w3.org/2001/XMLSchema")]
  55. [XmlElement("minLength",typeof(XmlSchemaMinLengthFacet),Namespace="http://www.w3.org/2001/XMLSchema")]
  56. [XmlElement("maxLength",typeof(XmlSchemaMaxLengthFacet),Namespace="http://www.w3.org/2001/XMLSchema")]
  57. [XmlElement("enumeration",typeof(XmlSchemaEnumerationFacet),Namespace="http://www.w3.org/2001/XMLSchema")]
  58. [XmlElement("whiteSpace",typeof(XmlSchemaWhiteSpaceFacet),Namespace="http://www.w3.org/2001/XMLSchema")]
  59. [XmlElement("pattern",typeof(XmlSchemaPatternFacet),Namespace="http://www.w3.org/2001/XMLSchema")]
  60. public XmlSchemaObjectCollection Facets
  61. {
  62. get{ return facets; }
  63. }
  64. }
  65. }