68aa2a3febbd1611d01f034e796d58a53f63e91a
[mono.git] / mcs / class / referencesource / System.Xml / System / Xml / Schema / XmlSchemaImport.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="XmlSchemaImport.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.Xml.Serialization;
11
12     /// <include file='doc\XmlSchemaImport.uex' path='docs/doc[@for="XmlSchemaImport"]/*' />
13     /// <devdoc>
14     ///    <para>[To be supplied.]</para>
15     /// </devdoc>
16     public class XmlSchemaImport : XmlSchemaExternal {
17         string ns;
18         XmlSchemaAnnotation annotation;
19         
20                 /// <include file='doc\XmlSchemaImport.uex' path='docs/doc[@for="XmlSchemaImport.XmlSchemaImport"]/*' />
21         public XmlSchemaImport() {
22             Compositor = Compositor.Import;
23         }
24
25         /// <include file='doc\XmlSchemaImport.uex' path='docs/doc[@for="XmlSchemaImport.Namespace"]/*' />
26         [XmlAttribute("namespace", DataType="anyURI")]
27         public string Namespace {
28             get { return ns; }
29             set { ns = value; }
30         }
31
32         /// <include file='doc\XmlSchemaImport.uex' path='docs/doc[@for="XmlSchemaImport.Annotation"]/*' />
33         [XmlElement("annotation", typeof(XmlSchemaAnnotation))]
34         public XmlSchemaAnnotation Annotation {
35             get { return annotation; }
36             set { annotation = value; }
37         }
38
39         internal override void AddAnnotation(XmlSchemaAnnotation annotation) {
40             this.annotation = annotation;
41         }
42     }
43 }