Update Reference Sources to .NET Framework 4.6.1
[mono.git] / mcs / class / referencesource / System.Xml / System / Xml / Schema / XmlSchemaExternal.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="XmlSchemaExternal.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.Collections;
11     using System.ComponentModel;
12     using System.Xml.Serialization;
13
14     /// <include file='doc\XmlSchemaExternal.uex' path='docs/doc[@for="XmlSchemaExternal"]/*' />
15     public abstract class XmlSchemaExternal : XmlSchemaObject {
16         string location;
17         Uri    baseUri;
18         XmlSchema schema; 
19         string id;
20         XmlAttribute[] moreAttributes;
21         Compositor compositor;
22
23         /// <include file='doc\XmlSchemaExternal.uex' path='docs/doc[@for="XmlSchemaExternal.SchemaLocation"]/*' />
24         [XmlAttribute("schemaLocation", DataType="anyURI")]
25         public string SchemaLocation {
26             get { return location; }
27             set { location = value; }
28         }
29
30         /// <include file='doc\XmlSchemaExternal.uex' path='docs/doc[@for="XmlSchemaExternal.Schema"]/*' />
31         [XmlIgnore]
32         public XmlSchema Schema {
33             get { return schema; }
34             set { schema = value; }
35         }
36
37         /// <include file='doc\XmlSchemaExternal.uex' path='docs/doc[@for="XmlSchemaExternal.Id"]/*' />
38         [XmlAttribute("id", DataType="ID")]
39         public string Id {
40             get { return id; }
41             set { id = value; }
42         }
43
44         /// <include file='doc\XmlSchemaExternal.uex' path='docs/doc[@for="XmlSchemaExternal.UnhandledAttributes"]/*' />
45         [XmlAnyAttribute]
46         public XmlAttribute[] UnhandledAttributes {
47             get { return moreAttributes; }
48             set { moreAttributes = value; }
49         }
50
51         [XmlIgnore]
52         internal Uri BaseUri {
53             get { return baseUri; }
54             set { baseUri = value; }
55         }
56
57         [XmlIgnore]
58         internal override string IdAttribute {
59             get { return Id; }
60             set { Id = value; }
61         }
62
63         internal override void SetUnhandledAttributes(XmlAttribute[] moreAttributes) {
64             this.moreAttributes = moreAttributes;
65         }
66
67         internal Compositor Compositor {
68             get {
69                 return compositor;
70             }
71             set {
72                 compositor = value;
73             }
74         }
75     }
76 }