e4c1d46e3fd7b13107576cbe7fbc29900e777457
[mono.git] / mcs / class / referencesource / System.Xml / System / Xml / Schema / XmlSchemaSimpleTypeList.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="XmlSchemaSimpleTypeList.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\XmlSchemaSimpleTypeList.uex' path='docs/doc[@for="XmlSchemaSimpleTypeList"]/*' />
13     /// <devdoc>
14     ///    <para>[To be supplied.]</para>
15     /// </devdoc>
16     public class XmlSchemaSimpleTypeList : XmlSchemaSimpleTypeContent {
17         XmlQualifiedName itemTypeName = XmlQualifiedName.Empty; 
18         XmlSchemaSimpleType itemType;
19         XmlSchemaSimpleType baseItemType; //Compiled
20         
21         /// <include file='doc\XmlSchemaSimpleTypeList.uex' path='docs/doc[@for="XmlSchemaSimpleTypeList.ItemTypeName"]/*' />
22         /// <devdoc>
23         ///    <para>[To be supplied.]</para>
24         /// </devdoc>
25         [XmlAttribute("itemType")]
26         public XmlQualifiedName ItemTypeName { 
27             get { return itemTypeName; }
28             set { itemTypeName = (value == null ? XmlQualifiedName.Empty : value); }
29         }
30
31         /// <include file='doc\XmlSchemaSimpleTypeList.uex' path='docs/doc[@for="XmlSchemaSimpleTypeList.BaseType"]/*' />
32         /// <devdoc>
33         ///    <para>[To be supplied.]</para>
34         /// </devdoc>
35         [XmlElement("simpleType", typeof(XmlSchemaSimpleType))]
36         public XmlSchemaSimpleType ItemType {
37             get { return itemType; }
38             set { itemType = value; }
39         }
40         
41         //Compiled
42         /// <include file='doc\XmlSchemaSimpleTypeList.uex' path='docs/doc[@for="XmlSchemaSimpleTypeList.BaseItemType"]/*' />
43         [XmlIgnore]
44         public XmlSchemaSimpleType BaseItemType {
45             get { return baseItemType; }
46             set { baseItemType = value; }
47         }
48
49         internal override XmlSchemaObject Clone() {
50             XmlSchemaSimpleTypeList newList = (XmlSchemaSimpleTypeList)MemberwiseClone();
51             newList.ItemTypeName = itemTypeName.Clone();
52             return newList;
53         }
54     }
55
56 }