2002-03-27 Duncan Mak <duncan@ximian.com>
[mono.git] / mcs / class / System.XML / System.Xml.Schema / XmlSchemaComplexContentRestriction.cs
1 // Author: Dwivedi, Ajay kumar\r
2 //            Adwiv@Yahoo.com\r
3 using System;\r
4 using System.Xml;\r
5 using System.Xml.Serialization;\r
6 \r
7 namespace System.Xml.Schema\r
8 {\r
9         /// <summary>\r
10         /// Summary description for XmlSchemaComplexContentRestriction.\r
11         /// </summary>\r
12         public class XmlSchemaComplexContentRestriction : XmlSchemaContent\r
13         {\r
14                 private XmlSchemaAnyAttribute any;\r
15                 private XmlSchemaObjectCollection attributes;\r
16                 private XmlQualifiedName baseTypeName;\r
17                 private XmlSchemaParticle particle;\r
18 \r
19                 public XmlSchemaComplexContentRestriction()\r
20                 {\r
21                         baseTypeName = XmlQualifiedName.Empty;\r
22                         attributes       = new XmlSchemaObjectCollection();\r
23                 }\r
24 \r
25                 [System.Xml.Serialization.XmlAttribute("base")]\r
26                 public XmlQualifiedName BaseTypeName \r
27                 {\r
28                         get{ return  baseTypeName; }\r
29                         set{ baseTypeName = value; }\r
30                 }\r
31 \r
32                 [XmlElement("anyAttribute",Namespace="http://www.w3.org/2001/XMLSchema")]\r
33                 public XmlSchemaAnyAttribute AnyAttribute \r
34                 {\r
35                         get{ return  any; }\r
36                         set{ any = value; }\r
37                 }\r
38 \r
39                 [XmlElement("attribute",typeof(XmlSchemaAttribute),Namespace="http://www.w3.org/2001/XMLSchema")]\r
40                 [XmlElement("attributeGroup",typeof(XmlSchemaAttributeGroupRef),Namespace="http://www.w3.org/2001/XMLSchema")]\r
41                 public XmlSchemaObjectCollection Attributes \r
42                 {\r
43                         get{ return attributes; }\r
44                 }\r
45 \r
46                 [XmlElement("group",typeof(XmlSchemaGroupRef),Namespace="http://www.w3.org/2001/XMLSchema")]\r
47                 [XmlElement("all",typeof(XmlSchemaAll),Namespace="http://www.w3.org/2001/XMLSchema")]\r
48                 [XmlElement("choice",typeof(XmlSchemaChoice),Namespace="http://www.w3.org/2001/XMLSchema")]\r
49                 [XmlElement("sequence",typeof(XmlSchemaSequence),Namespace="http://www.w3.org/2001/XMLSchema")]\r
50                 public XmlSchemaParticle Particle \r
51                 {\r
52                         get{ return  particle; }\r
53                         set{ particle = value; }\r
54                 }\r
55         }\r
56 }\r