Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / System.Xml / System / Xml / Schema / XmlSchemaAnnotation.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="XmlSchemaAnnotation.cs" company="Microsoft">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright> 
5 // <owner current="true" primary="true">Microsoft</owner>                                                               
6 //------------------------------------------------------------------------------
7
8 namespace System.Xml.Schema {
9
10     using System.Collections;
11     using System.Xml.Serialization;
12
13     /// <include file='doc\XmlSchemaAnnotation.uex' path='docs/doc[@for="XmlSchemaAnnotation"]/*' />
14     /// <devdoc>
15     ///    <para>[To be supplied.]</para>
16     /// </devdoc>
17     public class XmlSchemaAnnotation : XmlSchemaObject {
18         string id;
19         XmlSchemaObjectCollection items = new XmlSchemaObjectCollection();
20         XmlAttribute[] moreAttributes;
21
22         /// <include file='doc\XmlSchemaAnnotation.uex' path='docs/doc[@for="XmlSchemaAnnotation.Id"]/*' />
23         /// <devdoc>
24         ///    <para>[To be supplied.]</para>
25         /// </devdoc>
26         [XmlAttribute("id", DataType = "ID")]
27         public string Id {
28             get { return id; }
29             set { id = value; }
30         }
31
32         /// <include file='doc\XmlSchemaAnnotation.uex' path='docs/doc[@for="XmlSchemaAnnotation.Items"]/*' />
33         /// <devdoc>
34         ///    <para>[To be supplied.]</para>
35         /// </devdoc>
36         [XmlElement("documentation", typeof(XmlSchemaDocumentation)),
37          XmlElement("appinfo", typeof(XmlSchemaAppInfo))]
38         public XmlSchemaObjectCollection Items {
39             get { return items; }
40         }
41
42         /// <include file='doc\XmlSchemaAnnotation.uex' path='docs/doc[@for="XmlSchemaAnnotation.UnhandledAttributes"]/*' />
43         /// <devdoc>
44         ///    <para>[To be supplied.]</para>
45         /// </devdoc>
46         [XmlAnyAttribute]
47         public XmlAttribute[] UnhandledAttributes {
48             get { return moreAttributes; }
49             set { moreAttributes = value; }
50         }
51
52         [XmlIgnore]
53         internal override string IdAttribute {
54             get { return Id; }
55             set { Id = value; }
56         }
57
58         internal override void SetUnhandledAttributes(XmlAttribute[] moreAttributes) {
59             this.moreAttributes = moreAttributes;
60         }
61     }
62 }