53 references to Restriction
System.Data.SqlXml (1)
System\Xml\Xsl\XmlQueryTypeFactory.cs (1)
55
while (schemaType.DerivedBy == XmlSchemaDerivationMethod.
Restriction
)
System.Web.Services (3)
System\Web\Services\Description\ServiceDescriptionSerializer.cs (3)
3081
case global::System.Xml.Schema.XmlSchemaDerivationMethod.
@Restriction
: s = @"restriction"; break;
3094
(long)global::System.Xml.Schema.XmlSchemaDerivationMethod.
@Restriction
,
8661
h.Add(@"restriction", (long)global::System.Xml.Schema.XmlSchemaDerivationMethod.
@Restriction
);
System.Xml (49)
System\Xml\Schema\DataTypeImplementation.cs (1)
182
derivedType.SetDerivedBy(XmlSchemaDerivationMethod.
Restriction
);
System\Xml\Schema\Preprocessor.cs (7)
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;
System\Xml\Schema\SchemaCollectionCompiler.cs (15)
461
if ((type.FinalResolved & XmlSchemaDerivationMethod.
Restriction
) != 0) {
472
simpleType.SetDerivedBy(XmlSchemaDerivationMethod.
Restriction
);
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
);
707
if ((baseType.FinalResolved & XmlSchemaDerivationMethod.
Restriction
) != 0) {
726
complexType.SetDerivedBy(XmlSchemaDerivationMethod.
Restriction
);
727
CompileLocalAttributes(baseType, complexType, simpleRestriction.Attributes, simpleRestriction.AnyAttribute, XmlSchemaDerivationMethod.
Restriction
);
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
) {
1123
XmlSchemaType.IsDerivedFrom(derivedElement.ElementSchemaType, baseElement.ElementSchemaType, ~XmlSchemaDerivationMethod.
Restriction
);
1425
(attribute.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.
Restriction
&& baseType != XmlSchemaComplexType.AnyType)) {
1446
(attributeValue.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.
Restriction
&& baseType != XmlSchemaComplexType.AnyType)) {
System\Xml\Schema\SchemaCollectionpreProcessor.cs (7)
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;
System\Xml\Schema\SchemaSetCompiler.cs (17)
528
if ((type.FinalResolved & XmlSchemaDerivationMethod.
Restriction
) != 0) {
539
simpleType.SetDerivedBy(XmlSchemaDerivationMethod.
Restriction
);
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
);
765
if ((baseType.FinalResolved & XmlSchemaDerivationMethod.
Restriction
) != 0) {
784
complexType.SetDerivedBy(XmlSchemaDerivationMethod.
Restriction
);
785
CompileLocalAttributes(baseType, complexType, simpleRestriction.Attributes, simpleRestriction.AnyAttribute, XmlSchemaDerivationMethod.
Restriction
);
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
) {
1299
XmlSchemaDerivationMethod.Substitution | XmlSchemaDerivationMethod.
Restriction
| XmlSchemaDerivationMethod.Extension :
1303
XmlSchemaDerivationMethod.Substitution | XmlSchemaDerivationMethod.
Restriction
| XmlSchemaDerivationMethod.Extension :
1312
XmlSchemaType.IsDerivedFrom(derivedElement.ElementSchemaType, baseElement.ElementSchemaType, ~(XmlSchemaDerivationMethod.
Restriction
| XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union))) ) {
1704
(attr.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.
Restriction
&& baseType != XmlSchemaComplexType.AnyType)) {
1725
(attribute.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.
Restriction
&& baseType != XmlSchemaComplexType.AnyType)) {
System\Xml\Schema\XmlValueConverter.cs (1)
3313
while (schemaType.DerivedBy == XmlSchemaDerivationMethod.
Restriction
)
System\Xml\Schema\XsdBuilder.cs (1)
604
(int)XmlSchemaDerivationMethod.
Restriction
,