1 type derived from DatatypeImplementation
System.Private.Xml (1)
System\Xml\Schema\DataTypeImplementation.cs (1)
1348internal class Datatype_anySimpleType : DatatypeImplementation
160 references to DatatypeImplementation
System.Private.Xml (160)
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
4178XmlSchemaSimpleType xsst = DatatypeImplementation.GetSimpleTypeFromTypeCode(typeCode);
System\Xml\Schema\DataTypeImplementation.cs (94)
101private DatatypeImplementation? _baseType; 142internal static new DatatypeImplementation? FromXmlTokenizedType(XmlTokenizedType token) 147internal static new DatatypeImplementation? FromXmlTokenizedTypeXsd(XmlTokenizedType token) 152internal static new DatatypeImplementation? FromXdrName(string name) 155return i < 0 ? null : (DatatypeImplementation)s_xdrTypes[i]; 158private static DatatypeImplementation? FromTypeName(string name) 161return i < 0 ? null : (DatatypeImplementation)s_xsdTypes[i]; 230DatatypeImplementation dt = FromTypeName(qname.Name)!; 360while (currentType.BaseXmlSchemaType != DatatypeImplementation.AnySimpleType) 370DatatypeImplementation dt = (DatatypeImplementation)MemberwiseClone(); 394DatatypeImplementation dt = new Datatype_List(this, minSize); 402internal static new DatatypeImplementation DeriveByUnion(XmlSchemaSimpleType[] types, XmlSchemaType schemaType) 404DatatypeImplementation dt = new Datatype_union(types); 421for (DatatypeImplementation? dt = this; dt != null; dt = dt._baseType) 429if (((DatatypeImplementation)datatype)._baseType == null) 523protected DatatypeImplementation? Base { get { return _baseType; } } 638private static readonly DatatypeImplementation s_anySimpleType = new Datatype_anySimpleType(); 639private static readonly DatatypeImplementation s_anyURI = new Datatype_anyURI(); 640private static readonly DatatypeImplementation s_base64Binary = new Datatype_base64Binary(); 641private static readonly DatatypeImplementation s_boolean = new Datatype_boolean(); 642private static readonly DatatypeImplementation s_byte = new Datatype_byte(); 643private static readonly DatatypeImplementation s_char = new Datatype_char(); // XDR 644private static readonly DatatypeImplementation s_date = new Datatype_date(); 645private static readonly DatatypeImplementation s_dateTime = new Datatype_dateTime(); 646private static readonly DatatypeImplementation s_dateTimeNoTz = new Datatype_dateTimeNoTimeZone(); // XDR 647private static readonly DatatypeImplementation s_dateTimeTz = new Datatype_dateTimeTimeZone(); // XDR 648private static readonly DatatypeImplementation s_day = new Datatype_day(); 649private static readonly DatatypeImplementation s_decimal = new Datatype_decimal(); 650private static readonly DatatypeImplementation s_double = new Datatype_double(); 651private static readonly DatatypeImplementation s_doubleXdr = new Datatype_doubleXdr(); // XDR 652private static readonly DatatypeImplementation s_duration = new Datatype_duration(); 653private static readonly DatatypeImplementation s_ENTITY = new Datatype_ENTITY(); 654private static readonly DatatypeImplementation s_ENTITIES = (DatatypeImplementation)s_ENTITY.DeriveByList(1, null); 655private static readonly DatatypeImplementation s_ENUMERATION = new Datatype_ENUMERATION(); // XDR 656private static readonly DatatypeImplementation s_fixed = new Datatype_fixed(); 657private static readonly DatatypeImplementation s_float = new Datatype_float(); 658private static readonly DatatypeImplementation s_floatXdr = new Datatype_floatXdr(); // XDR 659private static readonly DatatypeImplementation s_hexBinary = new Datatype_hexBinary(); 660private static readonly DatatypeImplementation s_ID = new Datatype_ID(); 661private static readonly DatatypeImplementation s_IDREF = new Datatype_IDREF(); 662private static readonly DatatypeImplementation s_IDREFS = (DatatypeImplementation)s_IDREF.DeriveByList(1, null); 663private static readonly DatatypeImplementation s_int = new Datatype_int(); 664private static readonly DatatypeImplementation s_integer = new Datatype_integer(); 665private static readonly DatatypeImplementation s_language = new Datatype_language(); 666private static readonly DatatypeImplementation s_long = new Datatype_long(); 667private static readonly DatatypeImplementation s_month = new Datatype_month(); 668private static readonly DatatypeImplementation s_monthDay = new Datatype_monthDay(); 669private static readonly DatatypeImplementation s_name = new Datatype_Name(); 670private static readonly DatatypeImplementation s_NCName = new Datatype_NCName(); 671private static readonly DatatypeImplementation s_negativeInteger = new Datatype_negativeInteger(); 672private static readonly DatatypeImplementation s_NMTOKEN = new Datatype_NMTOKEN(); 673private static readonly DatatypeImplementation s_NMTOKENS = (DatatypeImplementation)s_NMTOKEN.DeriveByList(1, null); 674private static readonly DatatypeImplementation s_nonNegativeInteger = new Datatype_nonNegativeInteger(); 675private static readonly DatatypeImplementation s_nonPositiveInteger = new Datatype_nonPositiveInteger(); 676private static readonly DatatypeImplementation s_normalizedString = new Datatype_normalizedString(); 677private static readonly DatatypeImplementation s_NOTATION = new Datatype_NOTATION(); 678private static readonly DatatypeImplementation s_positiveInteger = new Datatype_positiveInteger(); 679private static readonly DatatypeImplementation s_QName = new Datatype_QName(); 680private static readonly DatatypeImplementation s_QNameXdr = new Datatype_QNameXdr(); //XDR 681private static readonly DatatypeImplementation s_short = new Datatype_short(); 682private static readonly DatatypeImplementation s_string = new Datatype_string(); 683private static readonly DatatypeImplementation s_time = new Datatype_time(); 684private static readonly DatatypeImplementation s_timeNoTz = new Datatype_timeNoTimeZone(); // XDR 685private static readonly DatatypeImplementation s_timeTz = new Datatype_timeTimeZone(); // XDR 686private static readonly DatatypeImplementation s_token = new Datatype_token(); 687private static readonly DatatypeImplementation s_unsignedByte = new Datatype_unsignedByte(); 688private static readonly DatatypeImplementation s_unsignedInt = new Datatype_unsignedInt(); 689private static readonly DatatypeImplementation s_unsignedLong = new Datatype_unsignedLong(); 690private static readonly DatatypeImplementation s_unsignedShort = new Datatype_unsignedShort(); 691private static readonly DatatypeImplementation s_uuid = new Datatype_uuid(); // XDR 692private static readonly DatatypeImplementation s_year = new Datatype_year(); 693private static readonly DatatypeImplementation s_yearMonth = new Datatype_yearMonth(); 696internal static readonly DatatypeImplementation c_normalizedStringV1Compat = new Datatype_normalizedStringV1Compat(); 697internal static readonly DatatypeImplementation c_tokenV1Compat = new Datatype_tokenV1Compat(); 700private static readonly DatatypeImplementation s_anyAtomicType = new Datatype_anyAtomicType(); 701private static readonly DatatypeImplementation s_dayTimeDuration = new Datatype_dayTimeDuration(); 702private static readonly DatatypeImplementation s_untypedAtomicType = new Datatype_untypedAtomicType(); 703private static readonly DatatypeImplementation s_yearMonthDuration = new Datatype_yearMonthDuration(); 709private readonly DatatypeImplementation _type; 712internal SchemaDatatypeMap(string name, DatatypeImplementation type) 718internal SchemaDatatypeMap(string name, DatatypeImplementation type, int parentIndex) 724public static explicit operator DatatypeImplementation(SchemaDatatypeMap sdm) { return sdm._type; } 745private static readonly DatatypeImplementation?[] s_tokenizedTypes = { 761private static readonly DatatypeImplementation?[] s_tokenizedTypesXsd = { 897private readonly DatatypeImplementation _itemType; 934} while (simpleType != null && simpleType != DatatypeImplementation.AnySimpleType); 938listItemType ??= DatatypeImplementation.GetSimpleTypeFromTypeCode(schemaType!.Datatype!.TypeCode); 942internal Datatype_List(DatatypeImplementation type, int minListSize) 1012internal DatatypeImplementation ItemType { get { return _itemType; } } 1226internal bool IsUnionBaseOf(DatatypeImplementation derivedType)
System\Xml\Schema\FacetChecker.cs (6)
22private readonly DatatypeImplementation _datatype; 38public FacetsCompiler(DatatypeImplementation baseDatatype, RestrictionFacets restriction) 48_nonNegativeInt = DatatypeImplementation.GetSimpleTypeFromTypeCode(XmlTypeCode.NonNegativeInteger).Datatype!; 50_builtInType = (int)_builtInEnum > 0 ? DatatypeImplementation.GetSimpleTypeFromTypeCode(_builtInEnum).Datatype! : _datatype; 303XmlSchemaDatatype positiveInt = DatatypeImplementation.GetSimpleTypeFromTypeCode(XmlTypeCode.PositiveInteger).Datatype!; 891internal virtual RestrictionFacets ConstructRestriction(DatatypeImplementation datatype, XmlSchemaObjectCollection facets, XmlNameTable nameTable)
System\Xml\Schema\Preprocessor.cs (1)
541XmlSchemaDatatype tokenDt = DatatypeImplementation.GetSimpleTypeFromTypeCode(XmlTypeCode.Token).Datatype!;
System\Xml\Schema\SchemaCollectionCompiler.cs (14)
197_schema!.SchemaTypes.Insert(DatatypeImplementation.QnAnyType, XmlSchemaComplexType.AnyType); 276_schema.SchemaTypes.Remove(DatatypeImplementation.QnAnyType); //For backward compatibility 535simpleType.SetBaseSchemaType(DatatypeImplementation.AnySimpleType); 579if (restriction.BaseTypeName.Equals(DatatypeImplementation.QnAnySimpleType)) 605simpleType.SetBaseSchemaType(DatatypeImplementation.AnySimpleType); 617simpleType.SetDatatype(DatatypeImplementation.AnySimpleType.Datatype); 918complexType.SetDatatype(DatatypeImplementation.AnySimpleType.Datatype); 2060decl.SchemaType = DatatypeImplementation.AnySimpleType; 2061decl.Datatype = DatatypeImplementation.AnySimpleType.Datatype!; 2062xa.SetAttributeType(DatatypeImplementation.AnySimpleType); 2628type = DatatypeImplementation.GetSimpleTypeFromXsdType(name); 2634type = DatatypeImplementation.GetNormalizedStringTypeV1Compat(); 2638type = DatatypeImplementation.GetTokenTypeV1Compat(); 2673XmlSchemaSimpleType? simpleType = DatatypeImplementation.GetSimpleTypeFromXsdType(name);
System\Xml\Schema\SchemaElementDecl.cs (1)
55anyTypeElementDecl.Datatype = DatatypeImplementation.AnySimpleType.Datatype!;
System\Xml\Schema\SchemaSetCompiler.cs (15)
129XmlSchemaSimpleType[] schemaSimpleTypes = DatatypeImplementation.GetBuiltInTypes(); 191_schemaTypes.Insert(DatatypeImplementation.QnAnyType, XmlSchemaComplexType.AnyType); 194_schemaForSchema.SchemaTypes.Replace(DatatypeImplementation.QnAnyType, XmlSchemaComplexType.AnyType); 314if (complexType!.QualifiedName == DatatypeImplementation.QnAnyType) 619simpleType.SetBaseSchemaType(DatatypeImplementation.AnySimpleType); 665if (restriction.BaseTypeName.Equals(DatatypeImplementation.QnAnySimpleType)) 694simpleType.SetBaseSchemaType(DatatypeImplementation.AnySimpleType); 707simpleType.SetDatatype(DatatypeImplementation.AnySimpleType.Datatype); 1001complexType.SetDatatype(DatatypeImplementation.AnySimpleType.Datatype); 2493decl.SchemaType = DatatypeImplementation.AnySimpleType; 2494decl.Datatype = DatatypeImplementation.AnySimpleType.Datatype!; 2495xa.SetAttributeType(DatatypeImplementation.AnySimpleType); 2772decl.DefaultValueTyped = DatatypeImplementation.AnySimpleType.Datatype!.ParseValue(decl.DefaultValueRaw, NameTable, new SchemaNamespaceManager(xe)); 3030type = DatatypeImplementation.GetSimpleTypeFromXsdType(name); 3063XmlSchemaSimpleType? simpleType = DatatypeImplementation.GetSimpleTypeFromXsdType(name);
System\Xml\Schema\XmlSchemaComplexType.cs (1)
57localAnyType.SetQualifiedName(DatatypeImplementation.QnAnyType);
System\Xml\Schema\XmlSchemaDataType.cs (4)
222return DatatypeImplementation.FromXmlTokenizedType(token); 227return DatatypeImplementation.FromXmlTokenizedTypeXsd(token); 232return DatatypeImplementation.FromXdrName(name); 237return DatatypeImplementation.DeriveByUnion(types, schemaType);
System\Xml\Schema\XmlSchemaDocumentation.cs (1)
16private static readonly XmlSchemaSimpleType s_languageType = DatatypeImplementation.GetSimpleTypeFromXsdType(new XmlQualifiedName("language", XmlReservedNs.NsXs))!;
System\Xml\Schema\XmlSchemaSet.cs (4)
634if (_schemaForSchema == null && tns == XmlReservedNs.NsXs && schema.SchemaTypes[DatatypeImplementation.QnAnyType] != null) 650if (_schemaForSchema == null && tns == XmlReservedNs.NsXs && schema.SchemaTypes[DatatypeImplementation.QnAnyType] != null) 927if (_schemaForSchema == null && tns == XmlReservedNs.NsXs && schema.SchemaTypes[DatatypeImplementation.QnAnyType] != null) 943if (_schemaForSchema == null && tns == XmlReservedNs.NsXs && schema.SchemaTypes[DatatypeImplementation.QnAnyType] != null)
System\Xml\Schema\XmlSchemaType.cs (4)
36return DatatypeImplementation.GetSimpleTypeFromXsdType(qualifiedName); 44return DatatypeImplementation.GetSimpleTypeFromTypeCode(typeCode); 300if (bt == DatatypeImplementation.AnySimpleType) 332if (DatatypeImplementation.AnySimpleType.Datatype == baseDataType)
System\Xml\Schema\XmlSchemaValidator.cs (1)
1694XmlSchemaType? schemaType = DatatypeImplementation.GetSimpleTypeFromXsdType(xsiTypeName);
System\Xml\Schema\XmlValueConverter.cs (1)
2007private XmlUntypedConverter() : base(DatatypeImplementation.UntypedAtomicType)
System\Xml\Schema\XsdValidator.cs (1)
402XmlSchemaSimpleType? simpleType = DatatypeImplementation.GetSimpleTypeFromXsdType(new XmlQualifiedName(xsiType.Name, _nsXs));
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (1)
807return XmlQueryTypeFactory.Type(nav.NodeType, XmlQualifiedNameTest.New(nav.LocalName, nav.NamespaceURI), DatatypeImplementation.UntypedAtomicType, false);
System\Xml\Xsl\XmlQueryType.cs (1)
620if (isXQ || (SchemaType != XmlSchemaComplexType.AnyType && SchemaType != DatatypeImplementation.AnySimpleType))
System\Xml\Xsl\XmlQueryTypeFactory.cs (9)
48if (schemaType == DatatypeImplementation.AnySimpleType) 388s_builtInItemTypes[i] = new ItemType(typeCode, XmlQualifiedNameTest.Wildcard, DatatypeImplementation.AnySimpleType, false, false, true); 393s_builtInItemTypes[i] = new ItemType(typeCode, XmlQualifiedNameTest.Wildcard, DatatypeImplementation.AnyAtomicType, false, false, true); 399s_builtInItemTypes[i] = new ItemType(typeCode, XmlQualifiedNameTest.Wildcard, DatatypeImplementation.UntypedAtomicType, false, true, true); 413UntypedAttribute = new ItemType(XmlTypeCode.Attribute, XmlQualifiedNameTest.Wildcard, DatatypeImplementation.UntypedAtomicType, false, false, true); 484if (contentType == DatatypeImplementation.AnySimpleType) 488if (contentType == DatatypeImplementation.UntypedAtomicType) 767_schemaType = DatatypeImplementation.AnySimpleType; 779_schemaType = DatatypeImplementation.AnyAtomicType;