1 //------------------------------------------------------------------------------ 2 // <copyright file="XmlSchemaComplexContentExtension.cs" company="Microsoft"> 3 // Copyright (c) Microsoft Corporation. All rights reserved. 4 // </copyright> 5 // <owner current="true" primary="true">Microsoft</owner> 6 //------------------------------------------------------------------------------ 7 8 namespace System.Xml.Schema { 9 10 using System.Collections; 11 using System.Xml.Serialization; 12 13 /// <include file='doc\XmlSchemaComplexContentExtension.uex' path='docs/doc[@for="XmlSchemaComplexContentExtension"]/*' /> 14 /// <devdoc> 15 /// <para>[To be supplied.]</para> 16 /// </devdoc> 17 public class XmlSchemaComplexContentExtension : XmlSchemaContent { 18 XmlSchemaParticle particle; 19 XmlSchemaObjectCollection attributes = new XmlSchemaObjectCollection(); 20 XmlSchemaAnyAttribute anyAttribute; 21 XmlQualifiedName baseTypeName = XmlQualifiedName.Empty; 22 23 /// <include file='doc\XmlSchemaComplexContentExtension.uex' path='docs/doc[@for="XmlSchemaComplexContentExtension.BaseTypeName"]/*' /> 24 /// <devdoc> 25 /// <para>[To be supplied.]</para> 26 /// </devdoc> 27 [XmlAttribute("base")] 28 public XmlQualifiedName BaseTypeName { 29 get { return baseTypeName; } 30 set { baseTypeName = (value == null ? XmlQualifiedName.Empty : value); } 31 } 32 33 /// <include file='doc\XmlSchemaComplexContentExtension.uex' path='docs/doc[@for="XmlSchemaComplexContentExtension.Particle"]/*' /> 34 /// <devdoc> 35 /// <para>[To be supplied.]</para> 36 /// </devdoc> 37 [XmlElement("group", typeof(XmlSchemaGroupRef)), 38 XmlElement("choice", typeof(XmlSchemaChoice)), 39 XmlElement("all", typeof(XmlSchemaAll)), 40 XmlElement("sequence", typeof(XmlSchemaSequence))] 41 public XmlSchemaParticle Particle { 42 get { return particle; } 43 set { particle = value; } 44 } 45 46 /// <include file='doc\XmlSchemaComplexContentExtension.uex' path='docs/doc[@for="XmlSchemaComplexContentExtension.Attributes"]/*' /> 47 /// <devdoc> 48 /// <para>[To be supplied.]</para> 49 /// </devdoc> 50 [XmlElement("attribute", typeof(XmlSchemaAttribute)), 51 XmlElement("attributeGroup", typeof(XmlSchemaAttributeGroupRef))] 52 public XmlSchemaObjectCollection Attributes { 53 get { return attributes; } 54 } 55 56 57 /// <include file='doc\XmlSchemaComplexContentExtension.uex' path='docs/doc[@for="XmlSchemaComplexContentExtension.AnyAttribute"]/*' /> 58 /// <devdoc> 59 /// <para>[To be supplied.]</para> 60 /// </devdoc> 61 [XmlElement("anyAttribute")] 62 public XmlSchemaAnyAttribute AnyAttribute { 63 get { return anyAttribute; } 64 set { anyAttribute = value; } 65 } 66 SetAttributes(XmlSchemaObjectCollection newAttributes)67 internal void SetAttributes(XmlSchemaObjectCollection newAttributes) { 68 attributes = newAttributes; 69 } 70 } 71 72 } 73 74