178 references to XmlTokenizedType
netstandard (1)
netstandard.cs (1)
2505[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlTokenizedType))]
System.Private.Xml (175)
System\Xml\Dom\XmlLoader.cs (1)
665if (attdef.Datatype.TokenizedType == XmlTokenizedType.ID)
System\Xml\Schema\DataTypeImplementation.cs (25)
142internal static new DatatypeImplementation? FromXmlTokenizedType(XmlTokenizedType token) 147internal static new DatatypeImplementation? FromXmlTokenizedTypeXsd(XmlTokenizedType token) 478public override XmlTokenizedType TokenizedType { get { return XmlTokenizedType.None; } } 991public override XmlTokenizedType TokenizedType { get { return _itemType.TokenizedType; } } 1363public override XmlTokenizedType TokenizedType { get { return XmlTokenizedType.None; } } 1441public override XmlTokenizedType TokenizedType { get { return XmlTokenizedType.CDATA; } } 2678public override XmlTokenizedType TokenizedType { get { return XmlTokenizedType.QName; } } 2851public override XmlTokenizedType TokenizedType { get { return XmlTokenizedType.NMTOKEN; } } 2934public override XmlTokenizedType TokenizedType { get { return XmlTokenizedType.ID; } } 2950public override XmlTokenizedType TokenizedType { get { return XmlTokenizedType.IDREF; } } 2966public override XmlTokenizedType TokenizedType { get { return XmlTokenizedType.ENTITY; } } 3011public override XmlTokenizedType TokenizedType { get { return XmlTokenizedType.NOTATION; } } 3732public override XmlTokenizedType TokenizedType { get { return XmlTokenizedType.QName; } } 3764public override XmlTokenizedType TokenizedType { get { return XmlTokenizedType.ENUMERATION; } }
System\Xml\Schema\DtdParser.cs (34)
23CDATA = XmlTokenizedType.CDATA, // == 0 24ID = XmlTokenizedType.ID, // == 1 25IDREF = XmlTokenizedType.IDREF, // == 2 26IDREFS = XmlTokenizedType.IDREFS, // == 3 27ENTITY = XmlTokenizedType.ENTITY, // == 4 28ENTITIES = XmlTokenizedType.ENTITIES, // == 5 29NMTOKEN = XmlTokenizedType.NMTOKEN, // == 6 30NMTOKENS = XmlTokenizedType.NMTOKENS, // == 7 31NOTATION = XmlTokenizedType.NOTATION, // == 8 208Debug.Assert((int)Token.CDATA == (int)XmlTokenizedType.CDATA && (int)XmlTokenizedType.CDATA == 0); 209Debug.Assert((int)Token.ID == (int)XmlTokenizedType.ID && (int)XmlTokenizedType.ID == 1); 210Debug.Assert((int)Token.IDREF == (int)XmlTokenizedType.IDREF && (int)XmlTokenizedType.IDREF == 2); 211Debug.Assert((int)Token.IDREFS == (int)XmlTokenizedType.IDREFS && (int)XmlTokenizedType.IDREFS == 3); 212Debug.Assert((int)Token.ENTITY == (int)XmlTokenizedType.ENTITY && (int)XmlTokenizedType.ENTITY == 4); 213Debug.Assert((int)Token.ENTITIES == (int)XmlTokenizedType.ENTITIES && (int)XmlTokenizedType.ENTITIES == 5); 214Debug.Assert((int)Token.NMTOKEN == (int)XmlTokenizedType.NMTOKEN && (int)XmlTokenizedType.NMTOKEN == 6); 215Debug.Assert((int)Token.NMTOKENS == (int)XmlTokenizedType.NMTOKENS && (int)XmlTokenizedType.NMTOKENS == 7); 216Debug.Assert((int)Token.NOTATION == (int)XmlTokenizedType.NOTATION && (int)XmlTokenizedType.NOTATION == 8); 685if (attrDef.Datatype.TokenizedType != XmlTokenizedType.ENUMERATION) 725if (attrDef.TokenizedType != XmlTokenizedType.ENUMERATION) 763attrDef.TokenizedType = (XmlTokenizedType)(int)token; 774if ((idAttrDef == null || idAttrDef.Datatype.TokenizedType != XmlTokenizedType.ID) && !ignoreErrors) 843attrDef.TokenizedType = XmlTokenizedType.ENUMERATION; 904if (_validate && attrDef.Datatype.TokenizedType == XmlTokenizedType.ID && !ignoreErrors) 909if (attrDef.TokenizedType != XmlTokenizedType.CDATA)
System\Xml\Schema\DtdParserAsync.cs (7)
329if (attrDef.Datatype.TokenizedType != XmlTokenizedType.ENUMERATION) 369if (attrDef.TokenizedType != XmlTokenizedType.ENUMERATION) 407attrDef.TokenizedType = (XmlTokenizedType)(int)token; 418if ((idAttrDef == null || idAttrDef.Datatype.TokenizedType != XmlTokenizedType.ID) && !ignoreErrors) 487attrDef.TokenizedType = XmlTokenizedType.ENUMERATION; 548if (_validate && attrDef.Datatype.TokenizedType == XmlTokenizedType.ID && !ignoreErrors) 553if (attrDef.TokenizedType != XmlTokenizedType.CDATA)
System\Xml\Schema\DtdValidator.cs (14)
301XmlTokenizedType ttype, 307case XmlTokenizedType.ID: 320case XmlTokenizedType.IDREF: 331case XmlTokenizedType.ENTITY: 352if (dtype.TokenizedType != XmlTokenizedType.CDATA) 360XmlTokenizedType ttype = dtype.TokenizedType; 361if (ttype == XmlTokenizedType.ENTITY || ttype == XmlTokenizedType.ID || ttype == XmlTokenizedType.IDREF) 380if (dtype.TokenizedType == XmlTokenizedType.NOTATION) 539if (dtype.TokenizedType != XmlTokenizedType.CDATA) 578XmlTokenizedType ttype = dtype.TokenizedType; 579if (ttype == XmlTokenizedType.ENTITY) 594else if (ttype == XmlTokenizedType.ENUMERATION)
System\Xml\Schema\SchemaAttDef.cs (3)
77get { return this.TokenizedType != XmlTokenizedType.CDATA; } 151internal XmlTokenizedType TokenizedType 177if (datatype.TokenizedType == XmlTokenizedType.ENUMERATION &&
System\Xml\Schema\SchemaCollectionCompiler.cs (1)
757if (datatype != null && datatype.TokenizedType == XmlTokenizedType.ID)
System\Xml\Schema\SchemaDeclBase.cs (2)
124return (datatype.TokenizedType != XmlTokenizedType.NOTATION && datatype.TokenizedType != XmlTokenizedType.ENUMERATION) || values!.Contains(pVal.ToString()!);
System\Xml\Schema\SchemaElementDecl.cs (1)
99if (attDef.TokenizedType == XmlTokenizedType.ID)
System\Xml\Schema\XdrBuilder.cs (49)
180internal XdrAttributeEntry(SchemaNames.Token a, XmlTokenizedType ttype, XdrBuildFunction build) 187internal XdrAttributeEntry(SchemaNames.Token a, XmlTokenizedType ttype, int schemaFlags, XdrBuildFunction build) 247new XdrAttributeEntry(SchemaNames.Token.SchemaName, XmlTokenizedType.CDATA, new XdrBuildFunction(XDR_BuildRoot_Name) ), 248new XdrAttributeEntry(SchemaNames.Token.SchemaId, XmlTokenizedType.QName, new XdrBuildFunction(XDR_BuildRoot_ID) ) 253new XdrAttributeEntry(SchemaNames.Token.SchemaName, XmlTokenizedType.QName, SchemaFlagsNs, new XdrBuildFunction(XDR_BuildElementType_Name) ), 254new XdrAttributeEntry(SchemaNames.Token.SchemaContent, XmlTokenizedType.QName, new XdrBuildFunction(XDR_BuildElementType_Content) ), 255new XdrAttributeEntry(SchemaNames.Token.SchemaModel, XmlTokenizedType.QName, new XdrBuildFunction(XDR_BuildElementType_Model) ), 256new XdrAttributeEntry(SchemaNames.Token.SchemaOrder, XmlTokenizedType.QName, new XdrBuildFunction(XDR_BuildElementType_Order) ), 257new XdrAttributeEntry(SchemaNames.Token.SchemaDtType, XmlTokenizedType.CDATA, new XdrBuildFunction(XDR_BuildElementType_DtType) ), 258new XdrAttributeEntry(SchemaNames.Token.SchemaDtValues, XmlTokenizedType.NMTOKENS, new XdrBuildFunction(XDR_BuildElementType_DtValues) ), 259new XdrAttributeEntry(SchemaNames.Token.SchemaDtMaxLength, XmlTokenizedType.CDATA, new XdrBuildFunction(XDR_BuildElementType_DtMaxLength) ), 260new XdrAttributeEntry(SchemaNames.Token.SchemaDtMinLength, XmlTokenizedType.CDATA, new XdrBuildFunction(XDR_BuildElementType_DtMinLength) ) 265new XdrAttributeEntry(SchemaNames.Token.SchemaName, XmlTokenizedType.QName, new XdrBuildFunction(XDR_BuildAttributeType_Name) ), 266new XdrAttributeEntry(SchemaNames.Token.SchemaRequired, XmlTokenizedType.QName, new XdrBuildFunction(XDR_BuildAttributeType_Required) ), 267new XdrAttributeEntry(SchemaNames.Token.SchemaDefault, XmlTokenizedType.CDATA, new XdrBuildFunction(XDR_BuildAttributeType_Default) ), 268new XdrAttributeEntry(SchemaNames.Token.SchemaDtType, XmlTokenizedType.QName, new XdrBuildFunction(XDR_BuildAttributeType_DtType) ), 269new XdrAttributeEntry(SchemaNames.Token.SchemaDtValues, XmlTokenizedType.NMTOKENS, new XdrBuildFunction(XDR_BuildAttributeType_DtValues) ), 270new XdrAttributeEntry(SchemaNames.Token.SchemaDtMaxLength, XmlTokenizedType.CDATA, new XdrBuildFunction(XDR_BuildAttributeType_DtMaxLength) ), 271new XdrAttributeEntry(SchemaNames.Token.SchemaDtMinLength, XmlTokenizedType.CDATA, new XdrBuildFunction(XDR_BuildAttributeType_DtMinLength) ) 276new XdrAttributeEntry(SchemaNames.Token.SchemaType, XmlTokenizedType.QName, SchemaFlagsNs, new XdrBuildFunction(XDR_BuildElement_Type) ), 277new XdrAttributeEntry(SchemaNames.Token.SchemaMinOccurs, XmlTokenizedType.CDATA, new XdrBuildFunction(XDR_BuildElement_MinOccurs) ), 278new XdrAttributeEntry(SchemaNames.Token.SchemaMaxOccurs, XmlTokenizedType.CDATA, new XdrBuildFunction(XDR_BuildElement_MaxOccurs) ) 283new XdrAttributeEntry(SchemaNames.Token.SchemaType, XmlTokenizedType.QName, new XdrBuildFunction(XDR_BuildAttribute_Type) ), 284new XdrAttributeEntry(SchemaNames.Token.SchemaRequired, XmlTokenizedType.QName, new XdrBuildFunction(XDR_BuildAttribute_Required) ), 285new XdrAttributeEntry(SchemaNames.Token.SchemaDefault, XmlTokenizedType.CDATA, new XdrBuildFunction(XDR_BuildAttribute_Default) ) 290new XdrAttributeEntry(SchemaNames.Token.SchemaOrder, XmlTokenizedType.QName, new XdrBuildFunction(XDR_BuildGroup_Order) ), 291new XdrAttributeEntry(SchemaNames.Token.SchemaMinOccurs, XmlTokenizedType.CDATA, new XdrBuildFunction(XDR_BuildGroup_MinOccurs) ), 292new XdrAttributeEntry(SchemaNames.Token.SchemaMaxOccurs, XmlTokenizedType.CDATA, new XdrBuildFunction(XDR_BuildGroup_MaxOccurs) ) 297new XdrAttributeEntry(SchemaNames.Token.SchemaDtType, XmlTokenizedType.CDATA, new XdrBuildFunction(XDR_BuildElementType_DtType) ), 298new XdrAttributeEntry(SchemaNames.Token.SchemaDtValues, XmlTokenizedType.NMTOKENS, new XdrBuildFunction(XDR_BuildElementType_DtValues) ), 299new XdrAttributeEntry(SchemaNames.Token.SchemaDtMaxLength, XmlTokenizedType.CDATA, new XdrBuildFunction(XDR_BuildElementType_DtMaxLength) ), 300new XdrAttributeEntry(SchemaNames.Token.SchemaDtMinLength, XmlTokenizedType.CDATA, new XdrBuildFunction(XDR_BuildElementType_DtMinLength) ) 305new XdrAttributeEntry(SchemaNames.Token.SchemaDtType, XmlTokenizedType.QName, new XdrBuildFunction(XDR_BuildAttributeType_DtType) ), 306new XdrAttributeEntry(SchemaNames.Token.SchemaDtValues, XmlTokenizedType.NMTOKENS, new XdrBuildFunction(XDR_BuildAttributeType_DtValues) ), 307new XdrAttributeEntry(SchemaNames.Token.SchemaDtMaxLength, XmlTokenizedType.CDATA, new XdrBuildFunction(XDR_BuildAttributeType_DtMaxLength) ), 308new XdrAttributeEntry(SchemaNames.Token.SchemaDtMinLength, XmlTokenizedType.CDATA, new XdrBuildFunction(XDR_BuildAttributeType_DtMinLength) ) 455if (a._Datatype!.TokenizedType == XmlTokenizedType.QName) 976XmlTokenizedType ttype = ed.Datatype.TokenizedType; 977if (ttype == XmlTokenizedType.ENUMERATION && 983if (ttype != XmlTokenizedType.ENUMERATION && 1107XmlTokenizedType ttype = builder._AttributeDef._AttDef.Datatype.TokenizedType; 1109if (ttype == XmlTokenizedType.ENUMERATION && !builder._AttributeDef._EnumerationRequired) 1115if (ttype != XmlTokenizedType.ENUMERATION && builder._AttributeDef._EnumerationRequired) 1122if (builder._AttributeDef._Default != null && ttype == XmlTokenizedType.ID) 1130builder._AttributeDef._AttDef!.Datatype = XmlSchemaDatatype.FromXmlTokenizedType(XmlTokenizedType.CDATA)!; 1465XmlTokenizedType ttype = builder._AttributeDef._AttDef.Datatype.TokenizedType; 1467if (ttype == XmlTokenizedType.ENUMERATION && !builder._AttributeDef._EnumerationRequired) 1471else if (ttype != XmlTokenizedType.ENUMERATION && builder._AttributeDef._EnumerationRequired) 1767else if (dtype.TokenizedType == XmlTokenizedType.ID)
System\Xml\Schema\XdrValidator.cs (14)
410XmlTokenizedType ttype, 416case XmlTokenizedType.ID: 426case XmlTokenizedType.IDREF: 433case XmlTokenizedType.ENTITY: 471if (dtype.TokenizedType != XmlTokenizedType.CDATA) 484XmlTokenizedType ttype = dtype.TokenizedType; 485if (ttype == XmlTokenizedType.ENTITY || ttype == XmlTokenizedType.ID || ttype == XmlTokenizedType.IDREF) 519if (dtype.TokenizedType == XmlTokenizedType.NOTATION) 574if (dtype.TokenizedType != XmlTokenizedType.CDATA) 585XmlTokenizedType ttype = dtype.TokenizedType; 586if (ttype == XmlTokenizedType.ENTITY) 601else if (ttype == XmlTokenizedType.ENUMERATION)
System\Xml\Schema\XmlSchemaDataType.cs (3)
18public abstract XmlTokenizedType TokenizedType { get; } 220internal static XmlSchemaDatatype? FromXmlTokenizedType(XmlTokenizedType token) 225internal static XmlSchemaDatatype? FromXmlTokenizedTypeXsd(XmlTokenizedType token)
System\Xml\Schema\XmlSchemaValidator.cs (10)
137private static readonly XmlSchemaDatatype s_dtQName = XmlSchemaDatatype.FromXmlTokenizedTypeXsd(XmlTokenizedType.QName)!; 138private static readonly XmlSchemaDatatype s_dtCDATA = XmlSchemaDatatype.FromXmlTokenizedType(XmlTokenizedType.CDATA)!; 1887private void ProcessTokenizedType(XmlTokenizedType ttype, string name, bool attrValue) 1891case XmlTokenizedType.ID: 1910case XmlTokenizedType.IDREF: 1920case XmlTokenizedType.ENTITY: 2000XmlTokenizedType ttype = dtype.TokenizedType; 2001if (ttype == XmlTokenizedType.ENTITY || ttype == XmlTokenizedType.ID || ttype == XmlTokenizedType.IDREF)
System\Xml\Schema\XsdBuilder.cs (1)
1508XmlSchemaDatatype dt = XmlSchemaDatatype.FromXmlTokenizedTypeXsd(XmlTokenizedType.QName)!.DeriveByList(null);
System\Xml\Schema\XsdValidator.cs (10)
31private static readonly XmlSchemaDatatype s_dtCDATA = XmlSchemaDatatype.FromXmlTokenizedType(XmlTokenizedType.CDATA)!; 32private static readonly XmlSchemaDatatype s_dtQName = XmlSchemaDatatype.FromXmlTokenizedTypeXsd(XmlTokenizedType.QName)!; 655XmlTokenizedType ttype, 661case XmlTokenizedType.ID: 671case XmlTokenizedType.IDREF: 678case XmlTokenizedType.ENTITY: 704XmlTokenizedType ttype = dtype.TokenizedType; 705if (ttype == XmlTokenizedType.ENTITY || ttype == XmlTokenizedType.ID || ttype == XmlTokenizedType.IDREF)
System.Xml (1)
System.Xml.cs (1)
234[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlTokenizedType))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net10.0\System.Xml.ReaderWriter.Forwards.cs (1)
162[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlTokenizedType))]