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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="XmlSchemaSimpleContentExtension.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\XmlSchemaSimpleContentExtension.uex' path='docs/doc[@for="XmlSchemaSimpleContentExtension"]/*' />
  22.     /// <devdoc>
  23.     /// <para>[To be supplied.]</para>
  24.     /// </devdoc>
  25.     public class XmlSchemaSimpleContentExtension : XmlSchemaContent
  26.     {
  27.         XmlSchemaObjectCollection attributes = new XmlSchemaObjectCollection();
  28.         XmlSchemaAnyAttribute anyAttribute;
  29.         XmlQualifiedName baseTypeName = XmlQualifiedName.Empty;
  30.        
  31.         /// <include file='doc\XmlSchemaSimpleContentExtension.uex' path='docs/doc[@for="XmlSchemaSimpleContentExtension.BaseTypeName"]/*' />
  32.         /// <devdoc>
  33.         /// <para>[To be supplied.]</para>
  34.         /// </devdoc>
  35.         [XmlAttribute("base")]
  36.         public XmlQualifiedName BaseTypeName {
  37.             get { return baseTypeName; }
  38.             set { baseTypeName = (value == null ? XmlQualifiedName.Empty : value); }
  39.         }
  40.        
  41.         /// <include file='doc\XmlSchemaSimpleContentExtension.uex' path='docs/doc[@for="XmlSchemaSimpleContentExtension.Attributes"]/*' />
  42.         /// <devdoc>
  43.         /// <para>[To be supplied.]</para>
  44.         /// </devdoc>
  45.         [XmlElement("attribute", typeof(XmlSchemaAttribute)), XmlElement("attributeGroup", typeof(XmlSchemaAttributeGroupRef))]
  46.         public XmlSchemaObjectCollection Attributes {
  47.             get { return attributes; }
  48.         }
  49.        
  50.         /// <include file='doc\XmlSchemaSimpleContentExtension.uex' path='docs/doc[@for="XmlSchemaSimpleContentExtension.AnyAttribute"]/*' />
  51.         /// <devdoc>
  52.         /// <para>[To be supplied.]</para>
  53.         /// </devdoc>
  54.         [XmlElement("anyAttribute")]
  55.         public XmlSchemaAnyAttribute AnyAttribute {
  56.             get { return anyAttribute; }
  57.             set { anyAttribute = value; }
  58.         }
  59.        
  60.         internal void SetAttributes(XmlSchemaObjectCollection newAttributes)
  61.         {
  62.             attributes = newAttributes;
  63.         }
  64.     }
  65. }

Developer Fusion