973cfbf60bf2937f5ea0a451e72f4847c30450a0
[mono.git] / mcs / class / referencesource / System.Xml / System / Xml / Schema / XmlSchemaGroupRef.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="XmlSchemaGroupRef.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\XmlSchemaGroupRef.uex' path='docs/doc[@for="XmlSchemaGroupRef"]/*' />
13     /// <devdoc>
14     ///    <para>[To be supplied.]</para>
15     /// </devdoc>
16     public class XmlSchemaGroupRef : XmlSchemaParticle {
17         XmlQualifiedName refName = XmlQualifiedName.Empty; 
18         XmlSchemaGroupBase particle;
19         XmlSchemaGroup refined;
20         
21         /// <include file='doc\XmlSchemaGroupRef.uex' path='docs/doc[@for="XmlSchemaGroupRef.RefName"]/*' />
22         /// <devdoc>
23         ///    <para>[To be supplied.]</para>
24         /// </devdoc>
25         [XmlAttribute("ref")]
26         public XmlQualifiedName RefName { 
27             get { return refName; }
28             set { refName = (value == null ? XmlQualifiedName.Empty : value); }
29         }
30
31         /// <include file='doc\XmlSchemaGroupRef.uex' path='docs/doc[@for="XmlSchemaGroupRef.Particle"]/*' />
32         /// <devdoc>
33         ///    <para>[To be supplied.]</para>
34         /// </devdoc>
35         [XmlIgnore]
36         public XmlSchemaGroupBase Particle {
37             get { return particle; }
38         }
39
40         internal void SetParticle(XmlSchemaGroupBase value) {
41              particle = value; 
42         }
43
44         [XmlIgnore]
45         internal XmlSchemaGroup Redefined {
46             get { return refined; }
47             set { refined = value; }
48         }
49     }
50 }