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

◆ AddParticle()

void System.Xml.Schema.XsdBuilder.AddParticle ( XmlSchemaParticle particle)
inlineprivate

Definition at line 2040 of file XsdBuilder.cs.

2041 {
2042 switch (ParentElement)
2043 {
2044 case SchemaNames.Token.XsdComplexType:
2046 {
2048 }
2049 _complexType.Particle = particle;
2050 break;
2051 case SchemaNames.Token.XsdComplexContentExtension:
2053 {
2054 SendValidationEvent(System.SR.Sch_ComplexContentContentModel, "ComplexContentExtension");
2055 }
2057 break;
2058 case SchemaNames.Token.XsdComplexContentRestriction:
2060 {
2061 SendValidationEvent(System.SR.Sch_ComplexContentContentModel, "ComplexContentExtension");
2062 }
2064 break;
2065 case SchemaNames.Token.XsdGroup:
2066 if (_group.Particle != null)
2067 {
2069 }
2070 _group.Particle = (XmlSchemaGroupBase)particle;
2071 break;
2072 case SchemaNames.Token.XsdChoice:
2073 case SchemaNames.Token.XsdSequence:
2074 ((XmlSchemaGroupBase)ParentContainer).Items.Add(particle);
2075 break;
2076 }
2077 }
static string Sch_ComplexTypeContentModel
Definition SR.cs:776
static string Sch_ComplexContentContentModel
Definition SR.cs:778
static string Sch_DupGroupParticle
Definition SR.cs:482
Definition SR.cs:7
void SendValidationEvent(string code, string arg0, string arg1, string arg2)
XmlSchemaObject ParentContainer
XmlSchemaComplexContentExtension _complexContentExtension
XmlSchemaComplexType _complexType
XmlSchemaComplexContentRestriction _complexContentRestriction
SchemaNames.Token ParentElement

References System.Xml.Schema.XsdBuilder._complexContentExtension, System.Xml.Schema.XsdBuilder._complexContentRestriction, System.Xml.Schema.XsdBuilder._complexType, System.Xml.Schema.XsdBuilder._group, System.Xml.Schema.XmlSchemaComplexContentExtension.AnyAttribute, System.Xml.Schema.XmlSchemaComplexContentRestriction.AnyAttribute, System.Xml.Schema.XmlSchemaComplexType.AnyAttribute, System.Xml.Schema.XmlSchemaComplexContentExtension.Attributes, System.Xml.Schema.XmlSchemaComplexContentRestriction.Attributes, System.Xml.Schema.XmlSchemaComplexType.Attributes, System.Xml.Schema.XmlSchemaComplexType.ContentModel, System.Collections.CollectionBase.Count, System.Xml.Dictionary, System.Xml.Schema.XsdBuilder.ParentContainer, System.Xml.Schema.XsdBuilder.ParentElement, System.Xml.Schema.XmlSchemaComplexContentExtension.Particle, System.Xml.Schema.XmlSchemaComplexContentRestriction.Particle, System.Xml.Schema.XmlSchemaComplexType.Particle, System.Xml.Schema.XmlSchemaGroup.Particle, System.SR.Sch_ComplexContentContentModel, System.SR.Sch_ComplexTypeContentModel, System.SR.Sch_DupGroupParticle, and System.Xml.Schema.XsdBuilder.SendValidationEvent().