298 references to RestrictionFlags
dotnet-svcutil-lib (298)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (120)
97
internal
RestrictionFlags
Flags = 0;
98
internal
RestrictionFlags
FixedFlags = 0;
513
RestrictionFlags
flags = _restriction != null ? _restriction.Flags : 0;
514
if (flags != 0 && (flags & (
RestrictionFlags
.Pattern |
RestrictionFlags
.WhiteSpace |
RestrictionFlags
.TotalDigits |
RestrictionFlags
.FractionDigits)) != 0)
525
RestrictionFlags
flags = _restriction != null ? _restriction.Flags : 0;
526
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)
538
internal abstract
RestrictionFlags
ValidRestrictionFlags { get; }
1038
internal override
RestrictionFlags
ValidRestrictionFlags
1042
return
RestrictionFlags
.Length |
RestrictionFlags
.MinLength |
RestrictionFlags
.MaxLength |
RestrictionFlags
.Enumeration |
RestrictionFlags
.WhiteSpace |
RestrictionFlags
.Pattern;
1226
internal override
RestrictionFlags
ValidRestrictionFlags
1230
return
RestrictionFlags
.Pattern |
1231
RestrictionFlags
.Enumeration;
1392
internal override
RestrictionFlags
ValidRestrictionFlags { get { return 0; } }
1470
internal override
RestrictionFlags
ValidRestrictionFlags
1474
return
RestrictionFlags
.Length |
1475
RestrictionFlags
.MinLength |
1476
RestrictionFlags
.MaxLength |
1477
RestrictionFlags
.Pattern |
1478
RestrictionFlags
.Enumeration |
1479
RestrictionFlags
.WhiteSpace;
1543
internal override
RestrictionFlags
ValidRestrictionFlags
1547
return
RestrictionFlags
.Pattern |
1548
RestrictionFlags
.WhiteSpace;
1623
internal override
RestrictionFlags
ValidRestrictionFlags
1627
return
RestrictionFlags
.Pattern |
1628
RestrictionFlags
.Enumeration |
1629
RestrictionFlags
.WhiteSpace |
1630
RestrictionFlags
.MinExclusive |
1631
RestrictionFlags
.MinInclusive |
1632
RestrictionFlags
.MaxExclusive |
1633
RestrictionFlags
.MaxInclusive;
1712
internal override
RestrictionFlags
ValidRestrictionFlags
1716
return
RestrictionFlags
.Pattern |
1717
RestrictionFlags
.Enumeration |
1718
RestrictionFlags
.WhiteSpace |
1719
RestrictionFlags
.MinExclusive |
1720
RestrictionFlags
.MinInclusive |
1721
RestrictionFlags
.MaxExclusive |
1722
RestrictionFlags
.MaxInclusive;
1804
internal override
RestrictionFlags
ValidRestrictionFlags
1808
return
RestrictionFlags
.TotalDigits |
1809
RestrictionFlags
.FractionDigits |
1810
RestrictionFlags
.Pattern |
1811
RestrictionFlags
.Enumeration |
1812
RestrictionFlags
.WhiteSpace |
1813
RestrictionFlags
.MinExclusive |
1814
RestrictionFlags
.MinInclusive |
1815
RestrictionFlags
.MaxExclusive |
1816
RestrictionFlags
.MaxInclusive;
1896
internal override
RestrictionFlags
ValidRestrictionFlags
1900
return
RestrictionFlags
.Pattern |
1901
RestrictionFlags
.Enumeration |
1902
RestrictionFlags
.WhiteSpace |
1903
RestrictionFlags
.MinExclusive |
1904
RestrictionFlags
.MinInclusive |
1905
RestrictionFlags
.MaxExclusive |
1906
RestrictionFlags
.MaxInclusive;
2051
internal override
RestrictionFlags
ValidRestrictionFlags
2055
return
RestrictionFlags
.Pattern |
2056
RestrictionFlags
.Enumeration |
2057
RestrictionFlags
.WhiteSpace |
2058
RestrictionFlags
.MinExclusive |
2059
RestrictionFlags
.MinInclusive |
2060
RestrictionFlags
.MaxExclusive |
2061
RestrictionFlags
.MaxInclusive;
2444
internal override
RestrictionFlags
ValidRestrictionFlags
2448
return
RestrictionFlags
.Length |
2449
RestrictionFlags
.MinLength |
2450
RestrictionFlags
.MaxLength |
2451
RestrictionFlags
.Pattern |
2452
RestrictionFlags
.Enumeration |
2453
RestrictionFlags
.WhiteSpace;
2545
internal override
RestrictionFlags
ValidRestrictionFlags
2549
return
RestrictionFlags
.Length |
2550
RestrictionFlags
.MinLength |
2551
RestrictionFlags
.MaxLength |
2552
RestrictionFlags
.Pattern |
2553
RestrictionFlags
.Enumeration |
2554
RestrictionFlags
.WhiteSpace;
2652
internal override
RestrictionFlags
ValidRestrictionFlags
2656
return
RestrictionFlags
.Length |
2657
RestrictionFlags
.MinLength |
2658
RestrictionFlags
.MaxLength |
2659
RestrictionFlags
.Pattern |
2660
RestrictionFlags
.Enumeration |
2661
RestrictionFlags
.WhiteSpace;
2737
internal override
RestrictionFlags
ValidRestrictionFlags
2741
return
RestrictionFlags
.Length |
2742
RestrictionFlags
.MinLength |
2743
RestrictionFlags
.MaxLength |
2744
RestrictionFlags
.Pattern |
2745
RestrictionFlags
.Enumeration |
2746
RestrictionFlags
.WhiteSpace;
3073
internal override
RestrictionFlags
ValidRestrictionFlags
3077
return
RestrictionFlags
.Length |
3078
RestrictionFlags
.MinLength |
3079
RestrictionFlags
.MaxLength |
3080
RestrictionFlags
.Pattern |
3081
RestrictionFlags
.Enumeration |
3082
RestrictionFlags
.WhiteSpace;
3140
if (dt.Restriction != null && (dt.Restriction.Flags &
RestrictionFlags
.Enumeration) != 0)
3855
internal override
RestrictionFlags
ValidRestrictionFlags { get { return 0; } } //XDR only
3957
internal override
RestrictionFlags
ValidRestrictionFlags { get { return 0; } }
FrameworkFork\Microsoft.Xml\Xml\schema\FacetChecker.cs (178)
25
private
RestrictionFlags
_baseFlags;
26
private
RestrictionFlags
_baseFixedFlags;
27
private
RestrictionFlags
_validRestrictionFlags;
55
CheckProhibitedFlag(facet,
RestrictionFlags
.Length, ResXml.Sch_LengthFacetProhibited);
56
CheckDupFlag(facet,
RestrictionFlags
.Length, ResXml.Sch_DupLengthFacet);
59
if ((_baseFixedFlags &
RestrictionFlags
.Length) != 0)
66
if ((_baseFlags &
RestrictionFlags
.Length) != 0)
74
if ((_baseFlags &
RestrictionFlags
.MinLength) != 0)
82
if ((_baseFlags &
RestrictionFlags
.MaxLength) != 0)
89
SetFlag(facet,
RestrictionFlags
.Length);
94
CheckProhibitedFlag(facet,
RestrictionFlags
.MinLength, ResXml.Sch_MinLengthFacetProhibited);
95
CheckDupFlag(facet,
RestrictionFlags
.MinLength, ResXml.Sch_DupMinLengthFacet);
98
if ((_baseFixedFlags &
RestrictionFlags
.MinLength) != 0)
105
if ((_baseFlags &
RestrictionFlags
.MinLength) != 0)
112
if ((_baseFlags &
RestrictionFlags
.Length) != 0)
119
SetFlag(facet,
RestrictionFlags
.MinLength);
124
CheckProhibitedFlag(facet,
RestrictionFlags
.MaxLength, ResXml.Sch_MaxLengthFacetProhibited);
125
CheckDupFlag(facet,
RestrictionFlags
.MaxLength, ResXml.Sch_DupMaxLengthFacet);
128
if ((_baseFixedFlags &
RestrictionFlags
.MaxLength) != 0)
135
if ((_baseFlags &
RestrictionFlags
.MaxLength) != 0)
142
if ((_baseFlags &
RestrictionFlags
.Length) != 0)
149
SetFlag(facet,
RestrictionFlags
.MaxLength);
154
CheckProhibitedFlag(facet,
RestrictionFlags
.Pattern, ResXml.Sch_PatternFacetProhibited);
168
SetFlag(facet,
RestrictionFlags
.Pattern);
173
CheckProhibitedFlag(facet,
RestrictionFlags
.Enumeration, ResXml.Sch_EnumerationFacetProhibited);
179
SetFlag(facet,
RestrictionFlags
.Enumeration);
184
CheckProhibitedFlag(facet,
RestrictionFlags
.WhiteSpace, ResXml.Sch_WhiteSpaceFacetProhibited);
185
CheckDupFlag(facet,
RestrictionFlags
.WhiteSpace, ResXml.Sch_DupWhiteSpaceFacet);
202
if ((_baseFixedFlags &
RestrictionFlags
.WhiteSpace) != 0)
211
if ((_baseFlags &
RestrictionFlags
.WhiteSpace) != 0)
231
SetFlag(facet,
RestrictionFlags
.WhiteSpace);
236
CheckProhibitedFlag(facet,
RestrictionFlags
.MaxInclusive, ResXml.Sch_MaxInclusiveFacetProhibited);
237
CheckDupFlag(facet,
RestrictionFlags
.MaxInclusive, ResXml.Sch_DupMaxInclusiveFacet);
240
if ((_baseFixedFlags &
RestrictionFlags
.MaxInclusive) != 0)
248
SetFlag(facet,
RestrictionFlags
.MaxInclusive);
253
CheckProhibitedFlag(facet,
RestrictionFlags
.MaxExclusive, ResXml.Sch_MaxExclusiveFacetProhibited);
254
CheckDupFlag(facet,
RestrictionFlags
.MaxExclusive, ResXml.Sch_DupMaxExclusiveFacet);
257
if ((_baseFixedFlags &
RestrictionFlags
.MaxExclusive) != 0)
265
SetFlag(facet,
RestrictionFlags
.MaxExclusive);
270
CheckProhibitedFlag(facet,
RestrictionFlags
.MinInclusive, ResXml.Sch_MinInclusiveFacetProhibited);
271
CheckDupFlag(facet,
RestrictionFlags
.MinInclusive, ResXml.Sch_DupMinInclusiveFacet);
274
if ((_baseFixedFlags &
RestrictionFlags
.MinInclusive) != 0)
282
SetFlag(facet,
RestrictionFlags
.MinInclusive);
287
CheckProhibitedFlag(facet,
RestrictionFlags
.MinExclusive, ResXml.Sch_MinExclusiveFacetProhibited);
288
CheckDupFlag(facet,
RestrictionFlags
.MinExclusive, ResXml.Sch_DupMinExclusiveFacet);
291
if ((_baseFixedFlags &
RestrictionFlags
.MinExclusive) != 0)
299
SetFlag(facet,
RestrictionFlags
.MinExclusive);
304
CheckProhibitedFlag(facet,
RestrictionFlags
.TotalDigits, ResXml.Sch_TotalDigitsFacetProhibited);
305
CheckDupFlag(facet,
RestrictionFlags
.TotalDigits, ResXml.Sch_DupTotalDigitsFacet);
309
if ((_baseFixedFlags &
RestrictionFlags
.TotalDigits) != 0)
316
if ((_baseFlags &
RestrictionFlags
.TotalDigits) != 0)
323
SetFlag(facet,
RestrictionFlags
.TotalDigits);
328
CheckProhibitedFlag(facet,
RestrictionFlags
.FractionDigits, ResXml.Sch_FractionDigitsFacetProhibited);
329
CheckDupFlag(facet,
RestrictionFlags
.FractionDigits, ResXml.Sch_DupFractionDigitsFacet);
336
if ((_baseFlags &
RestrictionFlags
.FractionDigits) != 0)
343
SetFlag(facet,
RestrictionFlags
.FractionDigits);
381
if ((_baseFlags &
RestrictionFlags
.MaxInclusive) != 0)
388
if ((_baseFlags &
RestrictionFlags
.MaxExclusive) != 0)
398
if ((_baseFlags &
RestrictionFlags
.MaxExclusive) != 0)
405
if ((_baseFlags &
RestrictionFlags
.MaxInclusive) != 0)
415
if ((_baseFlags &
RestrictionFlags
.MinInclusive) != 0)
422
if ((_baseFlags &
RestrictionFlags
.MinExclusive) != 0)
429
if ((_baseFlags &
RestrictionFlags
.MaxExclusive) != 0)
439
if ((_baseFlags &
RestrictionFlags
.MinExclusive) != 0)
446
if ((_baseFlags &
RestrictionFlags
.MinInclusive) != 0)
453
if ((_baseFlags &
RestrictionFlags
.MaxExclusive) != 0)
473
(_derivedRestriction.Flags &
RestrictionFlags
.MaxInclusive) != 0 &&
474
(_derivedRestriction.Flags &
RestrictionFlags
.MaxExclusive) != 0
480
(_derivedRestriction.Flags &
RestrictionFlags
.MinInclusive) != 0 &&
481
(_derivedRestriction.Flags &
RestrictionFlags
.MinExclusive) != 0
487
(_derivedRestriction.Flags &
RestrictionFlags
.Length) != 0 &&
488
(_derivedRestriction.Flags & (
RestrictionFlags
.MinLength |
RestrictionFlags
.MaxLength)) != 0
498
(_derivedRestriction.Flags &
RestrictionFlags
.MinLength) != 0 &&
499
(_derivedRestriction.Flags &
RestrictionFlags
.MaxLength) != 0
510
(_derivedRestriction.Flags &
RestrictionFlags
.MinInclusive) != 0 &&
511
(_derivedRestriction.Flags &
RestrictionFlags
.MaxInclusive) != 0
520
(_derivedRestriction.Flags &
RestrictionFlags
.MinInclusive) != 0 &&
521
(_derivedRestriction.Flags &
RestrictionFlags
.MaxExclusive) != 0
530
(_derivedRestriction.Flags &
RestrictionFlags
.MinExclusive) != 0 &&
531
(_derivedRestriction.Flags &
RestrictionFlags
.MaxExclusive) != 0
540
(_derivedRestriction.Flags &
RestrictionFlags
.MinExclusive) != 0 &&
541
(_derivedRestriction.Flags &
RestrictionFlags
.MaxInclusive) != 0
549
if ((_derivedRestriction.Flags & (
RestrictionFlags
.TotalDigits |
RestrictionFlags
.FractionDigits)) == (
RestrictionFlags
.TotalDigits |
RestrictionFlags
.FractionDigits))
563
(_derivedRestriction.Flags &
RestrictionFlags
.Length) == 0 &&
564
(_baseFlags &
RestrictionFlags
.Length) != 0
568
SetFlag(
RestrictionFlags
.Length);
571
(_derivedRestriction.Flags &
RestrictionFlags
.MinLength) == 0 &&
572
(_baseFlags &
RestrictionFlags
.MinLength) != 0
576
SetFlag(
RestrictionFlags
.MinLength);
579
(_derivedRestriction.Flags &
RestrictionFlags
.MaxLength) == 0 &&
580
(_baseFlags &
RestrictionFlags
.MaxLength) != 0
584
SetFlag(
RestrictionFlags
.MaxLength);
586
if ((_baseFlags &
RestrictionFlags
.Pattern) != 0)
596
SetFlag(
RestrictionFlags
.Pattern);
599
if ((_baseFlags &
RestrictionFlags
.Enumeration) != 0)
605
SetFlag(
RestrictionFlags
.Enumeration);
609
(_derivedRestriction.Flags &
RestrictionFlags
.WhiteSpace) == 0 &&
610
(_baseFlags &
RestrictionFlags
.WhiteSpace) != 0
614
SetFlag(
RestrictionFlags
.WhiteSpace);
617
(_derivedRestriction.Flags &
RestrictionFlags
.MaxInclusive) == 0 &&
618
(_baseFlags &
RestrictionFlags
.MaxInclusive) != 0
622
SetFlag(
RestrictionFlags
.MaxInclusive);
625
(_derivedRestriction.Flags &
RestrictionFlags
.MaxExclusive) == 0 &&
626
(_baseFlags &
RestrictionFlags
.MaxExclusive) != 0
630
SetFlag(
RestrictionFlags
.MaxExclusive);
633
(_derivedRestriction.Flags &
RestrictionFlags
.MinInclusive) == 0 &&
634
(_baseFlags &
RestrictionFlags
.MinInclusive) != 0
638
SetFlag(
RestrictionFlags
.MinInclusive);
641
(_derivedRestriction.Flags &
RestrictionFlags
.MinExclusive) == 0 &&
642
(_baseFlags &
RestrictionFlags
.MinExclusive) != 0
646
SetFlag(
RestrictionFlags
.MinExclusive);
649
(_derivedRestriction.Flags &
RestrictionFlags
.TotalDigits) == 0 &&
650
(_baseFlags &
RestrictionFlags
.TotalDigits) != 0
654
SetFlag(
RestrictionFlags
.TotalDigits);
657
(_derivedRestriction.Flags &
RestrictionFlags
.FractionDigits) == 0 &&
658
(_baseFlags &
RestrictionFlags
.FractionDigits) != 0
662
SetFlag(
RestrictionFlags
.FractionDigits);
746
private void CheckProhibitedFlag(XmlSchemaFacet facet,
RestrictionFlags
flag, string errorCode)
754
private void CheckDupFlag(XmlSchemaFacet facet,
RestrictionFlags
flag, string errorCode)
762
private void SetFlag(XmlSchemaFacet facet,
RestrictionFlags
flag)
771
private void SetFlag(
RestrictionFlags
flag)
859
else if (restriction != null && (restriction.Flags &
RestrictionFlags
.WhiteSpace) != 0)
878
if (restriction != null && (restriction.Flags &
RestrictionFlags
.Pattern) != 0)
1014
RestrictionFlags
flags = restriction != null ? restriction.Flags : 0;
1025
if ((flags &
RestrictionFlags
.MaxInclusive) != 0)
1033
if ((flags &
RestrictionFlags
.MaxExclusive) != 0)
1041
if ((flags &
RestrictionFlags
.MinInclusive) != 0)
1049
if ((flags &
RestrictionFlags
.MinExclusive) != 0)
1056
if ((flags &
RestrictionFlags
.Enumeration) != 0)
1063
return CheckTotalAndFractionDigits(value, restriction.TotalDigits, restriction.FractionDigits, ((flags &
RestrictionFlags
.TotalDigits) != 0), ((flags &
RestrictionFlags
.FractionDigits) != 0));
1143
RestrictionFlags
flags = restriction != null ? restriction.Flags : 0;
1146
if ((flags &
RestrictionFlags
.MaxInclusive) != 0)
1153
if ((flags &
RestrictionFlags
.MaxExclusive) != 0)
1161
if ((flags &
RestrictionFlags
.MinInclusive) != 0)
1169
if ((flags &
RestrictionFlags
.MinExclusive) != 0)
1176
if ((flags &
RestrictionFlags
.Enumeration) != 0)
1219
RestrictionFlags
flags = restriction != null ? restriction.Flags : 0;
1221
if ((flags &
RestrictionFlags
.MaxInclusive) != 0)
1229
if ((flags &
RestrictionFlags
.MaxExclusive) != 0)
1237
if ((flags &
RestrictionFlags
.MinInclusive) != 0)
1245
if ((flags &
RestrictionFlags
.MinExclusive) != 0)
1252
if ((flags &
RestrictionFlags
.Enumeration) != 0)
1290
RestrictionFlags
flags = restriction != null ? restriction.Flags : 0;
1292
if ((flags &
RestrictionFlags
.MaxInclusive) != 0)
1300
if ((flags &
RestrictionFlags
.MaxExclusive) != 0)
1308
if ((flags &
RestrictionFlags
.MinInclusive) != 0)
1316
if ((flags &
RestrictionFlags
.MinExclusive) != 0)
1323
if ((flags &
RestrictionFlags
.Enumeration) != 0)
1384
RestrictionFlags
flags = restriction != null ? restriction.Flags : 0;
1392
if ((flags &
RestrictionFlags
.Length) != 0)
1399
if ((flags &
RestrictionFlags
.MinLength) != 0)
1406
if ((flags &
RestrictionFlags
.MaxLength) != 0)
1413
if ((flags &
RestrictionFlags
.Enumeration) != 0)
1519
RestrictionFlags
flags = restriction != null ? restriction.Flags : 0;
1524
if ((flags &
RestrictionFlags
.Length) != 0)
1531
if ((flags &
RestrictionFlags
.MinLength) != 0)
1538
if ((flags &
RestrictionFlags
.MaxLength) != 0)
1545
if ((flags &
RestrictionFlags
.Enumeration) != 0)
1590
RestrictionFlags
flags = restriction != null ? restriction.Flags : 0;
1593
if ((flags &
RestrictionFlags
.Length) != 0)
1600
if ((flags &
RestrictionFlags
.MinLength) != 0)
1607
if ((flags &
RestrictionFlags
.MaxLength) != 0)
1614
if ((flags &
RestrictionFlags
.Enumeration) != 0)
1651
RestrictionFlags
flags = restriction != null ? restriction.Flags : 0;
1653
if ((flags & (
RestrictionFlags
.Length |
RestrictionFlags
.MinLength |
RestrictionFlags
.MaxLength)) != 0)
1656
if ((flags &
RestrictionFlags
.Length) != 0)
1664
if ((flags &
RestrictionFlags
.MinLength) != 0)
1672
if ((flags &
RestrictionFlags
.MaxLength) != 0)
1680
if ((flags &
RestrictionFlags
.Enumeration) != 0)
1708
RestrictionFlags
flags = restriction != null ? restriction.Flags : 0;
1710
if ((flags &
RestrictionFlags
.Enumeration) != 0)