Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ PreprocessElementContent()

void System.Xml.Schema.Preprocessor.PreprocessElementContent ( XmlSchemaElement element)
inlineprivate

Definition at line 1219 of file Preprocessor.cs.

1220 {
1221 PreprocessAnnotation(element);
1222 if (!element.RefName.IsEmpty)
1223 {
1225 }
1226 if (element.Block == XmlSchemaDerivationMethod.All)
1227 {
1228 element.SetBlockResolved(XmlSchemaDerivationMethod.All);
1229 }
1230 else if (element.Block == XmlSchemaDerivationMethod.None)
1231 {
1232 if (_blockDefault == XmlSchemaDerivationMethod.All)
1233 {
1234 element.SetBlockResolved(XmlSchemaDerivationMethod.All);
1235 }
1236 else
1237 {
1238 element.SetBlockResolved(_blockDefault & (XmlSchemaDerivationMethod.Substitution | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.Restriction));
1239 }
1240 }
1241 else
1242 {
1243 if (((uint)element.Block & 0xFFFFFFF8u) != 0)
1244 {
1246 }
1247 element.SetBlockResolved(element.Block & (XmlSchemaDerivationMethod.Substitution | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.Restriction));
1248 }
1249 if (element.SchemaType != null)
1250 {
1251 SetParent(element.SchemaType, element);
1252 if (!element.SchemaTypeName.IsEmpty)
1253 {
1255 }
1256 if (element.SchemaType is XmlSchemaComplexType)
1257 {
1258 PreprocessComplexType((XmlSchemaComplexType)element.SchemaType, local: true);
1259 }
1260 else
1261 {
1262 PreprocessSimpleType((XmlSchemaSimpleType)element.SchemaType, local: true);
1263 }
1264 }
1265 if (!element.SchemaTypeName.IsEmpty)
1266 {
1267 ValidateQNameAttribute(element, "type", element.SchemaTypeName);
1268 }
1269 if (element.DefaultValue != null && element.FixedValue != null)
1270 {
1272 }
1273 for (int i = 0; i < element.Constraints.Count; i++)
1274 {
1275 XmlSchemaIdentityConstraint xmlSchemaIdentityConstraint = (XmlSchemaIdentityConstraint)element.Constraints[i];
1278 }
1279 }
static string Sch_InvalidElementBlockValue
Definition SR.cs:510
static string Sch_DefaultFixedAttributes
Definition SR.cs:536
static string Sch_ForbiddenAttribute
Definition SR.cs:544
static string Sch_TypeMutualExclusive
Definition SR.cs:550
Definition SR.cs:7
void SendValidationEvent(string code, XmlSchemaObject source)
void PreprocessAnnotation(XmlSchemaObject schemaObject)
XmlSchemaDerivationMethod _blockDefault
void PreprocessIdentityConstraint(XmlSchemaIdentityConstraint constraint)
void SetParent(XmlSchemaObject child, XmlSchemaObject parent)
void PreprocessSimpleType(XmlSchemaSimpleType simpleType, bool local)
void ValidateQNameAttribute(XmlSchemaObject xso, string attributeName, XmlQualifiedName value)
void PreprocessComplexType(XmlSchemaComplexType complexType, bool local)

References System.Xml.Schema.Preprocessor._blockDefault, System.Xml.Schema.XmlSchemaElement.Block, System.Xml.Schema.XmlSchemaElement.Constraints, System.Collections.CollectionBase.Count, System.Xml.Schema.XmlSchemaElement.DefaultValue, System.Xml.Schema.XmlSchemaElement.FixedValue, System.Xml.XmlQualifiedName.IsEmpty, System.Xml.Schema.Preprocessor.PreprocessAnnotation(), System.Xml.Schema.Preprocessor.PreprocessComplexType(), System.Xml.Schema.Preprocessor.PreprocessIdentityConstraint(), System.Xml.Schema.Preprocessor.PreprocessSimpleType(), System.Xml.Schema.XmlSchemaElement.RefName, System.SR.Sch_DefaultFixedAttributes, System.SR.Sch_ForbiddenAttribute, System.SR.Sch_InvalidElementBlockValue, System.SR.Sch_TypeMutualExclusive, System.Xml.Schema.XmlSchemaElement.SchemaType, System.Xml.Schema.XmlSchemaElement.SchemaTypeName, System.Xml.Schema.BaseProcessor.SendValidationEvent(), System.Xml.Schema.XmlSchemaElement.SetBlockResolved(), System.Xml.Schema.Preprocessor.SetParent(), and System.Xml.Schema.Preprocessor.ValidateQNameAttribute().

Referenced by System.Xml.Schema.Preprocessor.PreprocessElement(), and System.Xml.Schema.Preprocessor.PreprocessLocalElement().