43 instantiations of XmlSchemaComplexType
System.Data (2)
fx\src\data\System\Data\DataSet.cs (1)
3287
XmlSchemaComplexType tempWSDL = new
XmlSchemaComplexType
();
fx\src\data\System\Data\DataTable.cs (1)
5917
XmlSchemaComplexType type = new
XmlSchemaComplexType
();
System.Runtime.Serialization (9)
System\Runtime\Serialization\SchemaExporter.cs (8)
127
XmlSchemaComplexType type = new
XmlSchemaComplexType
();
362
XmlSchemaComplexType type = new
XmlSchemaComplexType
();
381
XmlSchemaComplexType keyValueType = new
XmlSchemaComplexType
();
461
XmlSchemaComplexType type = new
XmlSchemaComplexType
();
725
XmlSchemaComplexType anyType = new
XmlSchemaComplexType
();
739
XmlSchemaComplexType anyElementType = new
XmlSchemaComplexType
();
777
XmlSchemaComplexType type = new
XmlSchemaComplexType
();
792
XmlSchemaComplexType type = new
XmlSchemaComplexType
();
System\Runtime\Serialization\SchemaImporter.cs (1)
146
element.SchemaType = new
XmlSchemaComplexType
();
System.ServiceModel (4)
System\ServiceModel\Description\MessageContractExporter.cs (2)
171
XmlSchemaComplexType genericMessageType = new
XmlSchemaComplexType
();
418
XmlSchemaComplexType wrapperType = new
XmlSchemaComplexType
();
System\ServiceModel\Dispatcher\XPathMessageFilter.cs (2)
92
XmlSchemaComplexType innerType = new
XmlSchemaComplexType
();
115
XmlSchemaComplexType outerType = new
XmlSchemaComplexType
();
System.ServiceModel.Discovery (5)
System\ServiceModel\Discovery\SchemaUtility.cs (5)
224
XmlSchemaComplexType appSequenceType = new
XmlSchemaComplexType
();
286
XmlSchemaComplexType resolveType = new
XmlSchemaComplexType
();
321
XmlSchemaComplexType probeMatchType = new
XmlSchemaComplexType
();
381
XmlSchemaComplexType probeType = new
XmlSchemaComplexType
();
478
XmlSchemaComplexType scopesType = new
XmlSchemaComplexType
();
System.Web.Services (2)
System\Web\Services\Description\HttpProtocolReflector.cs (1)
99
XmlSchemaComplexType type = new
XmlSchemaComplexType
();
System\Web\Services\Description\ServiceDescriptionSerializer.cs (1)
9139
o = new global::System.Xml.Schema.
XmlSchemaComplexType
();
System.Xml (21)
System\Xml\Schema\Inference\Infer.cs (2)
919
ct = new
XmlSchemaComplexType
();
1245
ct = new
XmlSchemaComplexType
();
System\Xml\Schema\XmlSchemaComplexType.cs (2)
48
untypedAnyType = new
XmlSchemaComplexType
();
61
XmlSchemaComplexType localAnyType = new
XmlSchemaComplexType
();
System\Xml\Schema\XsdBuilder.cs (1)
1477
builder.xso = builder.complexType = new
XmlSchemaComplexType
();
System\Xml\Serialization\SoapSchemaExporter.cs (3)
202
type = new
XmlSchemaComplexType
();
282
type = new
XmlSchemaComplexType
();
308
type = new
XmlSchemaComplexType
();
System\Xml\Serialization\SoapSchemaImporter.cs (1)
125
XmlSchemaComplexType type = new
XmlSchemaComplexType
();
System\Xml\Serialization\XmlSchemaExporter.cs (9)
158
XmlSchemaComplexType type = new
XmlSchemaComplexType
();
200
XmlSchemaComplexType type = new
XmlSchemaComplexType
();
396
XmlSchemaComplexType type = new
XmlSchemaComplexType
();
414
XmlSchemaComplexType type = new
XmlSchemaComplexType
();
463
XmlSchemaComplexType type = new
XmlSchemaComplexType
();
486
XmlSchemaComplexType type = new
XmlSchemaComplexType
();
505
XmlSchemaComplexType type = new
XmlSchemaComplexType
();
554
type = new
XmlSchemaComplexType
();
871
type = new
XmlSchemaComplexType
();
System\Xml\Serialization\XmlSchemaImporter.cs (2)
185
XmlSchemaComplexType type = new
XmlSchemaComplexType
();
254
XmlSchemaComplexType type = new
XmlSchemaComplexType
();
System\Xml\Serialization\XmlSchemas.cs (1)
714
XmlSchemaComplexType type = new
XmlSchemaComplexType
();
417 references to XmlSchemaComplexType
System.Data (41)
fx\src\data\System\Data\CodeGen\datacache.cs (3)
1204
CodeMemberMethod getTypedDataSetSchema = MethodDecl(typeof(
XmlSchemaComplexType
), "GetTypedDataSetSchema", MemberAttributes.Static | MemberAttributes.Public); {
1208
getTypedDataSetSchema.Statements.Add(VariableDecl(typeof(
XmlSchemaComplexType
),"type",New(typeof(
XmlSchemaComplexType
),new CodeExpression[] {})));
fx\src\data\System\Data\DataSet.cs (6)
93
private static
XmlSchemaComplexType
schemaTypeForWSDL = null;
3283
public static
XmlSchemaComplexType
GetDataSetSchema(XmlSchemaSet schemaSet) {
3287
XmlSchemaComplexType
tempWSDL = new XmlSchemaComplexType();
3531
if (type is
XmlSchemaComplexType
) {
3532
XmlSchemaComplexType
ct = (
XmlSchemaComplexType
)type;
fx\src\data\System\Data\DataTable.cs (2)
5916
public static
XmlSchemaComplexType
GetDataTableSchema(XmlSchemaSet schemaSet) {
5917
XmlSchemaComplexType
type = new XmlSchemaComplexType();
fx\src\data\System\Data\XMLSchema.cs (30)
475
if (isChoice && pt.MaxOccurs > Decimal.One && (((XmlSchemaElement)el).SchemaType is
XmlSchemaComplexType
)) // we know frominference condition
479
if (!FromInference || (((XmlSchemaElement)el).MaxOccurs != Decimal.One && !(((XmlSchemaElement)el).SchemaType is
XmlSchemaComplexType
)))
520
XmlSchemaComplexType
ct = node.SchemaType as
XmlSchemaComplexType
;
548
if (ct.BaseXmlSchemaType is
XmlSchemaComplexType
)
549
ct = (
XmlSchemaComplexType
)ct.BaseXmlSchemaType;
646
XmlSchemaComplexType
ct = (
XmlSchemaComplexType
) FindTypeNode(dsElement);
778
if (this.FromInference && pt is XmlSchemaChoice && pt.MaxOccurs > Decimal.One && (el.SchemaType is
XmlSchemaComplexType
))
877
internal void HandleComplexType(
XmlSchemaComplexType
ct, DataTable table, ArrayList tableChildren, bool isNillable){
897
if (!(ct.BaseXmlSchemaType is
XmlSchemaComplexType
&& this.FromInference))
900
if (ct.BaseXmlSchemaType is
XmlSchemaComplexType
) {
901
HandleComplexType((
XmlSchemaComplexType
)ct.BaseXmlSchemaType, table, tableChildren, isNillable);
915
if (ct.BaseXmlSchemaType is
XmlSchemaComplexType
&& this.FromInference)
933
if (ct.BaseXmlSchemaType is
XmlSchemaComplexType
) {
934
HandleComplexType((
XmlSchemaComplexType
)ct.BaseXmlSchemaType, table, tableChildren, isNillable);
965
internal XmlSchemaParticle GetParticle(
XmlSchemaComplexType
ct){
1268
XmlSchemaComplexType
ct = node.SchemaType as
XmlSchemaComplexType
;
1334
internal DataTable InstantiateTable(XmlSchemaElement node,
XmlSchemaComplexType
typeNode, bool isRef) {
2096
else if (typeNode is
XmlSchemaComplexType
) {
2266
XmlSchemaComplexType
ct = (
XmlSchemaComplexType
) FindTypeNode(node);
2286
if (node.ElementSchemaType != null || !(((XmlSchemaElement)el).SchemaType is
XmlSchemaComplexType
)) {
2310
if (((XmlSchemaParticle)el).MaxOccurs > Decimal.One && (((XmlSchemaElement)choiceEl).SchemaType is
XmlSchemaComplexType
)) // amir
2312
if ((((XmlSchemaElement)choiceEl).RefName.Name.Length != 0) && (!FromInference && ((XmlSchemaElement)choiceEl).MaxOccurs != Decimal.One && !(((XmlSchemaElement)choiceEl).SchemaType is
XmlSchemaComplexType
)))
2442
if ((typeNode==null) || !(typeNode is
XmlSchemaComplexType
)) {
2446
XmlSchemaComplexType
ctNode = (
XmlSchemaComplexType
) typeNode;
2468
DataTable table = InstantiateTable(node,(
XmlSchemaComplexType
)typeNode, (node.RefName != null)); // this is wrong , correct check should be node.RefName.IsEmpty
System.Data.Services.Design (6)
System\Data\EntityModel\EntityClassGenerator.cs (4)
284
XmlSchemaComplexType
associationType = csdlSchema.SchemaTypes[new XmlQualifiedName("TAssociation", csdlSchema.TargetNamespace)] as
XmlSchemaComplexType
;
318
XmlSchemaComplexType
complexType = entityContainerElement.SchemaType as
XmlSchemaComplexType
;
System\Data\Services\Design\Xml\XNodeSchemaApplier.cs (2)
386
XmlSchemaComplexType
schemaComplexType = schemaInfo.SchemaElement.ElementSchemaType as
XmlSchemaComplexType
;
System.Data.SqlXml (13)
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (2)
754
return XmlQueryTypeFactory.Type(nav.NodeType, XmlQualifiedNameTest.New(nav.LocalName, nav.NamespaceURI),
XmlSchemaComplexType
.UntypedAnyType, false);
765
return XmlQueryTypeFactory.Type(nav.NodeType, XmlQualifiedNameTest.Wildcard,
XmlSchemaComplexType
.AnyType, false);
System\Xml\Xsl\XmlQueryType.cs (3)
512
(baseSchemaType ==
XmlSchemaComplexType
.AnyType || XmlSchemaType.IsDerivedFrom(SchemaType, baseSchemaType, /* except:*/XmlSchemaDerivationMethod.Empty)) &&
572
else if (SchemaType !=
XmlSchemaComplexType
.AnyType) {
602
if (isXQ || (SchemaType !=
XmlSchemaComplexType
.AnyType && SchemaType != DatatypeImplementation.AnySimpleType))
System\Xml\Xsl\XmlQueryTypeFactory.cs (8)
362
BuiltInItemTypes[i] = new ItemType(typeCode, XmlQualifiedNameTest.Wildcard,
XmlSchemaComplexType
.AnyType, false, false, false);
372
BuiltInItemTypes[i] = new ItemType(typeCode, XmlQualifiedNameTest.Wildcard,
XmlSchemaComplexType
.AnyType, false, false, true);
400
UntypedDocument = new ItemType(XmlTypeCode.Document, XmlQualifiedNameTest.Wildcard,
XmlSchemaComplexType
.UntypedAnyType, false, false, true);
401
UntypedElement = new ItemType(XmlTypeCode.Element, XmlQualifiedNameTest.Wildcard,
XmlSchemaComplexType
.UntypedAnyType, false, false, true);
403
NodeNotRtf = new ItemType(XmlTypeCode.Node, XmlQualifiedNameTest.Wildcard,
XmlSchemaComplexType
.AnyType, false, false, true);
446
if (contentType ==
XmlSchemaComplexType
.AnyType)
450
if (contentType ==
XmlSchemaComplexType
.UntypedAnyType) {
733
this.schemaType =
XmlSchemaComplexType
.AnyType;
System.Runtime.Serialization (23)
System\Runtime\Serialization\SchemaExporter.cs (12)
127
XmlSchemaComplexType
type = new XmlSchemaComplexType();
362
XmlSchemaComplexType
type = new XmlSchemaComplexType();
381
XmlSchemaComplexType
keyValueType = new XmlSchemaComplexType();
461
XmlSchemaComplexType
type = new XmlSchemaComplexType();
486
XmlSchemaComplexContentExtension CreateTypeContent(
XmlSchemaComplexType
type, XmlQualifiedName baseTypeName, XmlSchema schema)
716
XmlSchemaComplexType
defaultXmlType = CreateAnyType();
723
static
XmlSchemaComplexType
CreateAnyType()
725
XmlSchemaComplexType
anyType = new XmlSchemaComplexType();
737
static
XmlSchemaComplexType
CreateAnyElementType()
739
XmlSchemaComplexType
anyElementType = new XmlSchemaComplexType();
777
XmlSchemaComplexType
type = new XmlSchemaComplexType();
792
XmlSchemaComplexType
type = new XmlSchemaComplexType();
System\Runtime\Serialization\SchemaImporter.cs (11)
318
XmlSchemaComplexType
complexType = type as
XmlSchemaComplexType
;
451
else if (type is
XmlSchemaComplexType
)
453
XmlSchemaComplexType
complexType = (
XmlSchemaComplexType
)type;
725
xmlDataContract.HasRoot = !IsXmlAnyElementType(xsdType as
XmlSchemaComplexType
);
752
XmlSchemaComplexType
complexType = xsdType as
XmlSchemaComplexType
;
775
bool IsXmlAnyElementType(
XmlSchemaComplexType
xsdType)
797
bool IsXmlAnyType(
XmlSchemaComplexType
xsdType)
1358
void CheckComplexType(XmlQualifiedName typeName,
XmlSchemaComplexType
type)
System.ServiceModel (14)
System\ServiceModel\Description\MessageContractExporter.cs (2)
171
XmlSchemaComplexType
genericMessageType = new XmlSchemaComplexType();
418
XmlSchemaComplexType
wrapperType = new XmlSchemaComplexType();
System\ServiceModel\Description\MessageContractImporter.cs (7)
665
XmlSchemaComplexType
complexType = GetElementComplexType(part.Element, allSchemas, out ns, out elementFormDefault);
1256
static
XmlSchemaComplexType
GetElementComplexType(XmlQualifiedName elementName, XmlSchemaSet schemaSet, out string ns, out XmlSchemaForm elementFormDefault)
1281
return schemaType as
XmlSchemaComplexType
;
1284
static XmlSchemaSequence GetRootSequence(
XmlSchemaComplexType
complexType)
1604
XmlSchemaComplexType
complexType = GetElementComplexType(elementName, schemaSet, out ns, out elementFormDefault);
1655
XmlSchemaComplexType
complexType = GetElementComplexType(elementName, schemaSet, out ns, out elementFormDefault);
1984
XmlSchemaComplexType
complexType = GetElementComplexType(elementName, schemaSet, out ns, out elementFormDefault);
System\ServiceModel\Dispatcher\XPathMessageFilter.cs (5)
74
static
XmlSchemaComplexType
CreateOuterType()
92
XmlSchemaComplexType
innerType = new XmlSchemaComplexType();
115
XmlSchemaComplexType
outerType = new XmlSchemaComplexType();
129
XmlSchemaComplexType
outerType = CreateOuterType();
344
XmlSchemaComplexType
outerType = CreateOuterType();
System.ServiceModel.Discovery (5)
System\ServiceModel\Discovery\SchemaUtility.cs (5)
224
XmlSchemaComplexType
appSequenceType = new XmlSchemaComplexType();
286
XmlSchemaComplexType
resolveType = new XmlSchemaComplexType();
321
XmlSchemaComplexType
probeMatchType = new XmlSchemaComplexType();
381
XmlSchemaComplexType
probeType = new XmlSchemaComplexType();
478
XmlSchemaComplexType
scopesType = new XmlSchemaComplexType();
System.ServiceModel.Web (18)
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (18)
70
{ typeof(
XmlSchemaComplexType
), XmlComplexTypeHandler },
119
{ typeof(
XmlSchemaComplexType
), JsonComplexTypeHandler },
262
XmlSchemaComplexType
complexType = (
XmlSchemaComplexType
)schemaObject;
414
XmlSchemaComplexType
complexType = (
XmlSchemaComplexType
)schemaObject;
741
if (element.ElementSchemaType is
XmlSchemaComplexType
)
746
e.ElementSchemaType is
XmlSchemaComplexType
&&
747
DerivesFrom((
XmlSchemaComplexType
)element.ElementSchemaType, (
XmlSchemaComplexType
)e.ElementSchemaType)).OrderBy(e => e.Name))
754
static bool DerivesFrom(
XmlSchemaComplexType
parent,
XmlSchemaComplexType
child)
760
else if (child.BaseXmlSchemaType is
XmlSchemaComplexType
)
762
return DerivesFrom(parent, (
XmlSchemaComplexType
)child.BaseXmlSchemaType);
772
if (element.ElementSchemaType is
XmlSchemaComplexType
)
774
XmlSchemaComplexType
complexType = element.ElementSchemaType as
XmlSchemaComplexType
;
793
return element.ElementSchemaType is
XmlSchemaComplexType
;
System.Web.Extensions (2)
Script\Services\WebServiceTypeData.cs (2)
113
private static bool CheckIfCollection(
XmlSchemaComplexType
type) {
221
else if (CheckIfCollection(schemaType as
XmlSchemaComplexType
)) {
System.Web.Services (14)
System\Web\Services\Description\HttpProtocolImporter.cs (3)
110
XmlSchemaComplexType
type = (
XmlSchemaComplexType
)Schemas.Find(part.Type, typeof(
XmlSchemaComplexType
));
System\Web\Services\Description\HttpProtocolReflector.cs (1)
99
XmlSchemaComplexType
type = new XmlSchemaComplexType();
System\Web\Services\Description\ServiceDescriptionSerializer.cs (10)
1870
else if (ai is global::System.Xml.Schema.
XmlSchemaComplexType
) {
1871
Write62_XmlSchemaComplexType(@"complexType", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.
XmlSchemaComplexType
)ai), false, false);
2257
if (o.@SchemaType is global::System.Xml.Schema.
XmlSchemaComplexType
) {
2258
Write62_XmlSchemaComplexType(@"complexType", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.
XmlSchemaComplexType
)o.@SchemaType), false, false);
3102
void Write62_XmlSchemaComplexType(string n, string ns, global::System.Xml.Schema.
XmlSchemaComplexType
o, bool isNullable, bool needType) {
3109
if (t == typeof(global::System.Xml.Schema.
XmlSchemaComplexType
)) {
4036
else if (ai is global::System.Xml.Schema.
XmlSchemaComplexType
) {
4037
Write62_XmlSchemaComplexType(@"complexType", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.
XmlSchemaComplexType
)ai), false, false);
9126
global::System.Xml.Schema.
XmlSchemaComplexType
Read62_XmlSchemaComplexType(bool isNullable, bool checkType) {
9138
global::System.Xml.Schema.
XmlSchemaComplexType
o;
System.Xml (281)
System\Xml\Dom\DocumentSchemaValidator.cs (8)
504
XmlSchemaComplexType
elementSchemaType = GetComplexType(schemaObject);
564
return
XmlSchemaComplexType
.AnyTypeSkip;
568
return
XmlSchemaComplexType
.AnyType;
575
XmlSchemaComplexType
ancestorSchemaType = GetComplexType(ancestorType);
582
private
XmlSchemaComplexType
GetComplexType(XmlSchemaObject schemaObject) {
587
XmlSchemaComplexType
complexType = null;
589
complexType = schemaElement.ElementSchemaType as
XmlSchemaComplexType
;
592
complexType = schemaObject as
XmlSchemaComplexType
;
System\Xml\Schema\BaseProcessor.cs (1)
109
else if (item is
XmlSchemaComplexType
) {
System\Xml\Schema\DataTypeImplementation.cs (4)
833
XmlSchemaComplexType
complexType;
834
complexType = schemaType as
XmlSchemaComplexType
;
842
complexType = complexType.BaseXmlSchemaType as
XmlSchemaComplexType
;
843
} while(complexType != null && complexType !=
XmlSchemaComplexType
.AnyType);
System\Xml\Schema\Inference\Infer.cs (12)
657
XmlSchemaComplexType
ct = schemaType as
XmlSchemaComplexType
;
671
if (ct == null || ct ==
XmlSchemaComplexType
.AnyType) { //It was null or simple type, after processing attributes, this might have been set
672
ct = xse.SchemaType as
XmlSchemaComplexType
;
998
private XmlSchemaSimpleContentExtension CheckSimpleContentExtension(
XmlSchemaComplexType
ct) {
1043
internal XmlSchemaElement FindMatchingElement(bool bCreatingNewType, XmlReader xtr,
XmlSchemaComplexType
ct, ref int lastUsedSeqItem, ref bool bParticleChanged, XmlSchema parentSchema, bool setMaxoccurs)
1214
XmlSchemaComplexType
ct = effectiveSchemaType as
XmlSchemaComplexType
;
1243
if (ct == null || ct ==
XmlSchemaComplexType
.AnyType)
1293
private void MoveAttributes(XmlSchemaSimpleContentExtension scExtension,
XmlSchemaComplexType
ct) {
1302
private void MoveAttributes(
XmlSchemaComplexType
ct, XmlSchemaSimpleContentExtension simpleContentExtension, bool bCreatingNewType) {
1402
internal void MakeExistingAttributesOptional(
XmlSchemaComplexType
ct, XmlSchemaObjectCollection attributesInInstance) {
System\Xml\Schema\Preprocessor.cs (11)
649
else if (schemaItems[i] is
XmlSchemaComplexType
) {
650
XmlSchemaComplexType
complexType = (
XmlSchemaComplexType
)schemaItems[i];
778
else if (items[i] is
XmlSchemaComplexType
) {
779
XmlSchemaComplexType
complexType = (
XmlSchemaComplexType
)items[i];
792
else if (originalType is
XmlSchemaComplexType
) {
948
private void CheckRefinedComplexType(
XmlSchemaComplexType
ctype) {
1180
if (element.SchemaType is
XmlSchemaComplexType
) {
1181
PreprocessComplexType((
XmlSchemaComplexType
)element.SchemaType, true);
1360
private void PreprocessComplexType(
XmlSchemaComplexType
complexType, bool local) {
System\Xml\Schema\SchemaCollectionCompiler.cs (66)
62
if (type is
XmlSchemaComplexType
) {
63
CleanupComplexType((
XmlSchemaComplexType
)type);
94
XmlSchemaComplexType
complextype;
105
else if ((complextype = item as
XmlSchemaComplexType
) != null) {
125
XmlSchemaComplexType
complextype;
136
else if ((complextype = schema.Items[i] as
XmlSchemaComplexType
) != null) {
160
this.schema.SchemaTypes.Insert(DatatypeImplementation.QnAnyType,
XmlSchemaComplexType
.AnyType);
172
if (type is
XmlSchemaComplexType
) {
173
CompileComplexType((
XmlSchemaComplexType
)type);
195
XmlSchemaComplexType
type = (
XmlSchemaComplexType
)complexTypeStack.Pop();
199
if (type is
XmlSchemaComplexType
) {
200
CheckParticleDerivation((
XmlSchemaComplexType
)type);
204
if (element.ElementSchemaType is
XmlSchemaComplexType
&& element.SchemaTypeName == XmlQualifiedName.Empty) { // only local schemaTypes
205
CheckParticleDerivation((
XmlSchemaComplexType
)element.ElementSchemaType);
226
XmlSchemaComplexType
complexType = type as
XmlSchemaComplexType
;
227
if (complexType == null || (!complexType.IsAbstract && type !=
XmlSchemaComplexType
.AnyType)) {
255
private static void CleanupComplexType(
XmlSchemaComplexType
complexType) {
300
XmlSchemaComplexType
complexType = element.SchemaType as
XmlSchemaComplexType
;
556
private void CompileComplexType(
XmlSchemaComplexType
complexType) {
587
complexType.SetBaseSchemaType(
XmlSchemaComplexType
.AnyType);
588
CompileLocalAttributes(
XmlSchemaComplexType
.AnyType, complexType, complexType.Attributes, complexType.AnyAttribute, XmlSchemaDerivationMethod.Restriction);
633
private void CompileSimpleContentExtension(
XmlSchemaComplexType
complexType, XmlSchemaSimpleContentExtension simpleExtension) {
634
XmlSchemaComplexType
baseType = null;
636
baseType = (
XmlSchemaComplexType
)complexType.Redefined;
650
baseType = bto as
XmlSchemaComplexType
;
664
private void CompileSimpleContentRestriction(
XmlSchemaComplexType
complexType, XmlSchemaSimpleContentRestriction simpleRestriction) {
665
XmlSchemaComplexType
baseType = null;
668
baseType = (
XmlSchemaComplexType
)complexType.Redefined;
730
private void CompileComplexContentExtension(
XmlSchemaComplexType
complexType, XmlSchemaComplexContent complexContent, XmlSchemaComplexContentExtension complexExtension) {
731
XmlSchemaComplexType
baseType = null;
733
baseType = (
XmlSchemaComplexType
)complexType.Redefined;
783
private void CompileComplexContentRestriction(
XmlSchemaComplexType
complexType, XmlSchemaComplexContent complexContent, XmlSchemaComplexContentRestriction complexRestriction) {
784
XmlSchemaComplexType
baseType = null;
786
baseType = (
XmlSchemaComplexType
)complexType.Redefined;
821
private void CheckParticleDerivation(
XmlSchemaComplexType
complexType) {
822
XmlSchemaComplexType
baseType = complexType.BaseXmlSchemaType as
XmlSchemaComplexType
;
823
if (baseType != null && baseType !=
XmlSchemaComplexType
.AnyType && complexType.DerivedBy == XmlSchemaDerivationMethod.Restriction) {
1345
private void PushComplexType(
XmlSchemaComplexType
complexType) {
1349
private XmlSchemaContentType GetSchemaContentType(
XmlSchemaComplexType
complexType, XmlSchemaComplexContent complexContent, XmlSchemaParticle particle) {
1416
private void CompileLocalAttributes(
XmlSchemaComplexType
baseType,
XmlSchemaComplexType
derivedType, XmlSchemaObjectCollection attributes, XmlSchemaAnyAttribute anyAttribute, XmlSchemaDerivationMethod derivedBy) {
1425
(attribute.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType !=
XmlSchemaComplexType
.AnyType)) {
1446
(attributeValue.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType !=
XmlSchemaComplexType
.AnyType)) {
1835
xe.SetElementType(
XmlSchemaComplexType
.AnyType);
1836
decl =
XmlSchemaComplexType
.AnyType.ElementDecl.Clone();
1844
xe.SetElementType(
XmlSchemaComplexType
.AnyType);
1845
decl =
XmlSchemaComplexType
.AnyType.ElementDecl.Clone();
1850
if (xe.ElementSchemaType is
XmlSchemaComplexType
) {
1851
XmlSchemaComplexType
complexType = (
XmlSchemaComplexType
)xe.ElementSchemaType;
1868
XmlSchemaComplexType
ct = xe.ElementSchemaType as
XmlSchemaComplexType
;
1925
private ContentValidator CompileComplexContent(
XmlSchemaComplexType
complexType) {
1981
return
XmlSchemaComplexType
.AnyTypeContentValidator;
1985
return
XmlSchemaComplexType
.AnyTypeContentValidator;
2112
private void CompileParticleElements(
XmlSchemaComplexType
complexType, XmlSchemaParticle particle) {
2134
private void CompileCompexTypeElements(
XmlSchemaComplexType
complexType) {
2166
private
XmlSchemaComplexType
GetComplexType(XmlQualifiedName name) {
2167
XmlSchemaComplexType
type = this.schema.SchemaTypes[name] as
XmlSchemaComplexType
;
2177
if (type is
XmlSchemaComplexType
) {
2178
CompileComplexType((
XmlSchemaComplexType
)type);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (11)
451
else if (schema.Items[i] is
XmlSchemaComplexType
) {
452
XmlSchemaComplexType
complexType = (
XmlSchemaComplexType
)schema.Items[i];
525
else if (redefine.Items[i] is
XmlSchemaComplexType
) {
526
XmlSchemaComplexType
complexType = (
XmlSchemaComplexType
)redefine.Items[i];
535
if (type is
XmlSchemaComplexType
) {
640
private void CheckRefinedComplexType(
XmlSchemaComplexType
ctype) {
870
if (element.SchemaType is
XmlSchemaComplexType
) {
871
PreprocessComplexType((
XmlSchemaComplexType
)element.SchemaType, true);
1046
private void PreprocessComplexType(
XmlSchemaComplexType
complexType, bool local) {
System\Xml\Schema\SchemaSetCompiler.cs (66)
79
XmlSchemaComplexType
ct = type as
XmlSchemaComplexType
;
152
schemaTypes.Insert(DatatypeImplementation.QnAnyType,
XmlSchemaComplexType
.AnyType);
154
schemaForSchema.SchemaTypes.Replace(DatatypeImplementation.QnAnyType,
XmlSchemaComplexType
.AnyType);
165
XmlSchemaComplexType
ct = type as
XmlSchemaComplexType
;
189
XmlSchemaComplexType
type = (
XmlSchemaComplexType
)complexTypeStack.Pop();
196
XmlSchemaComplexType
localType = type as
XmlSchemaComplexType
;
203
XmlSchemaComplexType
localComplexType = element.ElementSchemaType as
XmlSchemaComplexType
;
240
private void CleanupComplexType(
XmlSchemaComplexType
complexType) {
284
CleanupComplexType(complexType.Redefined as
XmlSchemaComplexType
);
301
XmlSchemaComplexType
complexType = element.SchemaType as
XmlSchemaComplexType
;
623
private void CompileComplexType(
XmlSchemaComplexType
complexType) {
655
complexType.SetBaseSchemaType(
XmlSchemaComplexType
.AnyType);
656
CompileLocalAttributes(
XmlSchemaComplexType
.AnyType, complexType, complexType.Attributes, complexType.AnyAttribute, XmlSchemaDerivationMethod.Restriction);
691
private void CompileSimpleContentExtension(
XmlSchemaComplexType
complexType, XmlSchemaSimpleContentExtension simpleExtension) {
692
XmlSchemaComplexType
baseType = null;
694
baseType = (
XmlSchemaComplexType
)complexType.Redefined;
708
baseType = bto as
XmlSchemaComplexType
;
722
private void CompileSimpleContentRestriction(
XmlSchemaComplexType
complexType, XmlSchemaSimpleContentRestriction simpleRestriction) {
723
XmlSchemaComplexType
baseType = null;
726
baseType = (
XmlSchemaComplexType
)complexType.Redefined;
788
private void CompileComplexContentExtension(
XmlSchemaComplexType
complexType, XmlSchemaComplexContent complexContent, XmlSchemaComplexContentExtension complexExtension) {
789
XmlSchemaComplexType
baseType = null;
791
baseType = (
XmlSchemaComplexType
)complexType.Redefined;
842
private void CompileComplexContentRestriction(
XmlSchemaComplexType
complexType, XmlSchemaComplexContent complexContent, XmlSchemaComplexContentRestriction complexRestriction) {
843
XmlSchemaComplexType
baseType = null;
845
baseType = (
XmlSchemaComplexType
)complexType.Redefined;
880
private void CheckParticleDerivation(
XmlSchemaComplexType
complexType) {
881
XmlSchemaComplexType
baseType = complexType.BaseXmlSchemaType as
XmlSchemaComplexType
;
883
if (baseType != null && baseType !=
XmlSchemaComplexType
.AnyType && complexType.DerivedBy == XmlSchemaDerivationMethod.Restriction) {
906
else if (baseType ==
XmlSchemaComplexType
.AnyType) { //The complex type itself is not explicitly derived by restriction but it could have local elements which have anonymous types that are derived by restriction
911
XmlSchemaComplexType
localComplexType = localElement.ElementSchemaType as
XmlSchemaComplexType
;
1619
private void PushComplexType(
XmlSchemaComplexType
complexType) {
1623
private XmlSchemaContentType GetSchemaContentType(
XmlSchemaComplexType
complexType, XmlSchemaComplexContent complexContent, XmlSchemaParticle particle) {
1695
private void CompileLocalAttributes(
XmlSchemaComplexType
baseType,
XmlSchemaComplexType
derivedType, XmlSchemaObjectCollection attributes, XmlSchemaAnyAttribute anyAttribute, XmlSchemaDerivationMethod derivedBy) {
1704
(attr.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType !=
XmlSchemaComplexType
.AnyType)) {
1725
(attribute.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType !=
XmlSchemaComplexType
.AnyType)) {
1919
private bool IsProcessContentsRestricted(
XmlSchemaComplexType
baseType, XmlSchemaAnyAttribute derivedAttributeWildcard, XmlSchemaAnyAttribute baseAttributeWildcard) {
1920
if (baseType ==
XmlSchemaComplexType
.AnyType) {
2181
xe.SetElementType(
XmlSchemaComplexType
.AnyType);
2182
decl =
XmlSchemaComplexType
.AnyType.ElementDecl.Clone();
2190
xe.SetElementType(
XmlSchemaComplexType
.AnyType);
2191
decl =
XmlSchemaComplexType
.AnyType.ElementDecl.Clone();
2196
if (xe.ElementSchemaType is
XmlSchemaComplexType
) {
2197
XmlSchemaComplexType
complexType = (
XmlSchemaComplexType
)xe.ElementSchemaType;
2215
XmlSchemaComplexType
ct = xe.ElementSchemaType as
XmlSchemaComplexType
;
2280
private ContentValidator CompileComplexContent(
XmlSchemaComplexType
complexType) {
2336
return
XmlSchemaComplexType
.AnyTypeContentValidator;
2340
return
XmlSchemaComplexType
.AnyTypeContentValidator;
2469
private void CompileParticleElements(
XmlSchemaComplexType
complexType, XmlSchemaParticle particle) {
2504
private void CompileComplexTypeElements(
XmlSchemaComplexType
complexType) {
2531
private
XmlSchemaComplexType
GetComplexType(XmlQualifiedName name) {
2532
XmlSchemaComplexType
type = schemaTypes[name] as
XmlSchemaComplexType
;
2542
if (type is
XmlSchemaComplexType
) {
2543
CompileComplexType((
XmlSchemaComplexType
)type);
System\Xml\Schema\XmlSchema.cs (3)
337
XmlElement("complexType", typeof(
XmlSchemaComplexType
)),
554
XmlSchemaComplexType
complexType;
558
if ((complexType = items[i] as
XmlSchemaComplexType
) != null) {
System\Xml\Schema\XmlSchemaAttributeGroup.cs (2)
108
if (
XmlSchemaComplexType
.HasAttributeQNameRef(this.attributes)) { //If a ref/type name is present
109
newGroup.attributes =
XmlSchemaComplexType
.CloneAttributes(this.attributes);
System\Xml\Schema\XmlSchemaComplexType.cs (10)
32
static
XmlSchemaComplexType
anyTypeLax;
33
static
XmlSchemaComplexType
anyTypeSkip;
34
static
XmlSchemaComplexType
untypedAnyType;
60
static
XmlSchemaComplexType
CreateAnyType(XmlSchemaContentProcessing processContents) {
61
XmlSchemaComplexType
localAnyType = new XmlSchemaComplexType();
106
internal static
XmlSchemaComplexType
AnyType {
111
internal static
XmlSchemaComplexType
UntypedAnyType {
116
internal static
XmlSchemaComplexType
AnyTypeSkip {
359
XmlSchemaComplexType
complexType = (
XmlSchemaComplexType
)MemberwiseClone();
System\Xml\Schema\XmlSchemaElement.cs (3)
174
[XmlElement("complexType", typeof(
XmlSchemaComplexType
)),
330
XmlSchemaComplexType
complexType = this.type as
XmlSchemaComplexType
;
System\Xml\Schema\XmlSchemaGroup.cs (2)
86
if (
XmlSchemaComplexType
.HasParticleRef(this.particle, parentSchema)) {
87
newGroup.particle =
XmlSchemaComplexType
.CloneParticle(this.particle, parentSchema) as XmlSchemaGroupBase;
System\Xml\Schema\XmlSchemaRedefine.cs (1)
37
XmlElement("complexType", typeof(
XmlSchemaComplexType
)),
System\Xml\Schema\XmlSchemaSet.cs (1)
1305
if (item is
XmlSchemaComplexType
) {
System\Xml\Schema\XmlSchemaType.cs (9)
56
public static
XmlSchemaComplexType
GetBuiltInComplexType(XmlTypeCode typeCode) {
58
return
XmlSchemaComplexType
.AnyType;
67
public static
XmlSchemaComplexType
GetBuiltInComplexType(XmlQualifiedName qualifiedName) {
71
if (qualifiedName.Equals(
XmlSchemaComplexType
.AnyType.QualifiedName)) {
72
return
XmlSchemaComplexType
.AnyType;
74
if (qualifiedName.Equals(
XmlSchemaComplexType
.UntypedAnyType.QualifiedName)) {
75
return
XmlSchemaComplexType
.UntypedAnyType;
176
if (this ==
XmlSchemaComplexType
.AnyType) {
261
if (baseType ==
XmlSchemaComplexType
.AnyType) { //Not checking for restriction blocked since all types are implicitly derived by restriction from xs:anyType
System\Xml\Schema\XmlSchemaValidator.cs (2)
555
XmlSchemaComplexType
ct = currentElementDecl.SchemaType as
XmlSchemaComplexType
;
System\Xml\Schema\XsdBuilder.cs (2)
640
private
XmlSchemaComplexType
complexType;
992
this.complexType = (
XmlSchemaComplexType
)container;
System\Xml\Serialization\ImportContext.cs (3)
294
if (item is
XmlSchemaComplexType
) {
295
XmlSchemaComplexType
ct = (
XmlSchemaComplexType
)item;
System\Xml\Serialization\SchemaObjectWriter.cs (7)
64
else if (o is
XmlSchemaComplexType
) {
65
return ((
XmlSchemaComplexType
)o).QualifiedName;
282
if (t == typeof(
XmlSchemaComplexType
)) {
283
Write35_XmlSchemaComplexType((
XmlSchemaComplexType
)o);
664
void Write35_XmlSchemaComplexType(
XmlSchemaComplexType
o) {
847
if (o.SchemaType is
XmlSchemaComplexType
) {
848
Write35_XmlSchemaComplexType((
XmlSchemaComplexType
)o.SchemaType);
System\Xml\Serialization\SoapSchemaExporter.cs (7)
199
XmlSchemaComplexType
type = (
XmlSchemaComplexType
)types[mapping];
278
XmlSchemaComplexType
type = (
XmlSchemaComplexType
)types[mapping];
305
XmlSchemaComplexType
type = (
XmlSchemaComplexType
)types[mapping];
320
void ExportTypeMembers(
XmlSchemaComplexType
type, MemberMapping[] members, string ns) {
System\Xml\Serialization\SoapSchemaImporter.cs (12)
125
XmlSchemaComplexType
type = new XmlSchemaComplexType();
187
if (element.SchemaType is
XmlSchemaComplexType
) {
188
mapping = ImportType((
XmlSchemaComplexType
)element.SchemaType, ns, false);
234
if (type is
XmlSchemaComplexType
)
235
mapping = ImportType((
XmlSchemaComplexType
)type, name.Namespace, excludeFromImport);
246
TypeMapping ImportType(
XmlSchemaComplexType
type, string typeNs, bool excludeFromImport) {
258
TypeMapping ImportAnyType(
XmlSchemaComplexType
type, string typeNs){
270
StructMapping ImportStructType(
XmlSchemaComplexType
type, string typeNs, bool excludeFromImport) {
314
MemberMapping[] ImportTypeMembers(
XmlSchemaComplexType
type, string typeNs, CodeIdentifiers members) {
419
XmlSchemaContentModel model = ((
XmlSchemaComplexType
)type).ContentModel;
645
object type = Schemas.Find(name, typeof(
XmlSchemaComplexType
));
657
object type = Schemas.Find(name, typeof(
XmlSchemaComplexType
));
System\Xml\Serialization\XmlSchemaExporter.cs (17)
126
XmlSchemaComplexType
complexType = schemaType as
XmlSchemaComplexType
;
158
XmlSchemaComplexType
type = new XmlSchemaComplexType();
200
XmlSchemaComplexType
type = new XmlSchemaComplexType();
396
XmlSchemaComplexType
type = new XmlSchemaComplexType();
414
XmlSchemaComplexType
type = new XmlSchemaComplexType();
463
XmlSchemaComplexType
type = new XmlSchemaComplexType();
486
XmlSchemaComplexType
type = new XmlSchemaComplexType();
505
XmlSchemaComplexType
type = new XmlSchemaComplexType();
551
XmlSchemaComplexType
type = (
XmlSchemaComplexType
) types[currentMapping];
606
void ExportAttributeAccessor(
XmlSchemaComplexType
type, AttributeAccessor accessor, bool valueTypeOptional, string ns) {
867
XmlSchemaComplexType
type = (
XmlSchemaComplexType
)types[mapping];
895
model.IsMixed = XmlSchemaImporter.IsMixed((
XmlSchemaComplexType
)types[mapping.BaseMapping]);
922
void ExportTypeMembers(
XmlSchemaComplexType
type, MemberMapping[] members, string name, string ns, bool hasSimpleContent, bool openModel) {
1043
void AddXmlnsAnnotation(
XmlSchemaComplexType
type, string xmlnsMemberName) {
System\Xml\Serialization\XmlSchemaImporter.cs (20)
185
XmlSchemaComplexType
type = new XmlSchemaComplexType();
254
XmlSchemaComplexType
type = new XmlSchemaComplexType();
351
if (element.SchemaType is
XmlSchemaComplexType
)
352
mapping = ImportType((
XmlSchemaComplexType
)element.SchemaType, ns, identifier, desiredMappingType, baseType, TypeFlags.CanBeElementValue);
474
if (type is
XmlSchemaComplexType
) {
475
mapping = ImportType((
XmlSchemaComplexType
)type, name.Namespace, name.Name, desiredMappingType, baseType, flags);
488
TypeMapping ImportType(
XmlSchemaComplexType
type, string typeNs, string identifier, Type desiredMappingType, Type baseType, TypeFlags flags) {
574
if (type is
XmlSchemaComplexType
) {
575
if (((
XmlSchemaComplexType
)type).IsAbstract)
694
if (!(type is
XmlSchemaComplexType
))
697
XmlSchemaComplexType
ct = (
XmlSchemaComplexType
)type;
711
if (type is
XmlSchemaComplexType
) {
713
XmlSchemaComplexType
ct = (
XmlSchemaComplexType
)type;
1181
if (!(type is
XmlSchemaComplexType
)) return null;
1263
if (refType is
XmlSchemaComplexType
)
1599
if (sourceType is
XmlSchemaComplexType
) return null;
1777
object type = Schemas.Find(name, typeof(
XmlSchemaComplexType
));
1779
return (
XmlSchemaComplexType
)type;
System\Xml\Serialization\XmlSchemas.cs (1)
714
XmlSchemaComplexType
type = new XmlSchemaComplexType();