Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlSchemaType.cs
Go to the documentation of this file.
4
5namespace System.Xml.Schema;
6
8{
9 private string _name;
10
12
14
16
18
20
22
24
26
28
29 [XmlAttribute("name")]
30 public string? Name
31 {
32 get
33 {
34 return _name;
35 }
36 set
37 {
38 _name = value;
39 }
40 }
41
42 [XmlAttribute("final")]
43 [DefaultValue(XmlSchemaDerivationMethod.None)]
45 {
46 get
47 {
48 return _final;
49 }
50 set
51 {
52 _final = value;
53 }
54 }
55
56 [XmlIgnore]
58
59 [XmlIgnore]
61
62 [XmlIgnore]
63 [Obsolete("XmlSchemaType.BaseSchemaType has been deprecated. Use the BaseXmlSchemaType property that returns a strongly typed base schema type instead.")]
64 public object? BaseSchemaType
65 {
66 get
67 {
68 if (_baseSchemaType == null)
69 {
70 return null;
71 }
72 if (_baseSchemaType.QualifiedName.Namespace == "http://www.w3.org/2001/XMLSchema")
73 {
75 }
76 return _baseSchemaType;
77 }
78 }
79
80 [XmlIgnore]
82
83 [XmlIgnore]
85
86 [XmlIgnore]
88
89 [XmlIgnore]
90 public virtual bool IsMixed
91 {
92 get
93 {
94 return false;
95 }
96 set
97 {
98 }
99 }
100
101 [XmlIgnore]
103 {
104 get
105 {
106 if (this == XmlSchemaComplexType.AnyType)
107 {
108 return XmlTypeCode.Item;
109 }
110 if (_datatype == null)
111 {
112 return XmlTypeCode.None;
113 }
114 return _datatype.TypeCode;
115 }
116 }
117
118 [XmlIgnore]
120 {
121 get
122 {
123 if (_datatype == null)
124 {
126 }
128 }
129 }
130
132
134 {
135 get
136 {
137 return _elementDecl;
138 }
139 set
140 {
142 }
143 }
144
145 [XmlIgnore]
147 {
148 get
149 {
150 return _redefined;
151 }
152 set
153 {
155 }
156 }
157
159
160 [XmlIgnore]
161 internal override string? NameAttribute
162 {
163 get
164 {
165 return Name;
166 }
167 set
168 {
169 Name = value;
170 }
171 }
172
174 {
175 if (qualifiedName == null)
176 {
177 throw new ArgumentNullException("qualifiedName");
178 }
180 }
181
186
188 {
189 if (typeCode == XmlTypeCode.Item)
190 {
192 }
193 return null;
194 }
195
197 {
198 if (qualifiedName == null)
199 {
200 throw new ArgumentNullException("qualifiedName");
201 }
202 if (qualifiedName.Equals(XmlSchemaComplexType.AnyType.QualifiedName))
203 {
205 }
206 if (qualifiedName.Equals(XmlSchemaComplexType.UntypedAnyType.QualifiedName))
207 {
209 }
210 return null;
211 }
212
213 [return: NotNullIfNotNull("schemaSet")]
226
228 {
229 _qname = value;
230 }
231
236
238 {
240 }
241
246
248 {
250 }
251
253 {
255 }
256
258 {
259 if (derivedType == null || baseType == null)
260 {
261 return false;
262 }
263 if (derivedType == baseType)
264 {
265 return true;
266 }
268 {
269 return true;
270 }
271 do
272 {
275 {
277 {
278 return true;
279 }
280 if ((except & derivedType.DerivedBy) != 0 || !xmlSchemaSimpleType.Datatype.IsDerivedFrom(xmlSchemaSimpleType2.Datatype))
281 {
282 return false;
283 }
284 return true;
285 }
286 if ((except & derivedType.DerivedBy) != 0)
287 {
288 return false;
289 }
291 if (derivedType == baseType)
292 {
293 return true;
294 }
295 }
296 while (derivedType != null);
297 return false;
298 }
299
308}
static XmlSchemaSimpleType GetSimpleTypeFromTypeCode(XmlTypeCode typeCode)
static XmlSchemaSimpleType GetSimpleTypeFromXsdType(XmlQualifiedName qname)
static XmlSchemaComplexType UntypedAnyType
static ? XmlSchemaSimpleType GetBuiltInSimpleType(XmlQualifiedName qualifiedName)
static ? XmlSchemaComplexType GetBuiltInComplexType(XmlQualifiedName qualifiedName)
XmlSchemaDerivationMethod _derivedBy
XmlSchemaDerivationMethod Final
XmlSchemaContentType _contentType
static bool IsDerivedFrom([NotNullWhen(true)] XmlSchemaType? derivedType, [NotNullWhen(true)] XmlSchemaType? baseType, XmlSchemaDerivationMethod except)
void SetDatatype(XmlSchemaDatatype value)
XmlSchemaContentType SchemaContentType
XmlSchemaDerivationMethod FinalResolved
volatile SchemaElementDecl _elementDecl
XmlSchemaDerivationMethod _final
void SetDerivedBy(XmlSchemaDerivationMethod value)
void SetBaseSchemaType(XmlSchemaType value)
static XmlSchemaSimpleType GetBuiltInSimpleType(XmlTypeCode typeCode)
static ? XmlSchemaComplexType GetBuiltInComplexType(XmlTypeCode typeCode)
void SetContentType(XmlSchemaContentType value)
XmlSchemaDerivationMethod DerivedBy
void SetFinalResolved(XmlSchemaDerivationMethod value)
virtual XmlQualifiedName DerivedFrom
static bool IsDerivedFromDatatype(XmlSchemaDatatype derivedDataType, XmlSchemaDatatype baseDataType, XmlSchemaDerivationMethod except)
XmlReader Validate(XmlReader reader, XmlResolver resolver, XmlSchemaSet schemaSet, ValidationEventHandler valEventHandler)
volatile XmlQualifiedName _qname
XmlSchemaDerivationMethod _finalResolved
void SetQualifiedName(XmlQualifiedName value)
static readonly XmlValueConverter Untyped
static readonly XmlQualifiedName Empty
TypeCode
Definition TypeCode.cs:4