Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / System.Xml / System / Xml / Schema / XmlSchemaDocumentation.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="XmlSchemaDocumentation.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.ComponentModel;
12     using System.Xml.Serialization;
13
14     /// <include file='doc\XmlSchemaDocumentation.uex' path='docs/doc[@for="XmlSchemaDocumentation"]/*' />
15     /// <devdoc>
16     ///    <para>[To be supplied.]</para>
17     /// </devdoc>
18     public class XmlSchemaDocumentation : XmlSchemaObject {    
19         string source;
20         string language;
21         XmlNode[] markup;
22         static XmlSchemaSimpleType languageType = DatatypeImplementation.GetSimpleTypeFromXsdType(new XmlQualifiedName("language",XmlReservedNs.NsXs));
23
24         /// <include file='doc\XmlSchemaDocumentation.uex' path='docs/doc[@for="XmlSchemaDocumentation.Source"]/*' />
25         /// <devdoc>
26         ///    <para>[To be supplied.]</para>
27         /// </devdoc>
28         [XmlAttribute("source", DataType="anyURI")]
29         public string Source {
30             get { return source; }
31             set { source = value; }
32         }
33
34         /// <include file='doc\XmlSchemaDocumentation.uex' path='docs/doc[@for="XmlSchemaDocumentation.Language"]/*' />
35         /// <devdoc>
36         ///    <para>[To be supplied.]</para>
37         /// </devdoc>
38         [XmlAttribute("xml:lang")]
39         public string Language {
40             get { return language; }
41             set { language = (string)languageType.Datatype.ParseValue(value, (XmlNameTable) null, (IXmlNamespaceResolver) null); }
42         }
43
44         /// <include file='doc\XmlSchemaDocumentation.uex' path='docs/doc[@for="XmlSchemaDocumentation.Markup"]/*' />
45         /// <devdoc>
46         ///    <para>[To be supplied.]</para>
47         /// </devdoc>
48         [XmlText(), XmlAnyElement]
49         public XmlNode[] Markup {
50             get { return markup; }
51             set { markup = value; }
52         }
53     }
54 }