mscorlib(4.0.0.0) API with additions
XmlSchemaGroup.cs
2 
3 namespace System.Xml.Schema
4 {
7  {
8  private string name;
9 
10  private XmlSchemaGroupBase particle;
11 
12  private XmlSchemaParticle canonicalParticle;
13 
14  private XmlQualifiedName qname = XmlQualifiedName.Empty;
15 
16  private XmlSchemaGroup redefined;
17 
18  private int selfReferenceCount;
19 
22  [XmlAttribute("name")]
23  public string Name
24  {
25  get
26  {
27  return name;
28  }
29  set
30  {
31  name = value;
32  }
33  }
34 
37  [XmlElement("choice", typeof(XmlSchemaChoice))]
38  [XmlElement("all", typeof(XmlSchemaAll))]
39  [XmlElement("sequence", typeof(XmlSchemaSequence))]
41  {
42  get
43  {
44  return particle;
45  }
46  set
47  {
48  particle = value;
49  }
50  }
51 
54  [XmlIgnore]
56  {
57  get
58  {
59  return qname;
60  }
61  }
62 
63  [XmlIgnore]
64  internal XmlSchemaParticle CanonicalParticle
65  {
66  get
67  {
68  return canonicalParticle;
69  }
70  set
71  {
72  canonicalParticle = value;
73  }
74  }
75 
76  [XmlIgnore]
77  internal XmlSchemaGroup Redefined
78  {
79  get
80  {
81  return redefined;
82  }
83  set
84  {
85  redefined = value;
86  }
87  }
88 
89  [XmlIgnore]
90  internal int SelfReferenceCount
91  {
92  get
93  {
94  return selfReferenceCount;
95  }
96  set
97  {
98  selfReferenceCount = value;
99  }
100  }
101 
102  [XmlIgnore]
103  internal override string NameAttribute
104  {
105  get
106  {
107  return Name;
108  }
109  set
110  {
111  Name = value;
112  }
113  }
114 
115  internal void SetQualifiedName(XmlQualifiedName value)
116  {
117  qname = value;
118  }
119 
120  internal override XmlSchemaObject Clone()
121  {
122  return Clone(null);
123  }
124 
125  internal XmlSchemaObject Clone(XmlSchema parentSchema)
126  {
127  XmlSchemaGroup xmlSchemaGroup = (XmlSchemaGroup)MemberwiseClone();
128  if (XmlSchemaComplexType.HasParticleRef(particle, parentSchema))
129  {
130  xmlSchemaGroup.particle = (XmlSchemaComplexType.CloneParticle(particle, parentSchema) as XmlSchemaGroupBase);
131  }
132  xmlSchemaGroup.canonicalParticle = XmlSchemaParticle.Empty;
133  return xmlSchemaGroup;
134  }
135  }
136 }
string Name
Gets or sets the name of the schema group.
Represents the sequence element (compositor) from the XML Schema as specified by the World Wide Web C...
Definition: __Canon.cs:3
Represents an attribute. Valid and default values for the attribute are defined in a document type de...
Definition: XmlAttribute.cs:7
An abstract class for T:System.Xml.Schema.XmlSchemaAll, T:System.Xml.Schema.XmlSchemaChoice,...
The base class for any element that can contain annotation elements.
XmlSchemaGroupBase Particle
Gets or sets one of the T:System.Xml.Schema.XmlSchemaChoice, T:System.Xml.Schema.XmlSchemaAll,...
XmlQualifiedName QualifiedName
Gets the qualified name of the schema group.
Represents the group element from XML Schema as specified by the World Wide Web Consortium (W3C)....
Represents an element.
Definition: XmlElement.cs:7
Represents the choice element (compositor) from the XML Schema as specified by the World Wide Web Con...
Represents the World Wide Web Consortium (W3C) all element (compositor).
Definition: XmlSchemaAll.cs:6
Represents an XML qualified name.
static readonly XmlQualifiedName Empty
Provides an empty T:System.Xml.XmlQualifiedName.
Abstract class for that is the base class for all particle types (e.g. T:System.Xml....