298 references to RestrictionFlags
System.Xml (298)
System\Xml\Schema\DataTypeImplementation.cs (120)
89
internal
RestrictionFlags
Flags = 0;
90
internal
RestrictionFlags
FixedFlags = 0;
451
RestrictionFlags
flags = restriction != null ? restriction.Flags : 0;
452
if (flags != 0 && (flags & (
RestrictionFlags
.Pattern|
RestrictionFlags
.WhiteSpace|
RestrictionFlags
.TotalDigits|
RestrictionFlags
.FractionDigits)) != 0) {
460
RestrictionFlags
flags = restriction != null ? restriction.Flags : 0;
461
if (flags != 0 && (flags & (
RestrictionFlags
.Length |
RestrictionFlags
.MinLength |
RestrictionFlags
.MaxLength |
RestrictionFlags
.MaxExclusive |
RestrictionFlags
.MaxInclusive |
RestrictionFlags
.MinExclusive |
RestrictionFlags
.MinInclusive |
RestrictionFlags
.TotalDigits |
RestrictionFlags
.FractionDigits |
RestrictionFlags
.Enumeration)) != 0)
473
internal abstract
RestrictionFlags
ValidRestrictionFlags { get; }
919
internal override
RestrictionFlags
ValidRestrictionFlags {
921
return
RestrictionFlags
.Length|
RestrictionFlags
.MinLength|
RestrictionFlags
.MaxLength|
RestrictionFlags
.Enumeration|
RestrictionFlags
.WhiteSpace |
RestrictionFlags
.Pattern;
1081
internal override
RestrictionFlags
ValidRestrictionFlags {
1083
return
RestrictionFlags
.Pattern|
1084
RestrictionFlags
.Enumeration;
1218
internal override
RestrictionFlags
ValidRestrictionFlags { get { return 0;}}
1290
internal override
RestrictionFlags
ValidRestrictionFlags {
1292
return
RestrictionFlags
.Length|
1293
RestrictionFlags
.MinLength|
1294
RestrictionFlags
.MaxLength|
1295
RestrictionFlags
.Pattern|
1296
RestrictionFlags
.Enumeration|
1297
RestrictionFlags
.WhiteSpace;
1358
internal override
RestrictionFlags
ValidRestrictionFlags {
1360
return
RestrictionFlags
.Pattern|
1361
RestrictionFlags
.WhiteSpace;
1432
internal override
RestrictionFlags
ValidRestrictionFlags {
1434
return
RestrictionFlags
.Pattern|
1435
RestrictionFlags
.Enumeration|
1436
RestrictionFlags
.WhiteSpace|
1437
RestrictionFlags
.MinExclusive|
1438
RestrictionFlags
.MinInclusive|
1439
RestrictionFlags
.MaxExclusive|
1440
RestrictionFlags
.MaxInclusive;
1515
internal override
RestrictionFlags
ValidRestrictionFlags {
1517
return
RestrictionFlags
.Pattern|
1518
RestrictionFlags
.Enumeration|
1519
RestrictionFlags
.WhiteSpace|
1520
RestrictionFlags
.MinExclusive|
1521
RestrictionFlags
.MinInclusive|
1522
RestrictionFlags
.MaxExclusive|
1523
RestrictionFlags
.MaxInclusive;
1601
internal override
RestrictionFlags
ValidRestrictionFlags {
1603
return
RestrictionFlags
.TotalDigits|
1604
RestrictionFlags
.FractionDigits|
1605
RestrictionFlags
.Pattern|
1606
RestrictionFlags
.Enumeration|
1607
RestrictionFlags
.WhiteSpace|
1608
RestrictionFlags
.MinExclusive|
1609
RestrictionFlags
.MinInclusive|
1610
RestrictionFlags
.MaxExclusive|
1611
RestrictionFlags
.MaxInclusive;
1687
internal override
RestrictionFlags
ValidRestrictionFlags {
1689
return
RestrictionFlags
.Pattern|
1690
RestrictionFlags
.Enumeration|
1691
RestrictionFlags
.WhiteSpace|
1692
RestrictionFlags
.MinExclusive|
1693
RestrictionFlags
.MinInclusive|
1694
RestrictionFlags
.MaxExclusive|
1695
RestrictionFlags
.MaxInclusive;
1831
internal override
RestrictionFlags
ValidRestrictionFlags {
1833
return
RestrictionFlags
.Pattern|
1834
RestrictionFlags
.Enumeration|
1835
RestrictionFlags
.WhiteSpace|
1836
RestrictionFlags
.MinExclusive|
1837
RestrictionFlags
.MinInclusive|
1838
RestrictionFlags
.MaxExclusive|
1839
RestrictionFlags
.MaxInclusive;
2202
internal override
RestrictionFlags
ValidRestrictionFlags {
2204
return
RestrictionFlags
.Length|
2205
RestrictionFlags
.MinLength|
2206
RestrictionFlags
.MaxLength|
2207
RestrictionFlags
.Pattern|
2208
RestrictionFlags
.Enumeration|
2209
RestrictionFlags
.WhiteSpace;
2294
internal override
RestrictionFlags
ValidRestrictionFlags {
2296
return
RestrictionFlags
.Length|
2297
RestrictionFlags
.MinLength|
2298
RestrictionFlags
.MaxLength|
2299
RestrictionFlags
.Pattern|
2300
RestrictionFlags
.Enumeration|
2301
RestrictionFlags
.WhiteSpace;
2390
internal override
RestrictionFlags
ValidRestrictionFlags {
2392
return
RestrictionFlags
.Length|
2393
RestrictionFlags
.MinLength|
2394
RestrictionFlags
.MaxLength|
2395
RestrictionFlags
.Pattern|
2396
RestrictionFlags
.Enumeration|
2397
RestrictionFlags
.WhiteSpace;
2469
internal override
RestrictionFlags
ValidRestrictionFlags {
2471
return
RestrictionFlags
.Length|
2472
RestrictionFlags
.MinLength|
2473
RestrictionFlags
.MaxLength|
2474
RestrictionFlags
.Pattern|
2475
RestrictionFlags
.Enumeration|
2476
RestrictionFlags
.WhiteSpace;
2786
internal override
RestrictionFlags
ValidRestrictionFlags {
2788
return
RestrictionFlags
.Length|
2789
RestrictionFlags
.MinLength|
2790
RestrictionFlags
.MaxLength|
2791
RestrictionFlags
.Pattern|
2792
RestrictionFlags
.Enumeration|
2793
RestrictionFlags
.WhiteSpace;
2845
if (dt.Restriction != null && (dt.Restriction.Flags &
RestrictionFlags
.Enumeration) != 0) {
3503
internal override
RestrictionFlags
ValidRestrictionFlags { get { return 0; }} //XDR only
3592
internal override
RestrictionFlags
ValidRestrictionFlags { get { return 0; }}
System\Xml\Schema\FacetChecker.cs (178)
29
RestrictionFlags
baseFlags;
30
RestrictionFlags
baseFixedFlags;
31
RestrictionFlags
validRestrictionFlags;
57
CheckProhibitedFlag(facet,
RestrictionFlags
.Length, Res.Sch_LengthFacetProhibited);
58
CheckDupFlag(facet,
RestrictionFlags
.Length, Res.Sch_DupLengthFacet);
61
if ((baseFixedFlags &
RestrictionFlags
.Length) != 0) {
66
if ((baseFlags &
RestrictionFlags
.Length) != 0) {
72
if ((baseFlags &
RestrictionFlags
.MinLength) != 0) {
78
if ((baseFlags &
RestrictionFlags
.MaxLength) != 0) {
83
SetFlag(facet,
RestrictionFlags
.Length);
87
CheckProhibitedFlag(facet,
RestrictionFlags
.MinLength, Res.Sch_MinLengthFacetProhibited);
88
CheckDupFlag(facet,
RestrictionFlags
.MinLength, Res.Sch_DupMinLengthFacet);
91
if ((baseFixedFlags &
RestrictionFlags
.MinLength) != 0) {
96
if ((baseFlags &
RestrictionFlags
.MinLength) != 0) {
101
if ((baseFlags &
RestrictionFlags
.Length) != 0) {
106
SetFlag(facet,
RestrictionFlags
.MinLength);
110
CheckProhibitedFlag(facet,
RestrictionFlags
.MaxLength, Res.Sch_MaxLengthFacetProhibited);
111
CheckDupFlag(facet,
RestrictionFlags
.MaxLength, Res.Sch_DupMaxLengthFacet);
114
if ((baseFixedFlags &
RestrictionFlags
.MaxLength) != 0) {
119
if ((baseFlags &
RestrictionFlags
.MaxLength) != 0) {
124
if ((baseFlags &
RestrictionFlags
.Length) != 0) {
129
SetFlag(facet,
RestrictionFlags
.MaxLength);
133
CheckProhibitedFlag(facet,
RestrictionFlags
.Pattern, Res.Sch_PatternFacetProhibited);
145
SetFlag(facet,
RestrictionFlags
.Pattern);
149
CheckProhibitedFlag(facet,
RestrictionFlags
.Enumeration, Res.Sch_EnumerationFacetProhibited);
154
SetFlag(facet,
RestrictionFlags
.Enumeration);
158
CheckProhibitedFlag(facet,
RestrictionFlags
.WhiteSpace, Res.Sch_WhiteSpaceFacetProhibited);
159
CheckDupFlag(facet,
RestrictionFlags
.WhiteSpace, Res.Sch_DupWhiteSpaceFacet);
172
if ((baseFixedFlags &
RestrictionFlags
.WhiteSpace) != 0) {
179
if ((baseFlags &
RestrictionFlags
.WhiteSpace) != 0) {
195
SetFlag(facet,
RestrictionFlags
.WhiteSpace);
199
CheckProhibitedFlag(facet,
RestrictionFlags
.MaxInclusive, Res.Sch_MaxInclusiveFacetProhibited);
200
CheckDupFlag(facet,
RestrictionFlags
.MaxInclusive, Res.Sch_DupMaxInclusiveFacet);
203
if ((baseFixedFlags &
RestrictionFlags
.MaxInclusive) != 0) {
209
SetFlag(facet,
RestrictionFlags
.MaxInclusive);
213
CheckProhibitedFlag(facet,
RestrictionFlags
.MaxExclusive, Res.Sch_MaxExclusiveFacetProhibited);
214
CheckDupFlag(facet,
RestrictionFlags
.MaxExclusive, Res.Sch_DupMaxExclusiveFacet);
217
if ((baseFixedFlags &
RestrictionFlags
.MaxExclusive) != 0) {
223
SetFlag(facet,
RestrictionFlags
.MaxExclusive);
227
CheckProhibitedFlag(facet,
RestrictionFlags
.MinInclusive, Res.Sch_MinInclusiveFacetProhibited);
228
CheckDupFlag(facet,
RestrictionFlags
.MinInclusive, Res.Sch_DupMinInclusiveFacet);
231
if ((baseFixedFlags &
RestrictionFlags
.MinInclusive) != 0) {
237
SetFlag(facet,
RestrictionFlags
.MinInclusive);
241
CheckProhibitedFlag(facet,
RestrictionFlags
.MinExclusive, Res.Sch_MinExclusiveFacetProhibited);
242
CheckDupFlag(facet,
RestrictionFlags
.MinExclusive, Res.Sch_DupMinExclusiveFacet);
245
if ((baseFixedFlags &
RestrictionFlags
.MinExclusive) != 0) {
251
SetFlag(facet,
RestrictionFlags
.MinExclusive);
255
CheckProhibitedFlag(facet,
RestrictionFlags
.TotalDigits, Res.Sch_TotalDigitsFacetProhibited);
256
CheckDupFlag(facet,
RestrictionFlags
.TotalDigits, Res.Sch_DupTotalDigitsFacet);
260
if ((baseFixedFlags &
RestrictionFlags
.TotalDigits) != 0) {
265
if ((baseFlags &
RestrictionFlags
.TotalDigits) != 0) {
270
SetFlag(facet,
RestrictionFlags
.TotalDigits);
274
CheckProhibitedFlag(facet,
RestrictionFlags
.FractionDigits, Res.Sch_FractionDigitsFacetProhibited);
275
CheckDupFlag(facet,
RestrictionFlags
.FractionDigits, Res.Sch_DupFractionDigitsFacet);
281
if ((baseFlags &
RestrictionFlags
.FractionDigits) != 0) {
286
SetFlag(facet,
RestrictionFlags
.FractionDigits);
316
if ((baseFlags &
RestrictionFlags
.MaxInclusive) != 0) { //Base facet has maxInclusive
321
if ((baseFlags &
RestrictionFlags
.MaxExclusive) != 0) { //Base facet has maxExclusive
329
if ((baseFlags &
RestrictionFlags
.MaxExclusive) != 0) { //Base facet has maxExclusive
334
if ((baseFlags &
RestrictionFlags
.MaxInclusive) != 0) { //Base facet has maxInclusive
342
if ((baseFlags &
RestrictionFlags
.MinInclusive) != 0) { //Base facet has minInclusive
347
if ((baseFlags &
RestrictionFlags
.MinExclusive) != 0) { //Base facet has minExclusive
352
if ((baseFlags &
RestrictionFlags
.MaxExclusive) != 0) { //Base facet has maxExclusive
360
if ((baseFlags &
RestrictionFlags
.MinExclusive) != 0) { //Base facet has minExclusive
365
if ((baseFlags &
RestrictionFlags
.MinInclusive) != 0) { //Base facet has minInclusive
370
if ((baseFlags &
RestrictionFlags
.MaxExclusive) != 0) { //Base facet has maxExclusive
387
(derivedRestriction.Flags &
RestrictionFlags
.MaxInclusive) != 0 &&
388
(derivedRestriction.Flags &
RestrictionFlags
.MaxExclusive) != 0
393
(derivedRestriction.Flags &
RestrictionFlags
.MinInclusive) != 0 &&
394
(derivedRestriction.Flags &
RestrictionFlags
.MinExclusive) != 0
399
(derivedRestriction.Flags &
RestrictionFlags
.Length) != 0 &&
400
(derivedRestriction.Flags & (
RestrictionFlags
.MinLength|
RestrictionFlags
.MaxLength)) != 0
409
(derivedRestriction.Flags &
RestrictionFlags
.MinLength) != 0 &&
410
(derivedRestriction.Flags &
RestrictionFlags
.MaxLength) != 0
419
(derivedRestriction.Flags &
RestrictionFlags
.MinInclusive) != 0 &&
420
(derivedRestriction.Flags &
RestrictionFlags
.MaxInclusive) != 0
427
(derivedRestriction.Flags &
RestrictionFlags
.MinInclusive) != 0 &&
428
(derivedRestriction.Flags &
RestrictionFlags
.MaxExclusive) != 0
435
(derivedRestriction.Flags &
RestrictionFlags
.MinExclusive) != 0 &&
436
(derivedRestriction.Flags &
RestrictionFlags
.MaxExclusive) != 0
443
(derivedRestriction.Flags &
RestrictionFlags
.MinExclusive) != 0 &&
444
(derivedRestriction.Flags &
RestrictionFlags
.MaxInclusive) != 0
450
if ((derivedRestriction.Flags & (
RestrictionFlags
.TotalDigits|
RestrictionFlags
.FractionDigits)) == (
RestrictionFlags
.TotalDigits|
RestrictionFlags
.FractionDigits)) {
461
(derivedRestriction.Flags &
RestrictionFlags
.Length) == 0 &&
462
(baseFlags &
RestrictionFlags
.Length) != 0
465
SetFlag(
RestrictionFlags
.Length);
468
(derivedRestriction.Flags &
RestrictionFlags
.MinLength) == 0 &&
469
(baseFlags &
RestrictionFlags
.MinLength) != 0
472
SetFlag(
RestrictionFlags
.MinLength);
475
(derivedRestriction.Flags &
RestrictionFlags
.MaxLength) == 0 &&
476
(baseFlags &
RestrictionFlags
.MaxLength) != 0
479
SetFlag(
RestrictionFlags
.MaxLength);
481
if ((baseFlags &
RestrictionFlags
.Pattern) != 0) {
488
SetFlag(
RestrictionFlags
.Pattern);
491
if ((baseFlags &
RestrictionFlags
.Enumeration) != 0) {
495
SetFlag(
RestrictionFlags
.Enumeration);
499
(derivedRestriction.Flags &
RestrictionFlags
.WhiteSpace) == 0 &&
500
(baseFlags &
RestrictionFlags
.WhiteSpace) != 0
503
SetFlag(
RestrictionFlags
.WhiteSpace);
506
(derivedRestriction.Flags &
RestrictionFlags
.MaxInclusive) == 0 &&
507
(baseFlags &
RestrictionFlags
.MaxInclusive) != 0
510
SetFlag(
RestrictionFlags
.MaxInclusive);
513
(derivedRestriction.Flags &
RestrictionFlags
.MaxExclusive) == 0 &&
514
(baseFlags &
RestrictionFlags
.MaxExclusive) != 0
517
SetFlag(
RestrictionFlags
.MaxExclusive);
520
(derivedRestriction.Flags &
RestrictionFlags
.MinInclusive) == 0 &&
521
(baseFlags &
RestrictionFlags
.MinInclusive) != 0
524
SetFlag(
RestrictionFlags
.MinInclusive);
527
(derivedRestriction.Flags &
RestrictionFlags
.MinExclusive) == 0 &&
528
(baseFlags &
RestrictionFlags
.MinExclusive) != 0
531
SetFlag(
RestrictionFlags
.MinExclusive);
534
(derivedRestriction.Flags &
RestrictionFlags
.TotalDigits) == 0 &&
535
(baseFlags &
RestrictionFlags
.TotalDigits) != 0
538
SetFlag(
RestrictionFlags
.TotalDigits);
541
(derivedRestriction.Flags &
RestrictionFlags
.FractionDigits) == 0 &&
542
(baseFlags &
RestrictionFlags
.FractionDigits) != 0
545
SetFlag(
RestrictionFlags
.FractionDigits);
615
private void CheckProhibitedFlag(XmlSchemaFacet facet,
RestrictionFlags
flag, string errorCode) {
621
private void CheckDupFlag(XmlSchemaFacet facet,
RestrictionFlags
flag, string errorCode) {
627
private void SetFlag(XmlSchemaFacet facet,
RestrictionFlags
flag) {
634
private void SetFlag(
RestrictionFlags
flag) {
703
else if (restriction != null && (restriction.Flags &
RestrictionFlags
.WhiteSpace) != 0) { //Restriction has whitespace facet specified
719
if (restriction != null && (restriction.Flags &
RestrictionFlags
.Pattern) != 0) {
841
RestrictionFlags
flags = restriction != null ? restriction.Flags : 0;
850
if ((flags &
RestrictionFlags
.MaxInclusive) != 0) {
856
if ((flags &
RestrictionFlags
.MaxExclusive) != 0) {
862
if ((flags &
RestrictionFlags
.MinInclusive) != 0) {
868
if ((flags &
RestrictionFlags
.MinExclusive) != 0) {
873
if ((flags &
RestrictionFlags
.Enumeration) != 0) {
878
return CheckTotalAndFractionDigits(value, restriction.TotalDigits, restriction.FractionDigits, ((flags &
RestrictionFlags
.TotalDigits) != 0), ((flags &
RestrictionFlags
.FractionDigits) != 0));
943
RestrictionFlags
flags = restriction != null ? restriction.Flags : 0;
946
if ((flags &
RestrictionFlags
.MaxInclusive) != 0) {
951
if ((flags &
RestrictionFlags
.MaxExclusive) != 0) {
957
if ((flags &
RestrictionFlags
.MinInclusive) != 0) {
963
if ((flags &
RestrictionFlags
.MinExclusive) != 0) {
968
if ((flags &
RestrictionFlags
.Enumeration) != 0) {
1002
RestrictionFlags
flags = restriction != null ? restriction.Flags : 0;
1004
if ((flags &
RestrictionFlags
.MaxInclusive) != 0) {
1010
if ((flags &
RestrictionFlags
.MaxExclusive) != 0) {
1016
if ((flags &
RestrictionFlags
.MinInclusive) != 0) {
1022
if ((flags &
RestrictionFlags
.MinExclusive) != 0) {
1027
if ((flags &
RestrictionFlags
.Enumeration) != 0) {
1057
RestrictionFlags
flags = restriction != null ? restriction.Flags : 0;
1059
if ((flags &
RestrictionFlags
.MaxInclusive) != 0) {
1065
if ((flags &
RestrictionFlags
.MaxExclusive) != 0) {
1071
if ((flags &
RestrictionFlags
.MinInclusive) != 0) {
1077
if ((flags &
RestrictionFlags
.MinExclusive) != 0) {
1082
if ((flags &
RestrictionFlags
.Enumeration) != 0) {
1130
RestrictionFlags
flags = restriction != null ? restriction.Flags : 0;
1137
if ((flags &
RestrictionFlags
.Length) != 0) {
1142
if ((flags &
RestrictionFlags
.MinLength) != 0) {
1147
if ((flags &
RestrictionFlags
.MaxLength) != 0) {
1152
if ((flags &
RestrictionFlags
.Enumeration) != 0) {
1242
RestrictionFlags
flags = restriction != null ? restriction.Flags : 0;
1246
if ((flags &
RestrictionFlags
.Length) != 0) {
1251
if ((flags &
RestrictionFlags
.MinLength) != 0) {
1256
if ((flags &
RestrictionFlags
.MaxLength) != 0) {
1261
if ((flags &
RestrictionFlags
.Enumeration) != 0) {
1297
RestrictionFlags
flags = restriction != null ? restriction.Flags : 0;
1299
if ((flags &
RestrictionFlags
.Length) != 0) {
1304
if ((flags &
RestrictionFlags
.MinLength) != 0) {
1309
if ((flags &
RestrictionFlags
.MaxLength) != 0) {
1314
if ((flags &
RestrictionFlags
.Enumeration) != 0) {
1344
RestrictionFlags
flags = restriction != null ? restriction.Flags : 0;
1346
if ((flags & (
RestrictionFlags
.Length|
RestrictionFlags
.MinLength|
RestrictionFlags
.MaxLength)) != 0) {
1348
if ((flags &
RestrictionFlags
.Length) != 0) {
1354
if ((flags &
RestrictionFlags
.MinLength) != 0) {
1360
if ((flags &
RestrictionFlags
.MaxLength) != 0) {
1366
if ((flags &
RestrictionFlags
.Enumeration) != 0) {
1388
RestrictionFlags
flags = restriction != null ? restriction.Flags : 0;
1390
if ((flags &
RestrictionFlags
.Enumeration) != 0) {