The Labs \ Source Viewer \ SSCLI \ System.Xml.Schema \ XmlSchemaRedefine

  1. //------------------------------------------------------------------------------
  2. // <copyright file="XmlSchemaRedefine.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. // <owner current="true" primary="true">priyal</owner>
  15. //------------------------------------------------------------------------------
  16. namespace System.Xml.Schema
  17. {
  18.    
  19.     using System.Xml.Serialization;
  20.    
  21.     /// <include file='doc\XmlSchemaRedefine.uex' path='docs/doc[@for="XmlSchemaRedefine"]/*' />
  22.     /// <devdoc>
  23.     /// <para>[To be supplied.]</para>
  24.     /// </devdoc>
  25.     public class XmlSchemaRedefine : XmlSchemaExternal
  26.     {
  27.         XmlSchemaObjectCollection items = new XmlSchemaObjectCollection();
  28.         XmlSchemaObjectTable attributeGroups = new XmlSchemaObjectTable();
  29.         XmlSchemaObjectTable types = new XmlSchemaObjectTable();
  30.         XmlSchemaObjectTable groups = new XmlSchemaObjectTable();
  31.        
  32.        
  33.         /// <include file='doc\XmlSchemaRedefine.uex' path='docs/doc[@for="XmlSchemaRedefine.XmlSchemaRedefine"]/*' />
  34.         /// <devdoc>
  35.         /// <para>[To be supplied.]</para>
  36.         /// </devdoc>
  37.         public XmlSchemaRedefine()
  38.         {
  39.             Compositor = Compositor.Redefine;
  40.         }
  41.        
  42.         /// <include file='doc\XmlSchemaRedefine.uex' path='docs/doc[@for="XmlSchemaRedefine.Items"]/*' />
  43.         /// <devdoc>
  44.         /// <para>[To be supplied.]</para>
  45.         /// </devdoc>
  46.         [XmlElement("annotation", typeof(XmlSchemaAnnotation)), XmlElement("attributeGroup", typeof(XmlSchemaAttributeGroup)), XmlElement("complexType", typeof(XmlSchemaComplexType)), XmlElement("group", typeof(XmlSchemaGroup)), XmlElement("simpleType", typeof(XmlSchemaSimpleType))]
  47.         public XmlSchemaObjectCollection Items {
  48.             get { return items; }
  49.         }
  50.        
  51.         /// <include file='doc\XmlSchemaRedefine.uex' path='docs/doc[@for="XmlSchemaRedefine.AttributeGroups"]/*' />
  52.         /// <devdoc>
  53.         /// <para>[To be supplied.]</para>
  54.         /// </devdoc>
  55.         [XmlIgnore()]
  56.         public XmlSchemaObjectTable AttributeGroups {
  57.             get { return attributeGroups; }
  58.         }
  59.        
  60.         /// <include file='doc\XmlSchemaRedefine.uex' path='docs/doc[@for="XmlSchemaRedefine.SchemaTypes"]/*' />
  61.         /// <devdoc>
  62.         /// <para>[To be supplied.]</para>
  63.         /// </devdoc>
  64.         [XmlIgnore()]
  65.         public XmlSchemaObjectTable SchemaTypes {
  66.             get { return types; }
  67.         }
  68.        
  69.         /// <include file='doc\XmlSchemaRedefine.uex' path='docs/doc[@for="XmlSchemaRedefine.Groups"]/*' />
  70.         /// <devdoc>
  71.         /// <para>[To be supplied.]</para>
  72.         /// </devdoc>
  73.         [XmlIgnore()]
  74.         public XmlSchemaObjectTable Groups {
  75.             get { return groups; }
  76.         }
  77.        
  78.         internal override void AddAnnotation(XmlSchemaAnnotation annotation)
  79.         {
  80.             items.Add(annotation);
  81.         }
  82.     }
  83. }

Developer Fusion