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