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

◆ ProcessTokenizedType()

void System.Xml.Schema.XmlSchemaValidator.ProcessTokenizedType ( XmlTokenizedType ttype,
string name,
bool attrValue )
inlineprivate

Definition at line 1790 of file XmlSchemaValidator.cs.

1791 {
1792 switch (ttype)
1793 {
1794 case XmlTokenizedType.ID:
1796 {
1797 break;
1798 }
1799 if (FindId(name) != null)
1800 {
1801 if (attrValue)
1802 {
1803 _attrValid = false;
1804 }
1806 }
1807 else
1808 {
1809 if (_IDs == null)
1810 {
1811 _IDs = new Hashtable();
1812 }
1813 _IDs.Add(name, _context.LocalName);
1814 }
1815 break;
1816 case XmlTokenizedType.IDREF:
1818 {
1819 object obj = FindId(name);
1820 if (obj == null)
1821 {
1823 }
1824 }
1825 break;
1826 case XmlTokenizedType.ENTITY:
1827 ProcessEntity(name);
1828 break;
1829 case XmlTokenizedType.IDREFS:
1830 break;
1831 }
1832 }
virtual void Add(object key, object? value)
Definition Hashtable.cs:676
static string Sch_DupId
Definition SR.cs:410
Definition SR.cs:7

References System.Xml.Schema.XmlSchemaValidator._attrValid, System.Xml.Schema.XmlSchemaValidator._context, System.Xml.Schema.XmlSchemaValidator._idRefListHead, System.Xml.Schema.XmlSchemaValidator._IDs, System.Xml.Schema.XmlSchemaValidator._positionInfo, System.Collections.Hashtable.Add(), System.Xml.Schema.XmlSchemaValidator.FindId(), System.Xml.IXmlLineInfo.LineNumber, System.Xml.IXmlLineInfo.LinePosition, System.Xml.Schema.ValidationState.LocalName, System.obj, System.Xml.Schema.XmlSchemaValidator.ProcessEntity(), System.Xml.Schema.XmlSchemaValidator.ProcessIdentityConstraints, System.SR.Sch_DupId, and System.Xml.Schema.XmlSchemaValidator.SendValidationEvent().

Referenced by System.Xml.Schema.XmlSchemaValidator.CheckTokenizedTypes().