Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlSchemaElement.cs
Go to the documentation of this file.
4
5namespace System.Xml.Schema;
6
8{
9 private bool _isAbstract;
10
12
13 private bool _isNillable;
14
16
18
20
22
24
25 private string _defaultValue;
26
27 private string _fixedValue;
28
29 private string _name;
30
32
34
36
38
40
42
44
46
48
50
51 [XmlAttribute("abstract")]
52 [DefaultValue(false)]
53 public bool IsAbstract
54 {
55 get
56 {
57 return _isAbstract;
58 }
59 set
60 {
63 }
64 }
65
66 [XmlAttribute("block")]
69 {
70 get
71 {
72 return _block;
73 }
74 set
75 {
76 _block = value;
77 }
78 }
79
80 [XmlAttribute("default")]
81 [DefaultValue(null)]
82 public string? DefaultValue
83 {
84 get
85 {
86 return _defaultValue;
87 }
88 set
89 {
91 }
92 }
93
94 [XmlAttribute("final")]
97 {
98 get
99 {
100 return _final;
101 }
102 set
103 {
104 _final = value;
105 }
106 }
107
108 [XmlAttribute("fixed")]
109 [DefaultValue(null)]
110 public string? FixedValue
111 {
112 get
113 {
114 return _fixedValue;
115 }
116 set
117 {
119 }
120 }
121
122 [XmlAttribute("form")]
125 {
126 get
127 {
128 return _form;
129 }
130 set
131 {
132 _form = value;
133 }
134 }
135
136 [XmlAttribute("name")]
137 [DefaultValue("")]
138 public string? Name
139 {
140 get
141 {
142 return _name;
143 }
144 set
145 {
146 _name = value;
147 }
148 }
149
150 [XmlAttribute("nillable")]
151 [DefaultValue(false)]
152 public bool IsNillable
153 {
154 get
155 {
156 return _isNillable;
157 }
158 set
159 {
162 }
163 }
164
165 [XmlIgnore]
167
168 [XmlIgnore]
170
171 [XmlAttribute("ref")]
173 {
174 get
175 {
176 return _refName;
177 }
179 set
180 {
181 _refName = ((value == null) ? XmlQualifiedName.Empty : value);
182 }
183 }
184
185 [XmlAttribute("substitutionGroup")]
187 {
188 get
189 {
190 return _substitutionGroup;
191 }
193 set
194 {
196 }
197 }
198
199 [XmlAttribute("type")]
201 {
202 get
203 {
204 return _typeName;
205 }
207 set
208 {
209 _typeName = ((value == null) ? XmlQualifiedName.Empty : value);
210 }
211 }
212
213 [XmlElement("complexType", typeof(XmlSchemaComplexType))]
214 [XmlElement("simpleType", typeof(XmlSchemaSimpleType))]
216 {
217 get
218 {
219 return _type;
220 }
221 set
222 {
223 _type = value;
224 }
225 }
226
228 [XmlElement("keyref", typeof(XmlSchemaKeyref))]
229 [XmlElement("unique", typeof(XmlSchemaUnique))]
231 {
232 get
233 {
234 if (_constraints == null)
235 {
237 }
238 return _constraints;
239 }
240 }
241
242 [XmlIgnore]
244
245 [XmlIgnore]
246 [Obsolete("XmlSchemaElement.ElementType has been deprecated. Use the ElementSchemaType property that returns a strongly typed element type instead.")]
247 public object? ElementType
248 {
249 get
250 {
251 if (_elementType == null)
252 {
253 return null;
254 }
255 if (_elementType.QualifiedName.Namespace == "http://www.w3.org/2001/XMLSchema")
256 {
257 return _elementType.Datatype;
258 }
259 return _elementType;
260 }
261 }
262
263 [XmlIgnore]
265
266 [XmlIgnore]
268
269 [XmlIgnore]
271
272 [XmlIgnore]
273 internal bool HasDefault
274 {
275 get
276 {
277 if (_defaultValue != null)
278 {
279 return _defaultValue.Length > 0;
280 }
281 return false;
282 }
283 }
284
285 internal bool HasConstraints
286 {
287 get
288 {
289 if (_constraints != null)
290 {
291 return _constraints.Count > 0;
292 }
293 return false;
294 }
295 }
296
298 {
299 get
300 {
302 }
303 set
304 {
306 }
307 }
308
310 {
311 get
312 {
313 return _elementDecl;
314 }
315 set
316 {
318 }
319 }
320
321 [XmlIgnore]
322 internal override string? NameAttribute
323 {
324 get
325 {
326 return Name;
327 }
328 set
329 {
330 Name = value;
331 }
332 }
333
334 [XmlIgnore]
335 internal override string NameString => _qualifiedName.ToString();
336
337 [return: NotNullIfNotNull("schemaSet")]
350
352 {
354 }
355
357 {
359 }
360
365
370
371 internal override XmlSchemaObject Clone()
372 {
373 return Clone(null);
374 }
375
390}
void SetElementType(XmlSchemaType value)
XmlSchemaDerivationMethod _final
override XmlSchemaObject Clone()
XmlSchemaDerivationMethod _block
XmlSchemaDerivationMethod Final
void SetBlockResolved(XmlSchemaDerivationMethod value)
XmlSchemaDerivationMethod Block
XmlSchemaObjectCollection Constraints
XmlSchemaDerivationMethod _blockResolved
XmlSchemaDerivationMethod BlockResolved
void SetFinalResolved(XmlSchemaDerivationMethod value)
XmlSchemaObjectCollection _constraints
XmlSchemaDerivationMethod FinalResolved
XmlReader Validate(XmlReader reader, XmlResolver resolver, XmlSchemaSet schemaSet, ValidationEventHandler valEventHandler)
XmlSchemaObject Clone(XmlSchema parentSchema)
XmlSchemaDerivationMethod _finalResolved
void SetQualifiedName(XmlQualifiedName value)
static readonly XmlQualifiedName Empty