mscorlib(4.0.0.0) API with additions
XmlSchemaAttributeGroup.cs
2 
3 namespace System.Xml.Schema
4 {
7  {
8  private string name;
9 
10  private XmlSchemaObjectCollection attributes = new XmlSchemaObjectCollection();
11 
12  private XmlSchemaAnyAttribute anyAttribute;
13 
14  private XmlQualifiedName qname = XmlQualifiedName.Empty;
15 
16  private XmlSchemaAttributeGroup redefined;
17 
18  private XmlSchemaObjectTable attributeUses;
19 
20  private XmlSchemaAnyAttribute attributeWildcard;
21 
22  private int selfReferenceCount;
23 
26  [XmlAttribute("name")]
27  public string Name
28  {
29  get
30  {
31  return name;
32  }
33  set
34  {
35  name = value;
36  }
37  }
38 
41  [XmlElement("attribute", typeof(XmlSchemaAttribute))]
42  [XmlElement("attributeGroup", typeof(XmlSchemaAttributeGroupRef))]
44  {
45  get
46  {
47  return attributes;
48  }
49  }
50 
53  [XmlElement("anyAttribute")]
55  {
56  get
57  {
58  return anyAttribute;
59  }
60  set
61  {
62  anyAttribute = value;
63  }
64  }
65 
68  [XmlIgnore]
70  {
71  get
72  {
73  return qname;
74  }
75  }
76 
77  [XmlIgnore]
78  internal XmlSchemaObjectTable AttributeUses
79  {
80  get
81  {
82  if (attributeUses == null)
83  {
84  attributeUses = new XmlSchemaObjectTable();
85  }
86  return attributeUses;
87  }
88  }
89 
90  [XmlIgnore]
91  internal XmlSchemaAnyAttribute AttributeWildcard
92  {
93  get
94  {
95  return attributeWildcard;
96  }
97  set
98  {
99  attributeWildcard = value;
100  }
101  }
102 
105  [XmlIgnore]
106  public XmlSchemaAttributeGroup RedefinedAttributeGroup
107  {
108  get
109  {
110  return redefined;
111  }
112  }
113 
114  [XmlIgnore]
115  internal XmlSchemaAttributeGroup Redefined
116  {
117  get
118  {
119  return redefined;
120  }
121  set
122  {
123  redefined = value;
124  }
125  }
126 
127  [XmlIgnore]
128  internal int SelfReferenceCount
129  {
130  get
131  {
132  return selfReferenceCount;
133  }
134  set
135  {
136  selfReferenceCount = value;
137  }
138  }
139 
140  [XmlIgnore]
141  internal override string NameAttribute
142  {
143  get
144  {
145  return Name;
146  }
147  set
148  {
149  Name = value;
150  }
151  }
152 
153  internal void SetQualifiedName(XmlQualifiedName value)
154  {
155  qname = value;
156  }
157 
158  internal override XmlSchemaObject Clone()
159  {
160  XmlSchemaAttributeGroup xmlSchemaAttributeGroup = (XmlSchemaAttributeGroup)MemberwiseClone();
161  if (XmlSchemaComplexType.HasAttributeQNameRef(attributes))
162  {
163  xmlSchemaAttributeGroup.attributes = XmlSchemaComplexType.CloneAttributes(attributes);
164  xmlSchemaAttributeGroup.attributeUses = null;
165  }
166  return xmlSchemaAttributeGroup;
167  }
168  }
169 }
Represents the World Wide Web Consortium (W3C) anyAttribute element.
Represents the attributeGroup element from the XML Schema as specified by the World Wide Web Consorti...
A collection of T:System.Xml.Schema.XmlSchemaObjects.
Definition: __Canon.cs:3
XmlSchemaAttributeGroup RedefinedAttributeGroup
Gets the redefined attribute group property from the XML Schema.
Represents an attribute. Valid and default values for the attribute are defined in a document type de...
Definition: XmlAttribute.cs:7
The base class for any element that can contain annotation elements.
XmlSchemaObjectCollection Attributes
Gets the collection of attributes for the attribute group. Contains XmlSchemaAttribute and XmlSchemaA...
Provides the collections for contained elements in the T:System.Xml.Schema.XmlSchema class (for examp...
XmlSchemaAnyAttribute AnyAttribute
Gets or sets the T:System.Xml.Schema.XmlSchemaAnyAttribute component of the attribute group.
Represents an element.
Definition: XmlElement.cs:7
Represents an XML qualified name.
string Name
Gets or sets the name of the attribute group.
static readonly XmlQualifiedName Empty
Provides an empty T:System.Xml.XmlQualifiedName.
XmlQualifiedName QualifiedName
Gets the qualified name of the attribute group.
Represents the attribute element from the XML Schema as specified by the World Wide Web Consortium (W...
Represents the attributeGroup element with the ref attribute from the XML Schema as specified by the ...