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

◆ AddAttribute()

void System.Xml.Schema.XsdBuilder.AddAttribute ( XmlSchemaObject value)
inlineprivate

Definition at line 1987 of file XsdBuilder.cs.

1988 {
1989 switch (ParentElement)
1990 {
1991 case SchemaNames.Token.XsdComplexType:
1992 if (_complexType.ContentModel != null)
1993 {
1995 }
1996 if (_complexType.AnyAttribute != null)
1997 {
1999 }
2001 break;
2002 case SchemaNames.Token.XsdSimpleContentRestriction:
2004 {
2006 }
2008 break;
2009 case SchemaNames.Token.XsdSimpleContentExtension:
2011 {
2013 }
2015 break;
2016 case SchemaNames.Token.XsdComplexContentExtension:
2018 {
2020 }
2022 break;
2023 case SchemaNames.Token.XsdComplexContentRestriction:
2025 {
2027 }
2029 break;
2030 case SchemaNames.Token.xsdAttributeGroup:
2031 if (_attributeGroup.AnyAttribute != null)
2032 {
2034 }
2036 break;
2037 }
2038 }
static string Sch_AttributeMutuallyExclusive
Definition SR.cs:772
static string Sch_AnyAttributeLastChild
Definition SR.cs:774
Definition SR.cs:7
XmlSchemaSimpleContentExtension _simpleContentExtension
void SendValidationEvent(string code, string arg0, string arg1, string arg2)
XmlSchemaComplexContentExtension _complexContentExtension
XmlSchemaAttributeGroup _attributeGroup
XmlSchemaSimpleContentRestriction _simpleContentRestriction
XmlSchemaComplexType _complexType
XmlSchemaComplexContentRestriction _complexContentRestriction
SchemaNames.Token ParentElement

References System.Xml.Schema.XsdBuilder._attributeGroup, System.Xml.Schema.XsdBuilder._complexContentExtension, System.Xml.Schema.XsdBuilder._complexContentRestriction, System.Xml.Schema.XsdBuilder._complexType, System.Xml.Schema.XsdBuilder._simpleContentExtension, System.Xml.Schema.XsdBuilder._simpleContentRestriction, System.Xml.Schema.XmlSchemaObjectCollection.Add(), System.Xml.Schema.XmlSchemaAttributeGroup.AnyAttribute, System.Xml.Schema.XmlSchemaComplexContentExtension.AnyAttribute, System.Xml.Schema.XmlSchemaComplexContentRestriction.AnyAttribute, System.Xml.Schema.XmlSchemaComplexType.AnyAttribute, System.Xml.Schema.XmlSchemaSimpleContentExtension.AnyAttribute, System.Xml.Schema.XmlSchemaSimpleContentRestriction.AnyAttribute, System.Xml.Schema.XmlSchemaAttributeGroup.Attributes, System.Xml.Schema.XmlSchemaComplexContentExtension.Attributes, System.Xml.Schema.XmlSchemaComplexContentRestriction.Attributes, System.Xml.Schema.XmlSchemaComplexType.Attributes, System.Xml.Schema.XmlSchemaSimpleContentExtension.Attributes, System.Xml.Schema.XmlSchemaSimpleContentRestriction.Attributes, System.Xml.Schema.XmlSchemaComplexType.ContentModel, System.Xml.Schema.XsdBuilder.ParentElement, System.SR.Sch_AnyAttributeLastChild, System.SR.Sch_AttributeMutuallyExclusive, System.Xml.Schema.XsdBuilder.SendValidationEvent(), and System.value.