1 // Author: Dwivedi, Ajay kumar
\r
5 using System.ComponentModel;
\r
6 using System.Xml.Serialization;
\r
8 namespace System.Xml.Schema
\r
11 /// Summary description for XmlSchemaComplexType.
\r
13 public class XmlSchemaComplexType : XmlSchemaType
\r
15 private XmlSchemaAnyAttribute anyAttribute;
\r
16 private XmlSchemaObjectCollection attributes;
\r
17 private XmlSchemaObjectTable attributeUses;
\r
18 private XmlSchemaAnyAttribute attributeWildcard;
\r
19 private XmlSchemaDerivationMethod block;
\r
20 private XmlSchemaDerivationMethod blockResolved;
\r
21 private XmlSchemaContentModel contentModel;
\r
22 private XmlSchemaContentType contentType;
\r
23 private XmlSchemaParticle contentTypeParticle;
\r
24 private bool isAbstract;
\r
25 private bool isMixed;
\r
26 private XmlSchemaParticle particle;
\r
28 public XmlSchemaComplexType()
\r
30 block = XmlSchemaDerivationMethod.None;
\r
34 public XmlSchemaAnyAttribute AnyAttribute
\r
36 get{ return anyAttribute; }
\r
37 set{ anyAttribute = value; }
\r
40 public XmlSchemaObjectCollection Attributes
\r
42 get{ return attributes; }
\r
45 public XmlSchemaObjectTable AttributeUses
\r
47 get{ return attributeUses; }
\r
50 public XmlSchemaAnyAttribute AttributeWildcard
\r
52 get{ return attributeWildcard; }
\r
54 [DefaultValue(XmlSchemaDerivationMethod.None)]
\r
56 public XmlSchemaDerivationMethod Block
\r
58 get{ return block; }
\r
59 set{ block = value; }
\r
62 public XmlSchemaDerivationMethod BlockResolved
\r
64 get{ return blockResolved; }
\r
67 public XmlSchemaContentModel ContentModel
\r
69 get{ return contentModel; }
\r
70 set{ contentModel = value; }
\r
73 public XmlSchemaContentType ContentType
\r
75 get{ return contentType; }
\r
78 public XmlSchemaParticle ContentTypeParticle
\r
80 get{ return contentTypeParticle; }
\r
82 [DefaultValue(true)]
\r
84 public bool IsAbstract
\r
86 get{ return isAbstract; }
\r
87 set{ isAbstract = value; }
\r
89 [DefaultValue(true)]
\r
91 public override bool IsMixed
\r
93 get{ return isMixed; }
\r
94 set{ isMixed = value; }
\r
97 public XmlSchemaParticle Particle
\r
99 get{ return particle; }
\r
100 set{ particle = value; }
\r