50 references to Restriction
System.Private.Xml (50)
System\Xml\Schema\DataTypeImplementation.cs (1)
192
derivedType.SetDerivedBy(XmlSchemaDerivationMethod.
Restriction
);
System\Xml\Schema\Preprocessor.cs (7)
65
private const XmlSchemaDerivationMethod schemaBlockDefaultAllowed = XmlSchemaDerivationMethod.
Restriction
| XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.Substitution;
66
private const XmlSchemaDerivationMethod schemaFinalDefaultAllowed = XmlSchemaDerivationMethod.
Restriction
| XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union;
67
private const XmlSchemaDerivationMethod elementBlockAllowed = XmlSchemaDerivationMethod.
Restriction
| XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.Substitution;
68
private const XmlSchemaDerivationMethod elementFinalAllowed = XmlSchemaDerivationMethod.
Restriction
| XmlSchemaDerivationMethod.Extension;
69
private const XmlSchemaDerivationMethod simpleTypeFinalAllowed = XmlSchemaDerivationMethod.
Restriction
| XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union;
70
private const XmlSchemaDerivationMethod complexTypeBlockAllowed = XmlSchemaDerivationMethod.
Restriction
| XmlSchemaDerivationMethod.Extension;
71
private const XmlSchemaDerivationMethod complexTypeFinalAllowed = XmlSchemaDerivationMethod.
Restriction
| XmlSchemaDerivationMethod.Extension;
System\Xml\Schema\SchemaCollectionCompiler.cs (15)
586
if ((type.FinalResolved & XmlSchemaDerivationMethod.
Restriction
) != 0)
600
simpleType.SetDerivedBy(XmlSchemaDerivationMethod.
Restriction
);
693
if (unionMember.DerivedBy == XmlSchemaDerivationMethod.
Restriction
&& (unionDatatype.HasLexicalFacets || unionDatatype.HasValueFacets))
746
CompileLocalAttributes(XmlSchemaComplexType.AnyType, complexType, complexType.Attributes, complexType.AnyAttribute, XmlSchemaDerivationMethod.
Restriction
);
747
complexType.SetDerivedBy(XmlSchemaDerivationMethod.
Restriction
);
896
if ((baseType.FinalResolved & XmlSchemaDerivationMethod.
Restriction
) != 0)
921
complexType.SetDerivedBy(XmlSchemaDerivationMethod.
Restriction
);
922
CompileLocalAttributes(baseType, complexType, simpleRestriction.Attributes, simpleRestriction.AnyAttribute, XmlSchemaDerivationMethod.
Restriction
);
1017
if ((baseType!.FinalResolved & XmlSchemaDerivationMethod.
Restriction
) != 0)
1022
CompileLocalAttributes(baseType, complexType, complexRestriction.Attributes, complexRestriction.AnyAttribute, XmlSchemaDerivationMethod.
Restriction
);
1038
complexType.SetDerivedBy(XmlSchemaDerivationMethod.
Restriction
);
1044
if (baseType != null && baseType != XmlSchemaComplexType.AnyType && complexType.DerivedBy == XmlSchemaDerivationMethod.
Restriction
)
1417
XmlSchemaType.IsDerivedFrom(derivedElement.ElementSchemaType, baseElement.ElementSchemaType, ~XmlSchemaDerivationMethod.
Restriction
);
1797
(attribute.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.
Restriction
&& baseType != XmlSchemaComplexType.AnyType))
1823
(attributeValue.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.
Restriction
&& baseType != XmlSchemaComplexType.AnyType))
System\Xml\Schema\SchemaCollectionpreProcessor.cs (7)
34
private const XmlSchemaDerivationMethod schemaBlockDefaultAllowed = XmlSchemaDerivationMethod.
Restriction
| XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.Substitution;
35
private const XmlSchemaDerivationMethod schemaFinalDefaultAllowed = XmlSchemaDerivationMethod.
Restriction
| XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union;
36
private const XmlSchemaDerivationMethod elementBlockAllowed = XmlSchemaDerivationMethod.
Restriction
| XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.Substitution;
37
private const XmlSchemaDerivationMethod elementFinalAllowed = XmlSchemaDerivationMethod.
Restriction
| XmlSchemaDerivationMethod.Extension;
38
private const XmlSchemaDerivationMethod simpleTypeFinalAllowed = XmlSchemaDerivationMethod.
Restriction
| XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union;
39
private const XmlSchemaDerivationMethod complexTypeBlockAllowed = XmlSchemaDerivationMethod.
Restriction
| XmlSchemaDerivationMethod.Extension;
40
private const XmlSchemaDerivationMethod complexTypeFinalAllowed = XmlSchemaDerivationMethod.
Restriction
| XmlSchemaDerivationMethod.Extension;
System\Xml\Schema\SchemaSetCompiler.cs (17)
676
if ((type.FinalResolved & XmlSchemaDerivationMethod.
Restriction
) != 0)
689
simpleType.SetDerivedBy(XmlSchemaDerivationMethod.
Restriction
);
782
if (unionMember.DerivedBy == XmlSchemaDerivationMethod.
Restriction
&& (unionDatatype.HasLexicalFacets || unionDatatype.HasValueFacets))
837
CompileLocalAttributes(XmlSchemaComplexType.AnyType, complexType, complexType.Attributes, complexType.AnyAttribute, XmlSchemaDerivationMethod.
Restriction
);
838
complexType.SetDerivedBy(XmlSchemaDerivationMethod.
Restriction
);
977
if ((baseType.FinalResolved & XmlSchemaDerivationMethod.
Restriction
) != 0)
1004
complexType.SetDerivedBy(XmlSchemaDerivationMethod.
Restriction
);
1005
CompileLocalAttributes(baseType, complexType, simpleRestriction.Attributes, simpleRestriction.AnyAttribute, XmlSchemaDerivationMethod.
Restriction
);
1097
if ((baseType.FinalResolved & XmlSchemaDerivationMethod.
Restriction
) != 0)
1101
CompileLocalAttributes(baseType, complexType, complexRestriction.Attributes, complexRestriction.AnyAttribute, XmlSchemaDerivationMethod.
Restriction
);
1122
complexType.SetDerivedBy(XmlSchemaDerivationMethod.
Restriction
);
1129
if (baseType != null && baseType != XmlSchemaComplexType.AnyType && complexType.DerivedBy == XmlSchemaDerivationMethod.
Restriction
)
1660
XmlSchemaDerivationMethod.Substitution | XmlSchemaDerivationMethod.
Restriction
| XmlSchemaDerivationMethod.Extension :
1664
XmlSchemaDerivationMethod.Substitution | XmlSchemaDerivationMethod.
Restriction
| XmlSchemaDerivationMethod.Extension :
1673
XmlSchemaType.IsDerivedFrom(derivedElement.ElementSchemaType, baseElement.ElementSchemaType, ~(XmlSchemaDerivationMethod.
Restriction
| XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union))))
2157
(attr.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.
Restriction
&& baseType != XmlSchemaComplexType.AnyType))
2183
(attribute.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.
Restriction
&& baseType != XmlSchemaComplexType.AnyType))
System\Xml\Schema\XmlValueConverter.cs (1)
3142
while (schemaType.DerivedBy == XmlSchemaDerivationMethod.
Restriction
)
System\Xml\Schema\XsdBuilder.cs (1)
605
(int)XmlSchemaDerivationMethod.
Restriction
,
System\Xml\Xsl\XmlQueryTypeFactory.cs (1)
55
while (schemaType.DerivedBy == XmlSchemaDerivationMethod.
Restriction
)