Update Reference Sources to .NET Framework 4.6.1
[mono.git] / mcs / class / referencesource / System.Xml / System / Xml / Schema / XmlSchemaRedefine.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="XmlSchemaRedefine.cs" company="Microsoft">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright> 
5 // <owner current="true" primary="true">[....]</owner>                                                                
6 //------------------------------------------------------------------------------
7
8 namespace System.Xml.Schema {
9
10     using System.Xml.Serialization;
11
12     /// <include file='doc\XmlSchemaRedefine.uex' path='docs/doc[@for="XmlSchemaRedefine"]/*' />
13     /// <devdoc>
14     ///    <para>[To be supplied.]</para>
15     /// </devdoc>
16     public class XmlSchemaRedefine : XmlSchemaExternal {
17         XmlSchemaObjectCollection items = new XmlSchemaObjectCollection();
18         XmlSchemaObjectTable attributeGroups = new XmlSchemaObjectTable();
19         XmlSchemaObjectTable types = new XmlSchemaObjectTable();
20         XmlSchemaObjectTable groups = new XmlSchemaObjectTable();
21
22         
23                 /// <include file='doc\XmlSchemaRedefine.uex' path='docs/doc[@for="XmlSchemaRedefine.XmlSchemaRedefine"]/*' />
24                 /// <devdoc>
25                 ///    <para>[To be supplied.]</para>
26                 /// </devdoc>
27         public XmlSchemaRedefine() {
28             Compositor = Compositor.Redefine;
29         }
30
31         /// <include file='doc\XmlSchemaRedefine.uex' path='docs/doc[@for="XmlSchemaRedefine.Items"]/*' />
32         /// <devdoc>
33         ///    <para>[To be supplied.]</para>
34         /// </devdoc>
35         [XmlElement("annotation", typeof(XmlSchemaAnnotation)),
36          XmlElement("attributeGroup", typeof(XmlSchemaAttributeGroup)),
37          XmlElement("complexType", typeof(XmlSchemaComplexType)),
38          XmlElement("group", typeof(XmlSchemaGroup)),
39          XmlElement("simpleType", typeof(XmlSchemaSimpleType))]
40         public XmlSchemaObjectCollection Items {
41             get { return items; }
42         }
43
44         /// <include file='doc\XmlSchemaRedefine.uex' path='docs/doc[@for="XmlSchemaRedefine.AttributeGroups"]/*' />
45         /// <devdoc>
46         ///    <para>[To be supplied.]</para>
47         /// </devdoc>
48         [XmlIgnore]
49         public XmlSchemaObjectTable AttributeGroups {
50             get { return attributeGroups; }
51         }
52
53         /// <include file='doc\XmlSchemaRedefine.uex' path='docs/doc[@for="XmlSchemaRedefine.SchemaTypes"]/*' />
54         /// <devdoc>
55         ///    <para>[To be supplied.]</para>
56         /// </devdoc>
57         [XmlIgnore]
58         public XmlSchemaObjectTable SchemaTypes {
59             get { return types; }
60         }
61
62         /// <include file='doc\XmlSchemaRedefine.uex' path='docs/doc[@for="XmlSchemaRedefine.Groups"]/*' />
63         /// <devdoc>
64         ///    <para>[To be supplied.]</para>
65         /// </devdoc>
66         [XmlIgnore]
67         public XmlSchemaObjectTable Groups {
68             get { return groups; }
69         }
70
71         internal override void AddAnnotation(XmlSchemaAnnotation annotation) {
72             items.Add(annotation);
73         }
74     }
75 }