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

◆ InitAnyAttribute()

static void System.Xml.Schema.XsdBuilder.InitAnyAttribute ( XsdBuilder builder,
string value )
inlinestaticprivate

Definition at line 1634 of file XsdBuilder.cs.

1635 {
1636 builder._xso = (builder._anyAttribute = new XmlSchemaAnyAttribute());
1637 switch (builder.ParentElement)
1638 {
1639 case SchemaNames.Token.XsdComplexType:
1640 if (builder._complexType.ContentModel != null)
1641 {
1642 builder.SendValidationEvent(System.SR.Sch_AttributeMutuallyExclusive, "anyAttribute");
1643 }
1644 if (builder._complexType.AnyAttribute != null)
1645 {
1646 builder.SendValidationEvent(System.SR.Sch_DupElement, "anyAttribute");
1647 }
1649 break;
1650 case SchemaNames.Token.XsdSimpleContentRestriction:
1651 if (builder._simpleContentRestriction.AnyAttribute != null)
1652 {
1653 builder.SendValidationEvent(System.SR.Sch_DupElement, "anyAttribute");
1654 }
1656 break;
1657 case SchemaNames.Token.XsdSimpleContentExtension:
1658 if (builder._simpleContentExtension.AnyAttribute != null)
1659 {
1660 builder.SendValidationEvent(System.SR.Sch_DupElement, "anyAttribute");
1661 }
1663 break;
1664 case SchemaNames.Token.XsdComplexContentExtension:
1665 if (builder._complexContentExtension.AnyAttribute != null)
1666 {
1667 builder.SendValidationEvent(System.SR.Sch_DupElement, "anyAttribute");
1668 }
1670 break;
1671 case SchemaNames.Token.XsdComplexContentRestriction:
1672 if (builder._complexContentRestriction.AnyAttribute != null)
1673 {
1674 builder.SendValidationEvent(System.SR.Sch_DupElement, "anyAttribute");
1675 }
1677 break;
1678 case SchemaNames.Token.xsdAttributeGroup:
1679 if (builder._attributeGroup.AnyAttribute != null)
1680 {
1681 builder.SendValidationEvent(System.SR.Sch_DupElement, "anyAttribute");
1682 }
1684 break;
1685 }
1686 }
static string Sch_AttributeMutuallyExclusive
Definition SR.cs:772
static string Sch_DupElement
Definition SR.cs:480
Definition SR.cs:7

References System.Xml.Dictionary, System.SR.Sch_AttributeMutuallyExclusive, and System.SR.Sch_DupElement.