2 types derived from XmlSchemaType
System.Xml (2)
System\Xml\Schema\XmlSchemaComplexType.cs (1)
18
public class XmlSchemaComplexType :
XmlSchemaType
{
System\Xml\Schema\XmlSchemaSimpleType.cs (1)
17
public class XmlSchemaSimpleType :
XmlSchemaType
{
1 instantiation of XmlSchemaType
System.Xml (1)
System\Xml\Serialization\XmlSchemaImporter.cs (1)
361
mapping = ImportMembersType(new
XmlSchemaType
(), ns, identifier);
454 references to XmlSchemaType
System.Data (9)
fx\src\data\System\Data\DataSet.cs (3)
3502
XmlSchemaType
type = (
XmlSchemaType
)schema.SchemaTypes[new XmlQualifiedName(name, schemaNamespace)];
3509
public override string ImportSchemaType(
XmlSchemaType
type, XmlSchemaObject context, XmlSchemas schemas, XmlSchemaImporter importer, CodeCompileUnit compileUnit, CodeNamespace mainNamespace, CodeGenerationOptions options, CodeDomProvider codeProvider) {
fx\src\data\System\Data\SQLTypes\SqlTypesSchemaImporter.cs (2)
88
public override string ImportSchemaType(
XmlSchemaType
type,
98
XmlSchemaType
basetype = ((XmlSchemaSimpleType) type).BaseXmlSchemaType;
fx\src\data\System\Data\XMLSchema.cs (4)
185
if (item is
XmlSchemaType
) {
188
MSDATATargetNamespace = XSDSchema.GetMsdataAttribute((
XmlSchemaType
)item, Keywords.TARGETNAMESPACE);
191
XmlSchemaType
type = (
XmlSchemaType
)item;
System.Data.SqlXml (28)
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (4)
603
value = new XmlQueryItemSequence(new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.Boolean), value));
607
value = new XmlQueryItemSequence(new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.Double), ((IConvertible) value).ToDouble(null)));
612
value = new XmlQueryItemSequence(new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.String), XsltConvert.ToString((DateTime) value)));
614
value = new XmlQueryItemSequence(new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.String), value));
System\Xml\Xsl\Runtime\XsltFunctions.cs (5)
190
case "version" : return new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.Double), 1.0);
191
case "vendor" : return new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.String), "Microsoft");
192
case "vendor-url": return new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.String), "http://www.microsoft.com");
196
return new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.String), typeof(XsltLibrary).Assembly.ImageRuntimeVersion);
199
return new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.String), string.Empty);
System\Xml\Xsl\XmlQueryType.cs (8)
75
public abstract
XmlSchemaType
SchemaType { get; }
348
XmlSchemaType
schemaType;
487
XmlSchemaType
baseSchemaType = baseType.SchemaType;
495
XmlSchemaType
builtInType =
XmlSchemaType
.GetBuiltInSimpleType(baseType.TypeCode);
512
(baseSchemaType == XmlSchemaComplexType.AnyType ||
XmlSchemaType
.IsDerivedFrom(SchemaType, baseSchemaType, /* except:*/XmlSchemaDerivationMethod.Empty)) &&
532
if (!
XmlSchemaType
.IsDerivedFrom(this.SchemaType, other.SchemaType, /* except:*/XmlSchemaDerivationMethod.Empty) &&
533
!
XmlSchemaType
.IsDerivedFrom(other.SchemaType, this.SchemaType, /* except:*/XmlSchemaDerivationMethod.Empty)) {
System\Xml\Xsl\XmlQueryTypeFactory.cs (11)
330
private
XmlSchemaType
schemaType;
393
XmlSchemaType
builtInType =
XmlSchemaType
.GetBuiltInSimpleType(typeCode);
427
if (schemaType ==
XmlSchemaType
.GetBuiltInSimpleType(code)) {
439
public static XmlQueryType Create(XmlTypeCode code, XmlQualifiedNameTest nameTest,
XmlSchemaType
contentType, bool isNillable) {
483
private ItemType(XmlTypeCode code, XmlQualifiedNameTest nameTest,
XmlSchemaType
schemaType, bool isNillable, bool isStrict, bool isNotRtf) {
567
public override
XmlSchemaType
SchemaType {
672
private
XmlSchemaType
schemaType;
816
public override
XmlSchemaType
SchemaType {
1005
public override
XmlSchemaType
SchemaType {
1097
public static XmlQueryType Type(XPathNodeType kind, XmlQualifiedNameTest nameTest,
XmlSchemaType
contentType, bool isNillable) {
System.Runtime.Serialization (45)
System\Runtime\Serialization\DataContract.cs (1)
1515
XmlSchemaType
xsdType;
System\Runtime\Serialization\Globals.cs (1)
648
typeOfXmlSchemaType = typeof(
XmlSchemaType
);
System\Runtime\Serialization\SchemaExporter.cs (10)
502
XmlSchemaType
xsdType;
526
XmlSchemaType
anonymousType = xsdType;
568
else if (item is
XmlSchemaType
)
571
qname = new XmlQualifiedName(((
XmlSchemaType
)item).Name, schema.TargetNamespace);
597
internal static void GetXmlTypeInfo(Type type, out XmlQualifiedName stableName, out
XmlSchemaType
xsdType, out bool hasRoot)
608
static bool InvokeSchemaProviderMethod(Type clrType, XmlSchemaSet schemas, out XmlQualifiedName stableName, out
XmlSchemaType
xsdType, out bool hasRoot)
639
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.InvalidReturnTypeOnGetSchemaMethod, DataContract.GetClrTypeFullName(clrType), methodName, DataContract.GetClrTypeFullName(getMethod.ReturnType), DataContract.GetClrTypeFullName(Globals.TypeOfXmlQualifiedName), typeof(
XmlSchemaType
))));
657
XmlSchemaType
providerXsdType = typeInfo as
XmlSchemaType
;
749
internal static bool IsSpecialXmlType(Type type, out XmlQualifiedName typeName, out
XmlSchemaType
xsdType, out bool hasRoot)
System\Runtime\Serialization\SchemaHelper.cs (8)
16
internal
XmlSchemaType
type;
19
internal List<
XmlSchemaType
> knownTypes;
21
internal SchemaObjectInfo(
XmlSchemaType
type, XmlSchemaElement element, XmlSchema schema, List<
XmlSchemaType
> knownTypes)
41
internal static
XmlSchemaType
GetSchemaType(XmlSchemaSet schemas, XmlQualifiedName typeQName, out XmlSchema outSchema)
53
XmlSchemaType
schemaType = schemaObj as
XmlSchemaType
;
64
internal static
XmlSchemaType
GetSchemaType(SchemaObjectDictionary schemaInfo, XmlQualifiedName typeName)
System\Runtime\Serialization\SchemaImporter.cs (20)
88
ImportType((
XmlSchemaType
)typeObj);
178
List<
XmlSchemaType
> knownTypes = schemaObjectInfo.knownTypes;
181
foreach (
XmlSchemaType
knownType in knownTypes)
222
List<
XmlSchemaType
> knownTypes = schemaObjectInfo.knownTypes;
226
foreach (
XmlSchemaType
knownType in knownTypes)
246
List<
XmlSchemaType
> knownTypesForObject = new List<
XmlSchemaType
>();
255
XmlSchemaType
schemaType = schemaObj as
XmlSchemaType
;
280
baseTypeInfo.knownTypes = new List<
XmlSchemaType
>();
285
baseTypeInfo = new SchemaObjectInfo(null, null, null, new List<
XmlSchemaType
>());
315
XmlQualifiedName GetBaseTypeName(
XmlSchemaType
type)
395
XmlSchemaType
type = SchemaHelper.GetSchemaType(SchemaObjects, typeName);
405
DataContract ImportType(
XmlSchemaType
type)
411
DataContract ImportType(
XmlSchemaType
type, XmlQualifiedName typeName, bool isAnonymous)
705
DataContract ImportXmlDataType(XmlQualifiedName typeName,
XmlSchemaType
xsdType, bool isAnonymous)
748
private XmlDataContract ImportSpecialXmlDataType(
XmlSchemaType
xsdType, bool isAnonymous)
1244
void ImportDataContractExtension(
XmlSchemaType
type, DataContract dataContract)
1272
void ImportGenericInfo(
XmlSchemaType
type, DataContract dataContract)
1296
GenericInfo ImportGenericInfo(XmlElement typeElement,
XmlSchemaType
type)
System\Runtime\Serialization\XmlDataContract.cs (4)
59
internal
XmlSchemaType
XsdType
186
XmlSchemaType
xsdType;
201
XmlSchemaType
xsdType;
260
internal
XmlSchemaType
XsdType
System\Runtime\Serialization\XsdDataContractExporter.cs (1)
201
public
XmlSchemaType
GetSchemaType(Type type)
System.ServiceModel (19)
System\ServiceModel\Description\MessageContractExporter.cs (8)
199
contentRestriction.BaseTypeName =
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.Base64Binary).QualifiedName;
227
XmlSchemaType
xsdType;
256
protected XmlQualifiedName ExportType(Type type, string partName, string operationName, out
XmlSchemaType
xsdType)
351
protected void ExportGlobalElement(string elementName, string elementNs, bool isNillable, XmlQualifiedName typeName,
XmlSchemaType
xsdType, XmlSchemaSet schemaSet)
368
void ExportLocalElement(string wrapperNs, string elementName, string elementNs, XmlQualifiedName typeName,
XmlSchemaType
xsdType, bool multiple, bool isOptional, bool isNillable, XmlSchemaSequence sequence, XmlSchemaSet schemaSet)
558
protected void ExportMessagePart(WsdlNS.Message message, MessagePartDescription part, XmlQualifiedName typeName,
XmlSchemaType
xsdType, bool isOptional, bool isNillable, bool skipSchemaExport, bool generateElement, string wrapperNs, XmlSchemaSequence wrapperSequence, XmlSchemaSet schemaSet)
946
XmlSchemaType
xsdType;
974
XmlSchemaType
xsdType;
System\ServiceModel\Description\MessageContractImporter.cs (7)
819
static
XmlSchemaType
FindSchemaType(XmlSchemaSet schemaSet, XmlQualifiedName typeName)
827
static
XmlSchemaType
FindSchemaType(XmlSchemaSet schemaSet, XmlQualifiedName typeName, out XmlSchema containingSchema)
833
XmlSchemaType
type = null;
836
type = (
XmlSchemaType
)schema.SchemaTypes[typeName];
936
XmlSchemaType
type = FindSchemaType(allSchemas, element.SchemaTypeName);
946
XmlSchemaType
type = FindSchemaType(allSchemas, part.Type);
1263
XmlSchemaType
schemaType = null;
System\ServiceModel\Description\SchemaHelper.cs (3)
57
static internal void AddTypeToSchema(
XmlSchemaType
type, XmlSchema schema, XmlSchemaSet schemaSet)
59
XmlSchemaType
existingType = (
XmlSchemaType
)schema.SchemaTypes[new XmlQualifiedName(type.Name, schema.TargetNamespace)];
System\ServiceModel\Dispatcher\XPathMessageFilter.cs (1)
124
public static
XmlSchemaType
StaticGetSchema(XmlSchemaSet schemas)
System.Web.Extensions (3)
Compilation\WCFModel\SchemaMerger.cs (1)
44
new SchemaTopLevelItemType(typeof(
XmlSchemaType
), "type"),
Script\Services\WebServiceTypeData.cs (2)
211
XmlSchemaType
schemaType = schemaObj as
XmlSchemaType
;
System.Web.Services (11)
System\Web\Services\Description\SchemaCompiler.cs (5)
108
else if (o is
XmlSchemaType
) {
109
item = Res.GetString(Res.XmlSchemaNamedItem, ns, o.GetType() == typeof(XmlSchemaSimpleType) ? "simpleType" : "complexType", ((
XmlSchemaType
)o).Name, details);
147
if (item.Parent is
XmlSchemaType
) {
148
XmlSchemaType
type = (
XmlSchemaType
)item.Parent;
System\Web\Services\Description\ServiceDescriptionImporter.cs (6)
450
XmlSchemaType
type = (
XmlSchemaType
)allSchemas.Find(element.SchemaTypeName, typeof(
XmlSchemaType
));
458
XmlSchemaType
type = (
XmlSchemaType
)allSchemas.Find(part.Type, typeof(
XmlSchemaType
));
System.Xml (334)
System\Xml\Core\XmlAsyncCheckReader.cs (1)
902
XmlSchemaType
IXmlSchemaInfo.SchemaType {
System\Xml\Core\XmlValidatingReaderImpl.cs (3)
714
XmlSchemaType
schemaTypeObj = coreReaderImpl.InternalSchemaType as
XmlSchemaType
;
804
XmlSchemaDatatype dtype = ( SchemaType is XmlSchemaDatatype ) ? (XmlSchemaDatatype)SchemaType : ((
XmlSchemaType
)SchemaType).Datatype;
System\Xml\Core\XmlValidatingReaderImplAsync.cs (1)
172
XmlSchemaDatatype dtype = ( SchemaType is XmlSchemaDatatype ) ? (XmlSchemaDatatype)SchemaType : ((
XmlSchemaType
)SchemaType).Datatype;
System\Xml\Core\XsdValidatingReader.cs (26)
387
XmlSchemaType
xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType;
412
XmlSchemaType
xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType;
437
XmlSchemaType
xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType;
462
XmlSchemaType
xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType;
487
XmlSchemaType
xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType;
512
XmlSchemaType
xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType;
537
XmlSchemaType
xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType;
562
XmlSchemaType
xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType;
590
XmlSchemaType
xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; //
619
XmlSchemaType
xmlType;
629
XmlSchemaType
xmlType;
656
XmlSchemaType
xmlType;
683
XmlSchemaType
xmlType;
710
XmlSchemaType
xmlType;
737
XmlSchemaType
xmlType;
764
XmlSchemaType
xmlType;
791
XmlSchemaType
xmlType;
818
XmlSchemaType
xmlType;
845
XmlSchemaType
xmlType;
1428
XmlSchemaType
IXmlSchemaInfo.SchemaType {
1528
private
XmlSchemaType
ElementXmlType {
1534
private
XmlSchemaType
AttributeXmlType {
1906
private object InternalReadElementContentAsObject(out
XmlSchemaType
xmlType) {
1912
private object InternalReadElementContentAsObject(out
XmlSchemaType
xmlType, bool unwrapTypedValue) {
1919
private object InternalReadElementContentAsObject(out
XmlSchemaType
xmlType, bool unwrapTypedValue, out string originalString) {
2131
private object ReturnBoxedValue(object typedValue,
XmlSchemaType
xmlType, bool unWrap) {
System\Xml\Core\XsdValidatingReaderAsync.cs (12)
41
XmlSchemaType
xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType;
72
XmlSchemaType
xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; //
112
XmlSchemaType
xmlType;
142
XmlSchemaType
xmlType;
624
private Task< Tuple<
XmlSchemaType
, object> > InternalReadElementContentAsObjectAsync() {
630
private async Task< Tuple<
XmlSchemaType
, object> > InternalReadElementContentAsObjectAsync(bool unwrapTypedValue) {
634
return new Tuple<
XmlSchemaType
, object>(tuple_13.Item1, tuple_13.Item3);
638
private async Task< Tuple<
XmlSchemaType
, string, object> > InternalReadElementContentAsObjectTupleAsync(bool unwrapTypedValue) {
639
Tuple<
XmlSchemaType
, string, object> tuple;
640
XmlSchemaType
xmlType;
658
tuple = new Tuple<
XmlSchemaType
, string, object>(xmlType, originalString, typedValue);
700
tuple = new Tuple<
XmlSchemaType
, string, object>(xmlType, originalString, typedValue);
System\Xml\Dom\XmlName.cs (3)
121
public virtual
XmlSchemaType
SchemaType {
162
XmlSchemaType
schemaType;
208
public override
XmlSchemaType
SchemaType {
System\Xml\Schema\BaseProcessor.cs (4)
168
XmlSchemaType
schemaType = item as
XmlSchemaType
;
169
XmlSchemaType
existingType = existingObject as
XmlSchemaType
;
System\Xml\Schema\DataTypeImplementation.cs (28)
98
private
XmlSchemaType
parentSchemaType;
336
internal override XmlSchemaDatatype DeriveByRestriction(XmlSchemaObjectCollection facets, XmlNameTable nameTable,
XmlSchemaType
schemaType) {
345
internal override XmlSchemaDatatype DeriveByList(
XmlSchemaType
schemaType) {
349
internal XmlSchemaDatatype DeriveByList(int minSize,
XmlSchemaType
schemaType) {
364
internal new static DatatypeImplementation DeriveByUnion(XmlSchemaSimpleType[] types,
XmlSchemaType
schemaType) {
420
internal virtual XmlValueConverter CreateValueConverter(
XmlSchemaType
schemaType) { return null; }
553
XmlSchemaType
simpleType = this.parentSchemaType;
830
internal override XmlValueConverter CreateValueConverter(
XmlSchemaType
schemaType) {
831
XmlSchemaType
listItemType = null;
886
XmlSchemaType
xmlType1;
1048
internal override XmlValueConverter CreateValueConverter(
XmlSchemaType
schemaType) {
1063
XmlSchemaType
schemaType1 = simpleValue1.XmlType;
1064
XmlSchemaType
schemaType2 = simpleValue2.XmlType;
1204
internal override XmlValueConverter CreateValueConverter(
XmlSchemaType
schemaType) {
1234
internal override XmlValueConverter CreateValueConverter(
XmlSchemaType
schemaType) {
1244
internal override XmlValueConverter CreateValueConverter(
XmlSchemaType
schemaType) {
1278
internal override XmlValueConverter CreateValueConverter(
XmlSchemaType
schemaType) {
1344
internal override XmlValueConverter CreateValueConverter(
XmlSchemaType
schemaType) {
1418
internal override XmlValueConverter CreateValueConverter(
XmlSchemaType
schemaType) {
1501
internal override XmlValueConverter CreateValueConverter(
XmlSchemaType
schemaType) {
1587
internal override XmlValueConverter CreateValueConverter(
XmlSchemaType
schemaType) {
1673
internal override XmlValueConverter CreateValueConverter(
XmlSchemaType
schemaType) {
1810
internal override XmlValueConverter CreateValueConverter(
XmlSchemaType
schemaType) {
2188
internal override XmlValueConverter CreateValueConverter(
XmlSchemaType
schemaType) {
2280
internal override XmlValueConverter CreateValueConverter(
XmlSchemaType
schemaType) {
2371
internal override XmlValueConverter CreateValueConverter(
XmlSchemaType
schemaType) {
2459
internal override XmlValueConverter CreateValueConverter(
XmlSchemaType
schemaType) {
2776
internal override XmlValueConverter CreateValueConverter(
XmlSchemaType
schemaType) {
System\Xml\Schema\DtdParser.cs (2)
723
attrDef.SchemaType =
XmlSchemaType
.GetBuiltInSimpleType( attrDef.Datatype.TypeCode );
796
attrDef.SchemaType =
XmlSchemaType
.GetBuiltInSimpleType( attrDef.Datatype.TypeCode );
System\Xml\Schema\DtdParserAsync.cs (2)
368
attrDef.SchemaType =
XmlSchemaType
.GetBuiltInSimpleType( attrDef.Datatype.TypeCode );
441
attrDef.SchemaType =
XmlSchemaType
.GetBuiltInSimpleType( attrDef.Datatype.TypeCode );
System\Xml\Schema\Inference\Infer.cs (7)
656
XmlSchemaType
schemaType = GetEffectiveSchemaType(xse, bCreatingNewType);
1010
private
XmlSchemaType
GetEffectiveSchemaType(XmlSchemaElement elem, bool bCreatingNewType) {
1011
XmlSchemaType
effectiveSchemaType = null;
1021
effectiveSchemaType = schemaSet.GlobalTypes[elem.SchemaTypeName] as
XmlSchemaType
;
1023
effectiveSchemaType =
XmlSchemaType
.GetBuiltInSimpleType(elem.SchemaTypeName);
1026
effectiveSchemaType =
XmlSchemaType
.GetBuiltInComplexType(elem.SchemaTypeName);
1211
internal void ProcessAttributes(ref XmlSchemaElement xse,
XmlSchemaType
effectiveSchemaType, bool bCreatingNewType, XmlSchema parentSchema)
System\Xml\Schema\IXmlSchemaInfo.cs (1)
29
XmlSchemaType
SchemaType { get; }
System\Xml\Schema\Preprocessor.cs (5)
705
foreach (
XmlSchemaType
type in includedSchema.SchemaTypes.Values) {
787
XmlSchemaType
originalType = (
XmlSchemaType
)schemaToUpdate.SchemaTypes[complexType.QualifiedName];
811
XmlSchemaType
originalType = (
XmlSchemaType
)schemaToUpdate.SchemaTypes[simpleType.QualifiedName];
System\Xml\Schema\SchemaCollectionCompiler.cs (12)
61
foreach (
XmlSchemaType
type in this.schema.SchemaTypes.Values) {
171
foreach (
XmlSchemaType
type in this.schema.SchemaTypes.Values) {
198
foreach (
XmlSchemaType
type in this.schema.SchemaTypes.Values) {
224
foreach (
XmlSchemaType
type in this.schema.SchemaTypes.Values) {
385
if (!
XmlSchemaType
.IsDerivedFrom(element.ElementSchemaType, examplar.ElementSchemaType, examplar.FinalResolved)) {
642
XmlSchemaType
bto = GetAnySchemaType(simpleExtension.BaseTypeName);
686
if(!
XmlSchemaType
.IsDerivedFromDatatype(simpleRestriction.BaseType.Datatype, baseType.Datatype, XmlSchemaDerivationMethod.None)) {
1123
XmlSchemaType
.IsDerivedFrom(derivedElement.ElementSchemaType, baseElement.ElementSchemaType, ~XmlSchemaDerivationMethod.Restriction);
1515
else if (attributeBase.AttributeSchemaType == null || attribute.AttributeSchemaType == null || !
XmlSchemaType
.IsDerivedFrom(attribute.AttributeSchemaType, attributeBase.AttributeSchemaType, XmlSchemaDerivationMethod.Empty)) {
2174
private
XmlSchemaType
GetAnySchemaType(XmlQualifiedName name) {
2175
XmlSchemaType
type = (
XmlSchemaType
)this.schema.SchemaTypes[name];
System\Xml\Schema\SchemaCollectionpreProcessor.cs (5)
428
foreach (
XmlSchemaType
type in includedSchema.SchemaTypes.Values) {
533
XmlSchemaType
type = (
XmlSchemaType
)redefine.Schema.SchemaTypes[complexType.QualifiedName];
556
XmlSchemaType
type = (
XmlSchemaType
)redefine.Schema.SchemaTypes[simpleType.QualifiedName];
System\Xml\Schema\SchemaDeclBase.cs (2)
28
protected
XmlSchemaType
schemaType;
85
internal
XmlSchemaType
SchemaType {
System\Xml\Schema\SchemaSetCompiler.cs (14)
77
foreach (
XmlSchemaType
type in schema.SchemaTypes.Values) {
125
foreach (
XmlSchemaType
type in schemaTypes.Values) {
164
foreach (
XmlSchemaType
type in schemaTypes.Values) {
195
foreach (
XmlSchemaType
type in schemaTypes.Values) {
289
if (simpleType ==
XmlSchemaType
.GetBuiltInSimpleType(simpleType.TypeCode)) { //If it is a built-in simple type dont clean up
358
if (!
XmlSchemaType
.IsDerivedFrom(element.ElementSchemaType, headElement.ElementSchemaType, headElement.FinalResolved)) {
700
XmlSchemaType
bto = GetAnySchemaType(simpleExtension.BaseTypeName);
744
if(!
XmlSchemaType
.IsDerivedFromDatatype(simpleRestriction.BaseType.Datatype, baseType.Datatype, XmlSchemaDerivationMethod.None)) {
1312
XmlSchemaType
.IsDerivedFrom(derivedElement.ElementSchemaType, baseElement.ElementSchemaType, ~(XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union))) ) {
1797
else if (attributeBase.AttributeSchemaType == null || attribute.AttributeSchemaType == null || !
XmlSchemaType
.IsDerivedFrom(attribute.AttributeSchemaType, attributeBase.AttributeSchemaType, XmlSchemaDerivationMethod.Empty)) {
1851
else if (attributeBase.AttributeSchemaType == null || attribute.AttributeSchemaType == null || !
XmlSchemaType
.IsDerivedFrom(attribute.AttributeSchemaType, attributeBase.AttributeSchemaType, XmlSchemaDerivationMethod.Empty)) {
2539
private
XmlSchemaType
GetAnySchemaType(XmlQualifiedName name) {
2540
XmlSchemaType
type = (
XmlSchemaType
)schemaTypes[name];
System\Xml\Schema\XmlAtomicValue.cs (11)
21
private
XmlSchemaType
xmlType;
69
internal XmlAtomicValue(
XmlSchemaType
xmlType, bool value) {
76
internal XmlAtomicValue(
XmlSchemaType
xmlType, DateTime value) {
83
internal XmlAtomicValue(
XmlSchemaType
xmlType, double value) {
90
internal XmlAtomicValue(
XmlSchemaType
xmlType, int value) {
97
internal XmlAtomicValue(
XmlSchemaType
xmlType, long value) {
104
internal XmlAtomicValue(
XmlSchemaType
xmlType, string value) {
111
internal XmlAtomicValue(
XmlSchemaType
xmlType, string value, IXmlNamespaceResolver nsResolver) {
122
internal XmlAtomicValue(
XmlSchemaType
xmlType, object value) {
129
internal XmlAtomicValue(
XmlSchemaType
xmlType, object value, IXmlNamespaceResolver nsResolver) {
171
public override
XmlSchemaType
XmlType {
System\Xml\Schema\XmlSchemaDataType.cs (3)
115
internal abstract XmlSchemaDatatype DeriveByRestriction(XmlSchemaObjectCollection facets, XmlNameTable nameTable,
XmlSchemaType
schemaType) ;
117
internal abstract XmlSchemaDatatype DeriveByList(
XmlSchemaType
schemaType) ;
303
internal static XmlSchemaDatatype DeriveByUnion(XmlSchemaSimpleType[] types,
XmlSchemaType
schemaType) {
System\Xml\Schema\XmlSchemaElement.cs (6)
36
XmlSchemaType
type = null;
39
XmlSchemaType
elementType;
176
public
XmlSchemaType
SchemaType {
229
public
XmlSchemaType
ElementSchemaType {
266
internal void SetElementType(
XmlSchemaType
value) {
332
newElem.type = (
XmlSchemaType
)complexType.Clone(parentSchema);
System\Xml\Schema\XmlSchemaInfo.cs (3)
19
XmlSchemaType
schemaType;
68
public
XmlSchemaType
SchemaType {
116
internal
XmlSchemaType
XmlType {
System\Xml\Schema\XmlSchemaSet.cs (5)
1109
foreach (
XmlSchemaType
schemaType in otherSet.GlobalTypes.Values) {
1142
foreach (
XmlSchemaType
schemaTypeToRemove in otherSet.GlobalTypes.Values) {
1288
foreach (
XmlSchemaType
schemaTypeToRemove in schema.SchemaTypes.Values) {
1289
XmlSchemaType
schemaType = (
XmlSchemaType
)schemaTypes[schemaTypeToRemove.QualifiedName];
System\Xml\Schema\XmlSchemaType.cs (7)
23
XmlSchemaType
baseSchemaType;
28
XmlSchemaType
redefined;
141
public
XmlSchemaType
BaseXmlSchemaType {
221
internal void SetBaseSchemaType(
XmlSchemaType
value) {
239
internal
XmlSchemaType
Redefined {
252
public static bool IsDerivedFrom(
XmlSchemaType
derivedType,
XmlSchemaType
baseType, XmlSchemaDerivationMethod except) {
System\Xml\Schema\XmlSchemaValidator.cs (15)
351
if (!(partialValidationType is XmlSchemaElement || partialValidationType is XmlSchemaAttribute || partialValidationType is
XmlSchemaType
)) {
415
XmlSchemaType
localSchemaType = null;
1014
XmlSchemaType
localSchemaType = null;
1063
XmlSchemaType
xmlType = memberType == null ? contextElementDecl.SchemaType : memberType;
1197
if (!
XmlSchemaType
.IsDerivedFrom(memberElem.ElementSchemaType, headElem.ElementSchemaType, headElem.BlockResolved)) {
1367
else if (partialValidationType is
XmlSchemaType
) { //Element name is wildcard
1368
XmlSchemaType
type = (
XmlSchemaType
)partialValidationType;
1422
XmlSchemaType
schemaType = DatatypeImplementation.GetSimpleTypeFromXsdType(xsiTypeName);
1424
schemaType =
XmlSchemaType
.GetBuiltInComplexType(xsiTypeName);
1441
else if (elementDecl != null && !
XmlSchemaType
.IsDerivedFrom(elementDeclXsi.SchemaType,elementDecl.SchemaType,elementDecl.Block)) {
2073
tempXsiTypeSO.SetAttributeType(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.QName));
2080
tempxsiNilSO.SetAttributeType(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.Boolean));
2084
XmlSchemaSimpleType stringType =
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.String);
2092
XmlSchemaSimpleType stringType =
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.String);
System\Xml\Schema\XmlValueConverter.cs (48)
274
private
XmlSchemaType
schemaType;
278
protected XmlBaseConverter(
XmlSchemaType
schemaType) {
288
schemaType =
XmlSchemaType
.GetBuiltInSimpleType(datatype.TypeCode);
481
protected
XmlSchemaType
SchemaType {
497
XmlSchemaType
type = this.schemaType;
882
protected XmlNumeric10Converter(
XmlSchemaType
schemaType) : base(schemaType) {
885
public static XmlValueConverter Create(
XmlSchemaType
schemaType) {
1188
protected XmlNumeric2Converter(
XmlSchemaType
schemaType) : base(schemaType) {
1191
public static XmlValueConverter Create(
XmlSchemaType
schemaType) {
1396
protected XmlDateTimeConverter(
XmlSchemaType
schemaType) : base(schemaType) {
1399
public static XmlValueConverter Create(
XmlSchemaType
schemaType) {
1648
protected XmlBooleanConverter(
XmlSchemaType
schemaType) : base(schemaType) {
1651
public static XmlValueConverter Create(
XmlSchemaType
schemaType) {
1804
protected XmlMiscConverter(
XmlSchemaType
schemaType) : base(schemaType) {
1807
public static XmlValueConverter Create(
XmlSchemaType
schemaType) {
2047
protected XmlStringConverter(
XmlSchemaType
schemaType) : base(schemaType) {
2050
public static XmlValueConverter Create(
XmlSchemaType
schemaType) {
2882
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.Boolean), (bool) value));
2891
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTime) value));
2900
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTimeOffset) value));
2909
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.Decimal), value));
2918
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.Double), (double) value));
2927
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.Int), (int) value));
2936
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.Long), (long) value));
2945
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.Float), value));
2955
if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.String), (string) value));
2993
if (sourceType == BooleanType) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.Boolean), (bool) value));
2994
if (sourceType == ByteType) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.UnsignedByte), value));
2995
if (sourceType == ByteArrayType) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.Base64Binary), value));
2996
if (sourceType == DateTimeType) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTime) value));
2997
if (sourceType == DateTimeOffsetType) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTimeOffset) value));
2998
if (sourceType == DecimalType) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.Decimal), value));
2999
if (sourceType == DoubleType) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.Double), (double) value));
3000
if (sourceType == Int16Type) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.Short), value));
3001
if (sourceType == Int32Type) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.Int), (int) value));
3002
if (sourceType == Int64Type) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.Long), (long) value));
3003
if (sourceType == SByteType) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.Byte), value));
3004
if (sourceType == SingleType) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.Float), value));
3005
if (sourceType == StringType) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.String), (string) value));
3006
if (sourceType == TimeSpanType) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.Duration), value));
3007
if (sourceType == UInt16Type) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.UnsignedShort), value));
3008
if (sourceType == UInt32Type) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.UnsignedInt), value));
3009
if (sourceType == UInt64Type) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.UnsignedLong), value));
3010
if (IsDerivedFrom(sourceType, UriType)) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.AnyUri), value));
3011
if (IsDerivedFrom(sourceType, XmlQualifiedNameType)) return (new XmlAtomicValue(
XmlSchemaType
.GetBuiltInSimpleType(XmlTypeCode.QName), value, nsResolver));
3093
protected XmlListConverter(
XmlSchemaType
schemaType) : base(schemaType) {
3311
protected XmlUnionConverter(
XmlSchemaType
schemaType) : base(schemaType) {
3332
public static XmlValueConverter Create(
XmlSchemaType
schemaType) {
System\Xml\Schema\XsdValidator.cs (1)
347
else if (!
XmlSchemaType
.IsDerivedFrom(elementDeclXsi.SchemaType,elementDecl.SchemaType,elementDecl.Block)) {
System\Xml\Serialization\Advanced\SchemaImporterExtension.cs (3)
31
public virtual string ImportSchemaType(
XmlSchemaType
type, XmlSchemaObject context, XmlSchemas schemas, XmlSchemaImporter importer,
133
XmlSchemaType
xsdType;
141
internal MappedTypeDesc(string clrType, string name, string ns,
XmlSchemaType
xsdType, XmlSchemaObject context, SchemaImporterExtension extension, CodeNamespace code, StringCollection references) {
System\Xml\Serialization\ImportContext.cs (16)
288
if (typeof(
XmlSchemaType
).IsAssignableFrom(t)) {
290
XmlSchemaType
baseType = null;
357
XmlSchemaType
type = (
XmlSchemaType
)schemas.Find(memberTypes[i], typeof(
XmlSchemaType
), false);
364
baseType = (
XmlSchemaType
)schemas.Find(baseName, typeof(
XmlSchemaType
), false);
391
XmlSchemaType
type = (
XmlSchemaType
)schemas.Find(el.SchemaTypeName, typeof(
XmlSchemaType
), false);
426
XmlSchemaType
type = (
XmlSchemaType
)schemas.Find(at.SchemaTypeName, typeof(
XmlSchemaType
), false);
442
XmlSchemaType
type = (
XmlSchemaType
)schemas.Find(qname, typeof(
XmlSchemaType
), false);
System\Xml\Serialization\Mappings.cs (7)
939
XmlSchemaType
xsdType;
982
if (needSchema && typeof(
XmlSchemaType
).IsAssignableFrom(getSchemaMethod.ReturnType))
1054
if (typeof(
XmlSchemaType
).IsAssignableFrom(getSchemaMethod.ReturnType))
1061
internal
XmlSchemaType
XsdType {
1136
if (typeof(
XmlSchemaType
).IsAssignableFrom(getSchemaMethod.ReturnType)) {
1137
xsdType = (
XmlSchemaType
)typeInfo;
1176
xsdType = (
XmlSchemaType
)s.SchemaTypes[xsiType];
System\Xml\Serialization\SoapSchemaExporter.cs (3)
93
XmlSchemaType
type = o as
XmlSchemaType
;
176
XmlSchemaType
type = mapping.TypeDesc.DataType;
System\Xml\Serialization\SoapSchemaImporter.cs (7)
218
if (item is
XmlSchemaType
) {
219
XmlSchemaType
type = (
XmlSchemaType
)item;
384
XmlSchemaType
type = element.SchemaType;
398
ArrayMapping ImportArrayMapping(
XmlSchemaType
type, string ns) {
647
XmlSchemaType
encType = (
XmlSchemaType
)type;
System\Xml\Serialization\Types.cs (6)
81
XmlSchemaType
dataType;
92
internal TypeDesc(string name, string fullName,
XmlSchemaType
dataType, TypeKind kind, TypeDesc baseTypeDesc, TypeFlags flags, string formatterName) {
111
internal TypeDesc(string name, string fullName,
XmlSchemaType
dataType, TypeKind kind, TypeDesc baseTypeDesc, TypeFlags flags)
115
: this(name, fullName, (
XmlSchemaType
)null, kind, baseTypeDesc, flags, null) { }
117
internal TypeDesc(Type type, bool isXsdType,
XmlSchemaType
dataType, string formatterName, TypeFlags flags)
166
internal
XmlSchemaType
DataType {
System\Xml\Serialization\XmlReflectionImporter.cs (5)
438
if (!(typeof(XmlQualifiedName).IsAssignableFrom(getMethod.ReturnType)) && !(typeof(
XmlSchemaType
).IsAssignableFrom(getMethod.ReturnType)))
439
throw new InvalidOperationException(Res.GetString(Res.XmlGetSchemaMethodReturnType, type.Name, provider.MethodName, typeof(XmlSchemaProviderAttribute).Name, typeof(XmlQualifiedName).FullName, typeof(
XmlSchemaType
).FullName));
480
XmlSchemaType
xsdType = serializableMapping.XsdType;
531
XmlSchemaType
t = (
XmlSchemaType
)s.SchemaTypes[baseQname];
System\Xml\Serialization\XmlSchemaExporter.cs (16)
60
XmlSchemaType
type = ExportSpecialMapping(special, xmlMembersMapping.Accessor.Namespace, false, null);
113
private static
XmlSchemaType
FindSchemaType(string name, XmlSchemaObjectCollection items) {
116
XmlSchemaType
type = o as
XmlSchemaType
;
125
private static bool IsAnyType(
XmlSchemaType
schemaType, bool mixed, bool unbounded) {
148
XmlSchemaType
schemaType = FindSchemaType(name, schema.Items);
190
XmlSchemaType
schemaType = FindSchemaType(name, schema.Items);
252
XmlSchemaType
type = o as
XmlSchemaType
;
393
XmlSchemaType
ExportSpecialMapping(SpecialMapping mapping, string ns, bool isAny, XmlSchemaElement element) {
442
XmlSchemaType
type = serializableMapping.XsdType;
449
type = (
XmlSchemaType
)schema.SchemaTypes[serializableMapping.XsiType];
504
XmlSchemaType
ExportMembersMapping(MembersMapping mapping, string ns) {
515
XmlSchemaType
ExportAnonymousPrimitiveMapping(PrimitiveMapping mapping) {
527
XmlSchemaType
type = ExportEnumMapping((EnumMapping)mapping, ns);
1006
XmlSchemaType
ExportEnumMapping(EnumMapping mapping, string ns) {
System\Xml\Serialization\XmlSchemaImporter.cs (21)
377
void RunSchemaExtensions(TypeMapping mapping, XmlQualifiedName qname,
XmlSchemaType
type, XmlSchemaObject context, TypeFlags flags) {
435
object type = Schemas.Find(qname, typeof(
XmlSchemaType
));
453
if (item is
XmlSchemaType
) {
454
XmlSchemaType
type = (
XmlSchemaType
)item;
515
MembersMapping ImportMembersType(
XmlSchemaType
type, string typeNs, string identifier) {
528
StructMapping ImportStructType(
XmlSchemaType
type, string typeNs, string identifier, Type baseType, bool arrayLike) {
617
bool IsAllGroup(
XmlSchemaType
type) {
650
MemberMapping[] ImportTypeMembers(
XmlSchemaType
type, string typeNs, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, ref bool needExplicitOrder, bool order, bool allowUnboundedElements) {
656
XmlSchemaType
t = type;
693
internal static bool IsMixed(
XmlSchemaType
type) {
709
TypeItems GetTypeItems(
XmlSchemaType
type) {
1167
XmlSchemaType
type = element.SchemaType;
1180
ArrayMapping ImportArrayMapping(
XmlSchemaType
type, string identifier, string ns, bool repeats) {
1262
XmlSchemaType
refType = refElement.SchemaType;
1279
SpecialMapping ImportAnyMapping(
XmlSchemaType
type, string identifier, string ns, bool repeats) {
1408
bool KeepXmlnsDeclarations(
XmlSchemaType
type, out string xmlnsMemberName) {
1436
void ImportXmlnsDeclarationsMember(
XmlSchemaType
type, CodeIdentifiers members, CodeIdentifiers membersScope) {
1595
XmlSchemaType
sourceType = dataType;
1773
XmlSchemaType
FindType(XmlQualifiedName name, TypeFlags flags) {
1845
internal string FindExtendedType(
XmlSchemaType
type, XmlSchemaObject context, CodeCompileUnit compileUnit, CodeNamespace mainNamespace, out SchemaImporterExtension extension) {
System\Xml\Serialization\XmlSchemas.cs (8)
290
if (typeof(
XmlSchemaType
).IsAssignableFrom(type)) {
467
else if (o is
XmlSchemaType
) {
468
return ((
XmlSchemaType
)o).Name;
481
if (item.Parent is
XmlSchemaType
) {
482
XmlSchemaType
type = (
XmlSchemaType
)item.Parent;
526
else if (o is
XmlSchemaType
) {
527
item = Res.GetString(Res.XmlSchemaNamedItem, ns, o.GetType() == typeof(XmlSchemaSimpleType) ? "simpleType" : "complexType", ((
XmlSchemaType
)o).Name, null);
System\Xml\XPath\XPathItem.cs (1)
24
public abstract
XmlSchemaType
XmlType { get; }
System\Xml\XPath\XPathNavigator.cs (13)
49
public override
XmlSchemaType
XmlType {
54
XmlSchemaType
memberType = schemaInfo.MemberType;
72
XmlSchemaType
schemaType;
115
XmlSchemaType
schemaType = schemaInfo.SchemaType;
133
XmlSchemaType
schemaType;
165
XmlSchemaType
schemaType;
194
XmlSchemaType
schemaType;
223
XmlSchemaType
schemaType;
252
XmlSchemaType
schemaType;
281
XmlSchemaType
schemaType;
312
XmlSchemaType
schemaType;
873
XmlSchemaType
schemaType = null;
931
private XmlReader GetValidatingReader( XmlReader reader, XmlSchemaSet schemas, ValidationEventHandler validationEvent,
XmlSchemaType
schemaType, XmlSchemaElement schemaElement, XmlSchemaAttribute schemaAttribute ) {
System\Xml\XPath\XPathNavigatorReader.cs (1)
986
public virtual
XmlSchemaType
SchemaType { get { return IsReading ? this.schemaInfo.SchemaType : null; } }
System.Xml.Linq (5)
System\Xml\Linq\XNodeValidator.cs (5)
347
XmlSchemaType
schemaType = si.SchemaType;
416
/// <see cref="
XmlSchemaType
"/> object used to initialize the partial validation
431
/// <see cref="
XmlSchemaType
"/> object used to initialize the partial validation
453
/// <see cref="
XmlSchemaType
"/> object used to initialize the partial validation
468
/// <see cref="
XmlSchemaType
"/> object used to initialize the partial validation