Add System.Xml.Schema from Ajay
[mono.git] / mcs / class / System.XML / System.Xml.Schema / XmlSchemaComplexType.cs
1 // Author: Dwivedi, Ajay kumar\r
2 //            Adwiv@Yahoo.com\r
3 using System;\r
4 using System.Xml;\r
5 using System.ComponentModel;\r
6 using System.Xml.Serialization;\r
7 \r
8 namespace System.Xml.Schema\r
9 {\r
10         /// <summary>\r
11         /// Summary description for XmlSchemaComplexType.\r
12         /// </summary>\r
13         public class XmlSchemaComplexType : XmlSchemaType\r
14         {\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
27 \r
28                 public XmlSchemaComplexType()\r
29                 {\r
30                         block = XmlSchemaDerivationMethod.None;\r
31                 }\r
32 \r
33                 [XmlElement]\r
34                 public XmlSchemaAnyAttribute AnyAttribute \r
35                 {\r
36                         get{ return  anyAttribute; }\r
37                         set{ anyAttribute = value; }\r
38                 }\r
39                 [XmlElement]\r
40                 public XmlSchemaObjectCollection Attributes \r
41                 {\r
42                         get{ return attributes; }\r
43                 }\r
44                 [XmlIgnore]\r
45                 public XmlSchemaObjectTable AttributeUses \r
46                 {\r
47                         get{ return attributeUses; }\r
48                 }\r
49                 [XmlIgnore]\r
50                 public XmlSchemaAnyAttribute AttributeWildcard \r
51                 {\r
52                         get{ return attributeWildcard; }\r
53                 }\r
54                 [DefaultValue(XmlSchemaDerivationMethod.None)]\r
55                 [XmlAttribute]\r
56                 public XmlSchemaDerivationMethod Block \r
57                 {\r
58                         get{ return  block; }\r
59                         set{ block = value; }\r
60                 }\r
61                 [XmlIgnore]\r
62                 public XmlSchemaDerivationMethod BlockResolved \r
63                 {\r
64                         get{ return blockResolved; }\r
65                 }\r
66                 [XmlElement]\r
67                 public XmlSchemaContentModel ContentModel \r
68                 {\r
69                         get{ return  contentModel; } \r
70                         set{ contentModel = value; }\r
71                 }\r
72                 [XmlIgnore]\r
73                 public XmlSchemaContentType ContentType \r
74                 {\r
75                         get{ return contentType; }\r
76                 }\r
77                 [XmlIgnore]\r
78                 public XmlSchemaParticle ContentTypeParticle \r
79                 {\r
80                         get{ return contentTypeParticle; }\r
81                 }\r
82                 [DefaultValue(true)]\r
83                 [XmlAttribute]\r
84                 public bool IsAbstract \r
85                 {\r
86                         get{ return  isAbstract; }\r
87                         set{ isAbstract = value; }\r
88                 }\r
89                 [DefaultValue(true)]\r
90                 [XmlAttribute]\r
91                 public override bool IsMixed\r
92                 {\r
93                         get{ return  isMixed; }\r
94                         set{ isMixed = value; }\r
95                 }\r
96                 [XmlElement]\r
97                 public XmlSchemaParticle Particle \r
98                 {\r
99                         get{ return  particle; } \r
100                         set{ particle = value; }\r
101                 }\r
102         }\r
103 }\r