2002-03-27 Duncan Mak <duncan@ximian.com>
[mono.git] / mcs / class / System.XML / System.Xml.Schema / XmlSchemaAnnotated.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 XmlSchemaAnnotated.\r
11         /// </summary>\r
12         // Include all childrens of this class\r
13 //      [XmlInclude(typeof(XmlSchemaAnyAttribute)),\r
14 //      XmlInclude(typeof(XmlSchemaAttribute)),\r
15 //      XmlInclude(typeof(XmlSchemaAttributeGroup)),\r
16 //      XmlInclude(typeof(XmlSchemaAttributeGroupRef)),\r
17 //      XmlInclude(typeof(XmlSchemaContent)),\r
18 //      XmlInclude(typeof(XmlSchemaContentModel)),\r
19 //      XmlInclude(typeof(XmlSchemaFacet)),\r
20 //      XmlInclude(typeof(XmlSchemaGroup)),\r
21 //      XmlInclude(typeof(XmlSchemaIdentityConstraint)),\r
22 //      XmlInclude(typeof(XmlSchemaNotation)),\r
23 //      XmlInclude(typeof(XmlSchemaParticle)),\r
24 //      XmlInclude(typeof(XmlSchemaSimpleTypeContent)),\r
25 //      XmlInclude(typeof(XmlSchemaType)),\r
26 //      XmlInclude(typeof(XmlSchemaXPath))]\r
27         public class XmlSchemaAnnotated : XmlSchemaObject\r
28         {\r
29                 private XmlSchemaAnnotation annotation;\r
30                 private string id;\r
31                 private XmlAttribute[] unhandledAttributes;\r
32 \r
33                 public XmlSchemaAnnotated()\r
34                 {}\r
35                 \r
36                 [XmlElement("annotation",Namespace="http://www.w3.org/2001/XMLSchema")]\r
37                 public XmlSchemaAnnotation Annotation \r
38                 { \r
39                         get{ return  annotation; } \r
40                         set{ annotation = value; } \r
41                 }\r
42                 \r
43                 [System.Xml.Serialization.XmlAttribute("id")]\r
44                 public string Id \r
45                 { \r
46                         get{ return  id; } \r
47                         set{ id = value; } \r
48                 }\r
49                 \r
50                 [XmlAnyAttribute]\r
51                 public XmlAttribute[] UnhandledAttributes \r
52                 { \r
53                         get{ return unhandledAttributes; } \r
54                         set{ unhandledAttributes = value; } \r
55                 }\r
56         }\r
57 }\r