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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="XmlSchemaComplexContentRestriction.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\XmlSchemaComplexContentRestriction.uex' path='docs/doc[@for="XmlSchemaComplexContentRestriction"]/*' />
  23.     /// <devdoc>
  24.     /// <para>[To be supplied.]</para>
  25.     /// </devdoc>
  26.     public class XmlSchemaComplexContentRestriction : XmlSchemaContent
  27.     {
  28.         XmlSchemaParticle particle;
  29.         XmlSchemaObjectCollection attributes = new XmlSchemaObjectCollection();
  30.         XmlSchemaAnyAttribute anyAttribute;
  31.         XmlQualifiedName baseTypeName = XmlQualifiedName.Empty;
  32.        
  33.         /// <include file='doc\XmlSchemaComplexContentRestriction.uex' path='docs/doc[@for="XmlSchemaComplexContentRestriction.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\XmlSchemaComplexContentRestriction.uex' path='docs/doc[@for="XmlSchemaComplexContentRestriction.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\XmlSchemaComplexContentRestriction.uex' path='docs/doc[@for="XmlSchemaComplexContentRestriction.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.         /// <include file='doc\XmlSchemaComplexContentRestriction.uex' path='docs/doc[@for="XmlSchemaComplexContentRestriction.AnyAttribute"]/*' />
  63.         /// <devdoc>
  64.         /// <para>[To be supplied.]</para>
  65.         /// </devdoc>
  66.         [XmlElement("anyAttribute")]
  67.         public XmlSchemaAnyAttribute AnyAttribute {
  68.             get { return anyAttribute; }
  69.             set { anyAttribute = value; }
  70.         }
  71.        
  72.         internal void SetAttributes(XmlSchemaObjectCollection newAttributes)
  73.         {
  74.             attributes = newAttributes;
  75.         }
  76.     }
  77.    
  78. }

Developer Fusion