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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="XmlSchemaComplexContentExtension.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.Collections;
  20.     using System.Xml.Serialization;
  21.    
  22.     /// <include file='doc\XmlSchemaComplexContentExtension.uex' path='docs/doc[@for="XmlSchemaComplexContentExtension"]/*' />
  23.     /// <devdoc>
  24.     /// <para>[To be supplied.]</para>
  25.     /// </devdoc>
  26.     public class XmlSchemaComplexContentExtension : XmlSchemaContent
  27.     {
  28.         XmlSchemaParticle particle;
  29.         XmlSchemaObjectCollection attributes = new XmlSchemaObjectCollection();
  30.         XmlSchemaAnyAttribute anyAttribute;
  31.         XmlQualifiedName baseTypeName = XmlQualifiedName.Empty;
  32.        
  33.         /// <include file='doc\XmlSchemaComplexContentExtension.uex' path='docs/doc[@for="XmlSchemaComplexContentExtension.BaseTypeName"]/*' />
  34.         /// <devdoc>
  35.         /// <para>[To be supplied.]</para>
  36.         /// </devdoc>
  37.         [XmlAttribute("base")]
  38.         public XmlQualifiedName BaseTypeName {
  39.             get { return baseTypeName; }
  40.             set { baseTypeName = (value == null ? XmlQualifiedName.Empty : value); }
  41.         }
  42.        
  43.         /// <include file='doc\XmlSchemaComplexContentExtension.uex' path='docs/doc[@for="XmlSchemaComplexContentExtension.Particle"]/*' />
  44.         /// <devdoc>
  45.         /// <para>[To be supplied.]</para>
  46.         /// </devdoc>
  47.         [XmlElement("group", typeof(XmlSchemaGroupRef)), XmlElement("choice", typeof(XmlSchemaChoice)), XmlElement("all", typeof(XmlSchemaAll)), XmlElement("sequence", typeof(XmlSchemaSequence))]
  48.         public XmlSchemaParticle Particle {
  49.             get { return particle; }
  50.             set { particle = value; }
  51.         }
  52.        
  53.         /// <include file='doc\XmlSchemaComplexContentExtension.uex' path='docs/doc[@for="XmlSchemaComplexContentExtension.Attributes"]/*' />
  54.         /// <devdoc>
  55.         /// <para>[To be supplied.]</para>
  56.         /// </devdoc>
  57.         [XmlElement("attribute", typeof(XmlSchemaAttribute)), XmlElement("attributeGroup", typeof(XmlSchemaAttributeGroupRef))]
  58.         public XmlSchemaObjectCollection Attributes {
  59.             get { return attributes; }
  60.         }
  61.        
  62.        
  63.         /// <include file='doc\XmlSchemaComplexContentExtension.uex' path='docs/doc[@for="XmlSchemaComplexContentExtension.AnyAttribute"]/*' />
  64.         /// <devdoc>
  65.         /// <para>[To be supplied.]</para>
  66.         /// </devdoc>
  67.         [XmlElement("anyAttribute")]
  68.         public XmlSchemaAnyAttribute AnyAttribute {
  69.             get { return anyAttribute; }
  70.             set { anyAttribute = value; }
  71.         }
  72.        
  73.         internal void SetAttributes(XmlSchemaObjectCollection newAttributes)
  74.         {
  75.             attributes = newAttributes;
  76.         }
  77.     }
  78.    
  79. }

Developer Fusion