315 references to XmlSchemaDerivationMethod
System.Data.SqlXml (6)
System\Xml\Xsl\XmlQueryType.cs (3)
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 (3)
55
while (schemaType.DerivedBy ==
XmlSchemaDerivationMethod
.Restriction)
59
if (schemaType.DerivedBy ==
XmlSchemaDerivationMethod
.List)
63
Debug.Assert(schemaType.DerivedBy ==
XmlSchemaDerivationMethod
.Union);
System.ServiceModel.Discovery (1)
System\ServiceModel\Discovery\SchemaUtility.cs (1)
553
schema.BlockDefault =
XmlSchemaDerivationMethod
.All;
System.Web.Services (45)
System\Web\Services\Description\ServiceDescriptionSerializer.cs (45)
1816
if (((global::System.Xml.Schema.
XmlSchemaDerivationMethod
)o.@BlockDefault) != (global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@None)) {
1817
WriteAttribute(@"blockDefault", @"", Write7_XmlSchemaDerivationMethod(((global::System.Xml.Schema.
XmlSchemaDerivationMethod
)o.@BlockDefault)));
1819
if (((global::System.Xml.Schema.
XmlSchemaDerivationMethod
)o.@FinalDefault) != (global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@None)) {
1820
WriteAttribute(@"finalDefault", @"", Write7_XmlSchemaDerivationMethod(((global::System.Xml.Schema.
XmlSchemaDerivationMethod
)o.@FinalDefault)));
2235
if (((global::System.Xml.Schema.
XmlSchemaDerivationMethod
)o.@Block) != (global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@None)) {
2236
WriteAttribute(@"block", @"", Write7_XmlSchemaDerivationMethod(((global::System.Xml.Schema.
XmlSchemaDerivationMethod
)o.@Block)));
2239
if (((global::System.Xml.Schema.
XmlSchemaDerivationMethod
)o.@Final) != (global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@None)) {
2240
WriteAttribute(@"final", @"", Write7_XmlSchemaDerivationMethod(((global::System.Xml.Schema.
XmlSchemaDerivationMethod
)o.@Final)));
2477
if (((global::System.Xml.Schema.
XmlSchemaDerivationMethod
)o.@Final) != (global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@None)) {
2478
WriteAttribute(@"final", @"", Write7_XmlSchemaDerivationMethod(((global::System.Xml.Schema.
XmlSchemaDerivationMethod
)o.@Final)));
3075
string Write7_XmlSchemaDerivationMethod(global::System.Xml.Schema.
XmlSchemaDerivationMethod
v) {
3078
case global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@Empty: s = @""; break;
3079
case global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@Substitution: s = @"substitution"; break;
3080
case global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@Extension: s = @"extension"; break;
3081
case global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@Restriction: s = @"restriction"; break;
3082
case global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@List: s = @"list"; break;
3083
case global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@Union: s = @"union"; break;
3084
case global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@All: s = @"#all"; break;
3091
@"#all" }, new System.Int64[] { (long)global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@Empty,
3092
(long)global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@Substitution,
3093
(long)global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@Extension,
3094
(long)global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@Restriction,
3095
(long)global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@List,
3096
(long)global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@Union,
3097
(long)global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@All }, @"System.Xml.Schema.XmlSchemaDerivationMethod"); break;
3129
if (((global::System.Xml.Schema.
XmlSchemaDerivationMethod
)o.@Final) != (global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@None)) {
3130
WriteAttribute(@"final", @"", Write7_XmlSchemaDerivationMethod(((global::System.Xml.Schema.
XmlSchemaDerivationMethod
)o.@Final)));
3135
if (((global::System.Xml.Schema.
XmlSchemaDerivationMethod
)o.@Block) != (global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@None)) {
3136
WriteAttribute(@"block", @"", Write7_XmlSchemaDerivationMethod(((global::System.Xml.Schema.
XmlSchemaDerivationMethod
)o.@Block)));
8658
h.Add(@"", (long)global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@Empty);
8659
h.Add(@"substitution", (long)global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@Substitution);
8660
h.Add(@"extension", (long)global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@Extension);
8661
h.Add(@"restriction", (long)global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@Restriction);
8662
h.Add(@"list", (long)global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@List);
8663
h.Add(@"union", (long)global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@Union);
8664
h.Add(@"#all", (long)global::System.Xml.Schema.
XmlSchemaDerivationMethod
.@All);
8671
global::System.Xml.Schema.
XmlSchemaDerivationMethod
Read7_XmlSchemaDerivationMethod(string s) {
8672
return (global::System.Xml.Schema.
XmlSchemaDerivationMethod
)ToEnum(s, XmlSchemaDerivationMethodValues, @"global::System.Xml.Schema.XmlSchemaDerivationMethod");
System.Xml (263)
System\Xml\Schema\DataTypeImplementation.cs (2)
182
derivedType.SetDerivedBy(
XmlSchemaDerivationMethod
.Restriction);
192
derivedType.SetDerivedBy(
XmlSchemaDerivationMethod
.List);
System\Xml\Schema\Preprocessor.cs (62)
45
XmlSchemaDerivationMethod
blockDefault;
46
XmlSchemaDerivationMethod
finalDefault;
65
const
XmlSchemaDerivationMethod
schemaBlockDefaultAllowed =
XmlSchemaDerivationMethod
.Restriction |
XmlSchemaDerivationMethod
.Extension |
XmlSchemaDerivationMethod
.Substitution;
66
const
XmlSchemaDerivationMethod
schemaFinalDefaultAllowed =
XmlSchemaDerivationMethod
.Restriction |
XmlSchemaDerivationMethod
.Extension |
XmlSchemaDerivationMethod
.List |
XmlSchemaDerivationMethod
.Union;
67
const
XmlSchemaDerivationMethod
elementBlockAllowed =
XmlSchemaDerivationMethod
.Restriction |
XmlSchemaDerivationMethod
.Extension |
XmlSchemaDerivationMethod
.Substitution;
68
const
XmlSchemaDerivationMethod
elementFinalAllowed =
XmlSchemaDerivationMethod
.Restriction |
XmlSchemaDerivationMethod
.Extension;
69
const
XmlSchemaDerivationMethod
simpleTypeFinalAllowed =
XmlSchemaDerivationMethod
.Restriction |
XmlSchemaDerivationMethod
.Extension |
XmlSchemaDerivationMethod
.List |
XmlSchemaDerivationMethod
.Union;
70
const
XmlSchemaDerivationMethod
complexTypeBlockAllowed =
XmlSchemaDerivationMethod
.Restriction |
XmlSchemaDerivationMethod
.Extension;
71
const
XmlSchemaDerivationMethod
complexTypeFinalAllowed =
XmlSchemaDerivationMethod
.Restriction |
XmlSchemaDerivationMethod
.Extension;
855
if (schema.BlockDefault ==
XmlSchemaDerivationMethod
.All) {
856
this.blockDefault =
XmlSchemaDerivationMethod
.All;
858
else if (schema.BlockDefault ==
XmlSchemaDerivationMethod
.None) {
859
this.blockDefault =
XmlSchemaDerivationMethod
.Empty;
867
if (schema.FinalDefault ==
XmlSchemaDerivationMethod
.All) {
868
this.finalDefault =
XmlSchemaDerivationMethod
.All;
870
else if (schema.FinalDefault ==
XmlSchemaDerivationMethod
.None) {
871
this.finalDefault =
XmlSchemaDerivationMethod
.Empty;
1075
if (element.Final ==
XmlSchemaDerivationMethod
.All) {
1076
element.SetFinalResolved(
XmlSchemaDerivationMethod
.All);
1078
else if (element.Final ==
XmlSchemaDerivationMethod
.None) {
1079
if (this.finalDefault ==
XmlSchemaDerivationMethod
.All) {
1080
element.SetFinalResolved(
XmlSchemaDerivationMethod
.All);
1123
element.Block !=
XmlSchemaDerivationMethod
.None ||
1144
if (element.Final !=
XmlSchemaDerivationMethod
.None) {
1158
if (element.Block ==
XmlSchemaDerivationMethod
.All) {
1159
element.SetBlockResolved(
XmlSchemaDerivationMethod
.All);
1161
else if (element.Block ==
XmlSchemaDerivationMethod
.None) {
1162
if (this.blockDefault ==
XmlSchemaDerivationMethod
.All) {
1163
element.SetBlockResolved(
XmlSchemaDerivationMethod
.All);
1265
if (simpleType.Final ==
XmlSchemaDerivationMethod
.All) {
1266
simpleType.SetFinalResolved(
XmlSchemaDerivationMethod
.All);
1268
else if (simpleType.Final ==
XmlSchemaDerivationMethod
.None) {
1269
if (this.finalDefault ==
XmlSchemaDerivationMethod
.All) {
1270
simpleType.SetFinalResolved(
XmlSchemaDerivationMethod
.All);
1374
if (complexType.Block ==
XmlSchemaDerivationMethod
.All) {
1375
complexType.SetBlockResolved(
XmlSchemaDerivationMethod
.All);
1377
else if (complexType.Block ==
XmlSchemaDerivationMethod
.None) {
1386
if (complexType.Final ==
XmlSchemaDerivationMethod
.All) {
1387
complexType.SetFinalResolved(
XmlSchemaDerivationMethod
.All);
1389
else if (complexType.Final ==
XmlSchemaDerivationMethod
.None) {
1390
if (this.finalDefault ==
XmlSchemaDerivationMethod
.All) {
1391
complexType.SetFinalResolved(
XmlSchemaDerivationMethod
.All);
System\Xml\Schema\SchemaCollectionCompiler.cs (31)
351
if (examplar.FinalResolved ==
XmlSchemaDerivationMethod
.All) {
429
if ((type.FinalResolved &
XmlSchemaDerivationMethod
.List) != 0) {
440
simpleType.SetDerivedBy(
XmlSchemaDerivationMethod
.List);
461
if ((type.FinalResolved &
XmlSchemaDerivationMethod
.Restriction) != 0) {
472
simpleType.SetDerivedBy(
XmlSchemaDerivationMethod
.Restriction);
478
simpleType.SetDerivedBy(
XmlSchemaDerivationMethod
.Union);
516
if ((unionMember.FinalResolved &
XmlSchemaDerivationMethod
.Union) != 0) {
547
if (unionMember.DerivedBy ==
XmlSchemaDerivationMethod
.Restriction && (unionDatatype.HasLexicalFacets || unionDatatype.HasValueFacets) ) {
588
CompileLocalAttributes(XmlSchemaComplexType.AnyType, complexType, complexType.Attributes, complexType.AnyAttribute,
XmlSchemaDerivationMethod
.Restriction);
589
complexType.SetDerivedBy(
XmlSchemaDerivationMethod
.Restriction);
653
if ((baseType.FinalResolved &
XmlSchemaDerivationMethod
.Extension) != 0) {
660
complexType.SetDerivedBy(
XmlSchemaDerivationMethod
.Extension);
661
CompileLocalAttributes(baseType, complexType, simpleExtension.Attributes, simpleExtension.AnyAttribute,
XmlSchemaDerivationMethod
.Extension);
686
if(!XmlSchemaType.IsDerivedFromDatatype(simpleRestriction.BaseType.Datatype, baseType.Datatype,
XmlSchemaDerivationMethod
.None)) {
707
if ((baseType.FinalResolved &
XmlSchemaDerivationMethod
.Restriction) != 0) {
726
complexType.SetDerivedBy(
XmlSchemaDerivationMethod
.Restriction);
727
CompileLocalAttributes(baseType, complexType, simpleRestriction.Attributes, simpleRestriction.AnyAttribute,
XmlSchemaDerivationMethod
.Restriction);
750
if ((baseType.FinalResolved &
XmlSchemaDerivationMethod
.Extension) != 0) {
753
CompileLocalAttributes(baseType, complexType, complexExtension.Attributes, complexExtension.AnyAttribute,
XmlSchemaDerivationMethod
.Extension);
780
complexType.SetDerivedBy(
XmlSchemaDerivationMethod
.Extension);
803
if ((baseType.FinalResolved &
XmlSchemaDerivationMethod
.Restriction) != 0) {
806
CompileLocalAttributes(baseType, complexType, complexRestriction.Attributes, complexRestriction.AnyAttribute,
XmlSchemaDerivationMethod
.Restriction);
818
complexType.SetDerivedBy(
XmlSchemaDerivationMethod
.Restriction);
823
if (baseType != null && baseType != XmlSchemaComplexType.AnyType && complexType.DerivedBy ==
XmlSchemaDerivationMethod
.Restriction) {
878
if (!element.RefName.IsEmpty && substitution && (element.BlockResolved &
XmlSchemaDerivationMethod
.Substitution) == 0) {
1123
XmlSchemaType.IsDerivedFrom(derivedElement.ElementSchemaType, baseElement.ElementSchemaType, ~
XmlSchemaDerivationMethod
.Restriction);
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)) {
1469
if (derivedBy ==
XmlSchemaDerivationMethod
.Extension) {
1515
else if (attributeBase.AttributeSchemaType == null || attribute.AttributeSchemaType == null || !XmlSchemaType.IsDerivedFrom(attribute.AttributeSchemaType, attributeBase.AttributeSchemaType,
XmlSchemaDerivationMethod
.Empty)) {
System\Xml\Schema\SchemaCollectionpreProcessor.cs (61)
29
XmlSchemaDerivationMethod
blockDefault;
30
XmlSchemaDerivationMethod
finalDefault;
36
const
XmlSchemaDerivationMethod
schemaBlockDefaultAllowed =
XmlSchemaDerivationMethod
.Restriction |
XmlSchemaDerivationMethod
.Extension |
XmlSchemaDerivationMethod
.Substitution;
37
const
XmlSchemaDerivationMethod
schemaFinalDefaultAllowed =
XmlSchemaDerivationMethod
.Restriction |
XmlSchemaDerivationMethod
.Extension |
XmlSchemaDerivationMethod
.List |
XmlSchemaDerivationMethod
.Union;
38
const
XmlSchemaDerivationMethod
elementBlockAllowed =
XmlSchemaDerivationMethod
.Restriction |
XmlSchemaDerivationMethod
.Extension |
XmlSchemaDerivationMethod
.Substitution;
39
const
XmlSchemaDerivationMethod
elementFinalAllowed =
XmlSchemaDerivationMethod
.Restriction |
XmlSchemaDerivationMethod
.Extension;
40
const
XmlSchemaDerivationMethod
simpleTypeFinalAllowed =
XmlSchemaDerivationMethod
.Restriction |
XmlSchemaDerivationMethod
.List |
XmlSchemaDerivationMethod
.Union;
41
const
XmlSchemaDerivationMethod
complexTypeBlockAllowed =
XmlSchemaDerivationMethod
.Restriction |
XmlSchemaDerivationMethod
.Extension;
42
const
XmlSchemaDerivationMethod
complexTypeFinalAllowed =
XmlSchemaDerivationMethod
.Restriction |
XmlSchemaDerivationMethod
.Extension;
364
if (schema.BlockDefault ==
XmlSchemaDerivationMethod
.All) {
365
this.blockDefault =
XmlSchemaDerivationMethod
.All;
367
else if (schema.BlockDefault ==
XmlSchemaDerivationMethod
.None) {
368
this.blockDefault =
XmlSchemaDerivationMethod
.Empty;
376
if (schema.FinalDefault ==
XmlSchemaDerivationMethod
.All) {
377
this.finalDefault =
XmlSchemaDerivationMethod
.All;
379
else if (schema.FinalDefault ==
XmlSchemaDerivationMethod
.None) {
380
this.finalDefault =
XmlSchemaDerivationMethod
.Empty;
765
if (element.Final ==
XmlSchemaDerivationMethod
.All) {
766
element.SetFinalResolved(
XmlSchemaDerivationMethod
.All);
768
else if (element.Final ==
XmlSchemaDerivationMethod
.None) {
769
if (this.finalDefault ==
XmlSchemaDerivationMethod
.All) {
770
element.SetFinalResolved(
XmlSchemaDerivationMethod
.All);
813
element.Block !=
XmlSchemaDerivationMethod
.None ||
834
if (element.Final !=
XmlSchemaDerivationMethod
.None) {
848
if (element.Block ==
XmlSchemaDerivationMethod
.All) {
849
element.SetBlockResolved(
XmlSchemaDerivationMethod
.All);
851
else if (element.Block ==
XmlSchemaDerivationMethod
.None) {
852
if (this.blockDefault ==
XmlSchemaDerivationMethod
.All) {
853
element.SetBlockResolved(
XmlSchemaDerivationMethod
.All);
953
if (simpleType.Final ==
XmlSchemaDerivationMethod
.All) {
954
simpleType.SetFinalResolved(
XmlSchemaDerivationMethod
.All);
956
else if (simpleType.Final ==
XmlSchemaDerivationMethod
.None) {
957
if (this.finalDefault ==
XmlSchemaDerivationMethod
.All) {
958
simpleType.SetFinalResolved(
XmlSchemaDerivationMethod
.All);
1060
if (complexType.Block ==
XmlSchemaDerivationMethod
.All) {
1061
complexType.SetBlockResolved(
XmlSchemaDerivationMethod
.All);
1063
else if (complexType.Block ==
XmlSchemaDerivationMethod
.None) {
1072
if (complexType.Final ==
XmlSchemaDerivationMethod
.All) {
1073
complexType.SetFinalResolved(
XmlSchemaDerivationMethod
.All);
1075
else if (complexType.Final ==
XmlSchemaDerivationMethod
.None) {
1076
if (this.finalDefault ==
XmlSchemaDerivationMethod
.All) {
1077
complexType.SetFinalResolved(
XmlSchemaDerivationMethod
.All);
System\Xml\Schema\SchemaElementDecl.cs (2)
29
XmlSchemaDerivationMethod
block;
132
internal
XmlSchemaDerivationMethod
Block {
System\Xml\Schema\SchemaSetCompiler.cs (45)
394
if (examplar.FinalResolved ==
XmlSchemaDerivationMethod
.All) {
402
if ((element.ElementDecl.Block &
XmlSchemaDerivationMethod
.Substitution) == 0) { //Chain only if substitution is not blocked
493
if ((type.FinalResolved &
XmlSchemaDerivationMethod
.List) != 0) {
504
simpleType.SetDerivedBy(
XmlSchemaDerivationMethod
.List);
528
if ((type.FinalResolved &
XmlSchemaDerivationMethod
.Restriction) != 0) {
539
simpleType.SetDerivedBy(
XmlSchemaDerivationMethod
.Restriction);
545
simpleType.SetDerivedBy(
XmlSchemaDerivationMethod
.Union);
583
if ((unionMember.FinalResolved &
XmlSchemaDerivationMethod
.Union) != 0) {
614
if (unionMember.DerivedBy ==
XmlSchemaDerivationMethod
.Restriction && (unionDatatype.HasLexicalFacets || unionDatatype.HasValueFacets) ) {
656
CompileLocalAttributes(XmlSchemaComplexType.AnyType, complexType, complexType.Attributes, complexType.AnyAttribute,
XmlSchemaDerivationMethod
.Restriction);
657
complexType.SetDerivedBy(
XmlSchemaDerivationMethod
.Restriction);
711
if ((baseType.FinalResolved &
XmlSchemaDerivationMethod
.Extension) != 0) {
718
complexType.SetDerivedBy(
XmlSchemaDerivationMethod
.Extension);
719
CompileLocalAttributes(baseType, complexType, simpleExtension.Attributes, simpleExtension.AnyAttribute,
XmlSchemaDerivationMethod
.Extension);
744
if(!XmlSchemaType.IsDerivedFromDatatype(simpleRestriction.BaseType.Datatype, baseType.Datatype,
XmlSchemaDerivationMethod
.None)) {
765
if ((baseType.FinalResolved &
XmlSchemaDerivationMethod
.Restriction) != 0) {
784
complexType.SetDerivedBy(
XmlSchemaDerivationMethod
.Restriction);
785
CompileLocalAttributes(baseType, complexType, simpleRestriction.Attributes, simpleRestriction.AnyAttribute,
XmlSchemaDerivationMethod
.Restriction);
801
if ((baseType.FinalResolved &
XmlSchemaDerivationMethod
.Extension) != 0) {
804
CompileLocalAttributes(baseType, complexType, complexExtension.Attributes, complexExtension.AnyAttribute,
XmlSchemaDerivationMethod
.Extension);
839
complexType.SetDerivedBy(
XmlSchemaDerivationMethod
.Extension);
856
if ((baseType.FinalResolved &
XmlSchemaDerivationMethod
.Restriction) != 0) {
859
CompileLocalAttributes(baseType, complexType, complexRestriction.Attributes, complexRestriction.AnyAttribute,
XmlSchemaDerivationMethod
.Restriction);
877
complexType.SetDerivedBy(
XmlSchemaDerivationMethod
.Restriction);
883
if (baseType != null && baseType != XmlSchemaComplexType.AnyType && complexType.DerivedBy ==
XmlSchemaDerivationMethod
.Restriction) {
972
if (!element.RefName.IsEmpty && (element.ElementDecl.Block &
XmlSchemaDerivationMethod
.Substitution) == 0) {
1297
XmlSchemaDerivationMethod
baseEffectiveBlock =
1298
baseElement.ElementDecl.Block ==
XmlSchemaDerivationMethod
.All ?
1299
XmlSchemaDerivationMethod
.Substitution |
XmlSchemaDerivationMethod
.Restriction |
XmlSchemaDerivationMethod
.Extension :
1301
XmlSchemaDerivationMethod
derivedEffectiveBlock =
1302
derivedElement.ElementDecl.Block ==
XmlSchemaDerivationMethod
.All ?
1303
XmlSchemaDerivationMethod
.Substitution |
XmlSchemaDerivationMethod
.Restriction |
XmlSchemaDerivationMethod
.Extension :
1312
XmlSchemaType.IsDerivedFrom(derivedElement.ElementSchemaType, baseElement.ElementSchemaType, ~(
XmlSchemaDerivationMethod
.Restriction |
XmlSchemaDerivationMethod
.List |
XmlSchemaDerivationMethod
.Union))) ) {
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)) {
1748
if (derivedBy ==
XmlSchemaDerivationMethod
.Extension) {
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)) {
System\Xml\Schema\XmlSchema.cs (8)
44
XmlSchemaDerivationMethod
blockDefault =
XmlSchemaDerivationMethod
.None;
45
XmlSchemaDerivationMethod
finalDefault =
XmlSchemaDerivationMethod
.None;
273
[XmlAttribute("blockDefault"), DefaultValue(
XmlSchemaDerivationMethod
.None)]
274
public
XmlSchemaDerivationMethod
BlockDefault {
283
[XmlAttribute("finalDefault"), DefaultValue(
XmlSchemaDerivationMethod
.None)]
284
public
XmlSchemaDerivationMethod
FinalDefault {
System\Xml\Schema\XmlSchemaComplexType.cs (8)
19
XmlSchemaDerivationMethod
block =
XmlSchemaDerivationMethod
.None;
27
XmlSchemaDerivationMethod
blockResolved;
148
[XmlAttribute("block"), DefaultValue(
XmlSchemaDerivationMethod
.None)]
149
public
XmlSchemaDerivationMethod
Block {
247
public
XmlSchemaDerivationMethod
BlockResolved {
292
internal void SetBlockResolved(
XmlSchemaDerivationMethod
value) {
428
this.blockResolved =
XmlSchemaDerivationMethod
.None;
System\Xml\Schema\XmlSchemaElement.cs (14)
26
XmlSchemaDerivationMethod
block =
XmlSchemaDerivationMethod
.None;
27
XmlSchemaDerivationMethod
final =
XmlSchemaDerivationMethod
.None;
40
XmlSchemaDerivationMethod
blockResolved;
41
XmlSchemaDerivationMethod
finalResolved;
63
[XmlAttribute("block"), DefaultValue(
XmlSchemaDerivationMethod
.None)]
64
public
XmlSchemaDerivationMethod
Block {
84
[XmlAttribute("final"), DefaultValue(
XmlSchemaDerivationMethod
.None)]
85
public
XmlSchemaDerivationMethod
Final {
238
public
XmlSchemaDerivationMethod
BlockResolved {
247
public
XmlSchemaDerivationMethod
FinalResolved {
270
internal void SetBlockResolved(
XmlSchemaDerivationMethod
value) {
274
internal void SetFinalResolved(
XmlSchemaDerivationMethod
value) {
System\Xml\Schema\XmlSchemaType.cs (12)
21
XmlSchemaDerivationMethod
final =
XmlSchemaDerivationMethod
.None;
22
XmlSchemaDerivationMethod
derivedBy;
25
XmlSchemaDerivationMethod
finalResolved;
94
[XmlAttribute("final"), DefaultValue(
XmlSchemaDerivationMethod
.None)]
95
public
XmlSchemaDerivationMethod
Final {
114
public
XmlSchemaDerivationMethod
FinalResolved {
150
public
XmlSchemaDerivationMethod
DerivedBy {
217
internal void SetFinalResolved(
XmlSchemaDerivationMethod
value) {
225
internal void SetDerivedBy(
XmlSchemaDerivationMethod
value) {
252
public static bool IsDerivedFrom(XmlSchemaType derivedType, XmlSchemaType baseType,
XmlSchemaDerivationMethod
except) {
292
internal static bool IsDerivedFromDatatype(XmlSchemaDatatype derivedDataType, XmlSchemaDatatype baseDataType,
XmlSchemaDerivationMethod
except) {
System\Xml\Schema\XmlSchemaValidator.cs (1)
1193
if ((headElem.BlockResolved &
XmlSchemaDerivationMethod
.Substitution) != 0) {
System\Xml\Schema\XmlValueConverter.cs (2)
3313
while (schemaType.DerivedBy ==
XmlSchemaDerivationMethod
.Restriction)
3317
Debug.Assert(schemaType.DerivedBy ==
XmlSchemaDerivationMethod
.Union);
System\Xml\Schema\XsdBuilder.cs (14)
602
(int)
XmlSchemaDerivationMethod
.Substitution,
603
(int)
XmlSchemaDerivationMethod
.Extension,
604
(int)
XmlSchemaDerivationMethod
.Restriction,
605
(int)
XmlSchemaDerivationMethod
.List,
606
(int)
XmlSchemaDerivationMethod
.Union,
607
(int)
XmlSchemaDerivationMethod
.All,
1098
builder.schema.FinalDefault = (
XmlSchemaDerivationMethod
)builder.ParseBlockFinalEnum(value, "finalDefault");
1102
builder.schema.BlockDefault = (
XmlSchemaDerivationMethod
)builder.ParseBlockFinalEnum(value, "blockDefault");
1275
builder.element.Block = (
XmlSchemaDerivationMethod
)builder.ParseBlockFinalEnum(value, "block");
1291
builder.element.Final = (
XmlSchemaDerivationMethod
)builder.ParseBlockFinalEnum(value, "final");
1392
builder.simpleType.Final = (
XmlSchemaDerivationMethod
)builder.ParseBlockFinalEnum(value, "final");
1503
builder.complexType.Block = (
XmlSchemaDerivationMethod
)builder.ParseBlockFinalEnum(value, "block");
1507
builder.complexType.Final = (
XmlSchemaDerivationMethod
)builder.ParseBlockFinalEnum(value, "final");
2311
if (r == (int)
XmlSchemaDerivationMethod
.All && value.Length > HashAllLength) { //#all is not allowed with other values
System\Xml\Serialization\SchemaObjectWriter.cs (1)
479
string Write11_XmlSchemaDerivationMethod(
XmlSchemaDerivationMethod
v) {