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

◆ PreprocessElementContent()

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

Definition at line 968 of file SchemaCollectionPreprocessor.cs.

969 {
970 PreprocessAnnotation(element);
971 if (!element.RefName.IsEmpty)
972 {
974 }
975 if (element.Block == XmlSchemaDerivationMethod.All)
976 {
977 element.SetBlockResolved(XmlSchemaDerivationMethod.All);
978 }
979 else if (element.Block == XmlSchemaDerivationMethod.None)
980 {
981 if (_blockDefault == XmlSchemaDerivationMethod.All)
982 {
983 element.SetBlockResolved(XmlSchemaDerivationMethod.All);
984 }
985 else
986 {
987 element.SetBlockResolved(_blockDefault & (XmlSchemaDerivationMethod.Substitution | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.Restriction));
988 }
989 }
990 else
991 {
992 if (((uint)element.Block & 0xFFFFFFF8u) != 0)
993 {
995 }
996 element.SetBlockResolved(element.Block & (XmlSchemaDerivationMethod.Substitution | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.Restriction));
997 }
998 if (element.SchemaType != null)
999 {
1000 SetParent(element.SchemaType, element);
1001 if (!element.SchemaTypeName.IsEmpty)
1002 {
1004 }
1005 if (element.SchemaType is XmlSchemaComplexType)
1006 {
1007 PreprocessComplexType((XmlSchemaComplexType)element.SchemaType, local: true);
1008 }
1009 else
1010 {
1011 PreprocessSimpleType((XmlSchemaSimpleType)element.SchemaType, local: true);
1012 }
1013 }
1014 if (!element.SchemaTypeName.IsEmpty)
1015 {
1016 ValidateQNameAttribute(element, "type", element.SchemaTypeName);
1017 }
1018 if (element.DefaultValue != null && element.FixedValue != null)
1019 {
1021 }
1022 for (int i = 0; i < element.Constraints.Count; i++)
1023 {
1024 SetParent(element.Constraints[i], element);
1025 PreprocessIdentityConstraint((XmlSchemaIdentityConstraint)element.Constraints[i]);
1026 }
1027 }
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 SetParent(XmlSchemaObject child, XmlSchemaObject parent)
void PreprocessIdentityConstraint(XmlSchemaIdentityConstraint constraint)
void PreprocessSimpleType(XmlSchemaSimpleType simpleType, bool local)
void PreprocessComplexType(XmlSchemaComplexType complexType, bool local)
void ValidateQNameAttribute(XmlSchemaObject xso, string attributeName, XmlQualifiedName value)

References System.Xml.Schema.SchemaCollectionPreprocessor._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.SchemaCollectionPreprocessor.PreprocessAnnotation(), System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessComplexType(), System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessIdentityConstraint(), System.Xml.Schema.SchemaCollectionPreprocessor.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.SchemaCollectionPreprocessor.SetParent(), and System.Xml.Schema.SchemaCollectionPreprocessor.ValidateQNameAttribute().

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