1 //------------------------------------------------------------------------------
2 // <copyright file="XmlSchemaComplexContentExtension.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
5 // <owner current="true" primary="true">Microsoft</owner>
6 //------------------------------------------------------------------------------
8 namespace System
.Xml
.Schema
{
10 using System
.Collections
;
11 using System
.Xml
.Serialization
;
13 /// <include file='doc\XmlSchemaComplexContentExtension.uex' path='docs/doc[@for="XmlSchemaComplexContentExtension"]/*' />
15 /// <para>[To be supplied.]</para>
17 public class XmlSchemaComplexContentExtension
: XmlSchemaContent
{
18 XmlSchemaParticle particle
;
19 XmlSchemaObjectCollection attributes
= new XmlSchemaObjectCollection();
20 XmlSchemaAnyAttribute anyAttribute
;
21 XmlQualifiedName baseTypeName
= XmlQualifiedName
.Empty
;
23 /// <include file='doc\XmlSchemaComplexContentExtension.uex' path='docs/doc[@for="XmlSchemaComplexContentExtension.BaseTypeName"]/*' />
25 /// <para>[To be supplied.]</para>
27 [XmlAttribute("base")]
28 public XmlQualifiedName BaseTypeName
{
29 get { return baseTypeName; }
30 set { baseTypeName = (value == null ? XmlQualifiedName.Empty : value); }
33 /// <include file='doc\XmlSchemaComplexContentExtension.uex' path='docs/doc[@for="XmlSchemaComplexContentExtension.Particle"]/*' />
35 /// <para>[To be supplied.]</para>
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; }
46 /// <include file='doc\XmlSchemaComplexContentExtension.uex' path='docs/doc[@for="XmlSchemaComplexContentExtension.Attributes"]/*' />
48 /// <para>[To be supplied.]</para>
50 [XmlElement("attribute", typeof(XmlSchemaAttribute
)),
51 XmlElement("attributeGroup", typeof(XmlSchemaAttributeGroupRef
))]
52 public XmlSchemaObjectCollection Attributes
{
53 get { return attributes; }
57 /// <include file='doc\XmlSchemaComplexContentExtension.uex' path='docs/doc[@for="XmlSchemaComplexContentExtension.AnyAttribute"]/*' />
59 /// <para>[To be supplied.]</para>
61 [XmlElement("anyAttribute")]
62 public XmlSchemaAnyAttribute AnyAttribute
{
63 get { return anyAttribute; }
64 set { anyAttribute = value; }
67 internal void SetAttributes(XmlSchemaObjectCollection newAttributes
) {
68 attributes
= newAttributes
;