XmlSchemaRedefine.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Author: Dwivedi, Ajay kumar
  2. // [email protected]
  3. using System;
  4. using System.Xml.Serialization;
  5. namespace System.Xml.Schema
  6. {
  7. /// <summary>
  8. /// Summary description for XmlSchemaRedefine.
  9. /// </summary>
  10. public class XmlSchemaRedefine : XmlSchemaExternal
  11. {
  12. private XmlSchemaObjectTable attributeGroups;
  13. private XmlSchemaObjectTable groups;
  14. private XmlSchemaObjectCollection items;
  15. private XmlSchemaObjectTable schemaTypes;
  16. public XmlSchemaRedefine()
  17. {
  18. }
  19. [XmlIgnore]
  20. public XmlSchemaObjectTable AttributeGroups
  21. {
  22. get{ return attributeGroups; }
  23. }
  24. [XmlIgnore]
  25. public XmlSchemaObjectTable Groups
  26. {
  27. get{ return groups; }
  28. }
  29. [XmlElement("annotation",typeof(XmlSchemaAnnotation),Namespace="http://www.w3.org/2001/XMLSchema")]
  30. [XmlElement("simpleType",typeof(XmlSchemaSimpleType),Namespace="http://www.w3.org/2001/XMLSchema")]
  31. [XmlElement("complexType",typeof(XmlSchemaComplexType),Namespace="http://www.w3.org/2001/XMLSchema")]
  32. [XmlElement("group",typeof(XmlSchemaGroup),Namespace="http://www.w3.org/2001/XMLSchema")]
  33. //NOTE: AttributeGroup and not AttributeGroupRef
  34. [XmlElement("attributeGroup",typeof(XmlSchemaAttributeGroup),Namespace="http://www.w3.org/2001/XMLSchema")]
  35. public XmlSchemaObjectCollection Items
  36. {
  37. get{ return items; }
  38. }
  39. [XmlIgnore]
  40. public XmlSchemaObjectTable SchemaTypes
  41. {
  42. get{ return schemaTypes; }
  43. }
  44. }
  45. }