299 references to RestrictionFlags
System.Private.Xml (299)
System\Xml\Schema\DataTypeImplementation.cs (120)
93internal RestrictionFlags Flags; 94internal RestrictionFlags FixedFlags; 502RestrictionFlags flags = _restriction != null ? _restriction.Flags : 0; 503if (flags != 0 && (flags & (RestrictionFlags.Pattern | RestrictionFlags.WhiteSpace | RestrictionFlags.TotalDigits | RestrictionFlags.FractionDigits)) != 0) 514RestrictionFlags flags = _restriction != null ? _restriction.Flags : 0; 515if (flags != 0 && (flags & (RestrictionFlags.Length | RestrictionFlags.MinLength | RestrictionFlags.MaxLength | RestrictionFlags.MaxExclusive | RestrictionFlags.MaxInclusive | RestrictionFlags.MinExclusive | RestrictionFlags.MinInclusive | RestrictionFlags.TotalDigits | RestrictionFlags.FractionDigits | RestrictionFlags.Enumeration)) != 0) 525internal abstract RestrictionFlags ValidRestrictionFlags { get; } 1005internal override RestrictionFlags ValidRestrictionFlags 1009return RestrictionFlags.Length | RestrictionFlags.MinLength | RestrictionFlags.MaxLength | RestrictionFlags.Enumeration | RestrictionFlags.WhiteSpace | RestrictionFlags.Pattern; 1197internal override RestrictionFlags ValidRestrictionFlags 1201return RestrictionFlags.Pattern | 1202RestrictionFlags.Enumeration; 1365internal override RestrictionFlags ValidRestrictionFlags { get { return 0; } } 1443internal override RestrictionFlags ValidRestrictionFlags 1447return RestrictionFlags.Length | 1448RestrictionFlags.MinLength | 1449RestrictionFlags.MaxLength | 1450RestrictionFlags.Pattern | 1451RestrictionFlags.Enumeration | 1452RestrictionFlags.WhiteSpace; 1513internal override RestrictionFlags ValidRestrictionFlags 1517return RestrictionFlags.Pattern | 1518RestrictionFlags.WhiteSpace; 1590internal override RestrictionFlags ValidRestrictionFlags 1594return RestrictionFlags.Pattern | 1595RestrictionFlags.Enumeration | 1596RestrictionFlags.WhiteSpace | 1597RestrictionFlags.MinExclusive | 1598RestrictionFlags.MinInclusive | 1599RestrictionFlags.MaxExclusive | 1600RestrictionFlags.MaxInclusive; 1676internal override RestrictionFlags ValidRestrictionFlags 1680return RestrictionFlags.Pattern | 1681RestrictionFlags.Enumeration | 1682RestrictionFlags.WhiteSpace | 1683RestrictionFlags.MinExclusive | 1684RestrictionFlags.MinInclusive | 1685RestrictionFlags.MaxExclusive | 1686RestrictionFlags.MaxInclusive; 1766internal override RestrictionFlags ValidRestrictionFlags 1770return RestrictionFlags.TotalDigits | 1771RestrictionFlags.FractionDigits | 1772RestrictionFlags.Pattern | 1773RestrictionFlags.Enumeration | 1774RestrictionFlags.WhiteSpace | 1775RestrictionFlags.MinExclusive | 1776RestrictionFlags.MinInclusive | 1777RestrictionFlags.MaxExclusive | 1778RestrictionFlags.MaxInclusive; 1855internal override RestrictionFlags ValidRestrictionFlags 1859return RestrictionFlags.Pattern | 1860RestrictionFlags.Enumeration | 1861RestrictionFlags.WhiteSpace | 1862RestrictionFlags.MinExclusive | 1863RestrictionFlags.MinInclusive | 1864RestrictionFlags.MaxExclusive | 1865RestrictionFlags.MaxInclusive; 2004internal override RestrictionFlags ValidRestrictionFlags 2008return RestrictionFlags.Pattern | 2009RestrictionFlags.Enumeration | 2010RestrictionFlags.WhiteSpace | 2011RestrictionFlags.MinExclusive | 2012RestrictionFlags.MinInclusive | 2013RestrictionFlags.MaxExclusive | 2014RestrictionFlags.MaxInclusive; 2394internal override RestrictionFlags ValidRestrictionFlags 2398return RestrictionFlags.Length | 2399RestrictionFlags.MinLength | 2400RestrictionFlags.MaxLength | 2401RestrictionFlags.Pattern | 2402RestrictionFlags.Enumeration | 2403RestrictionFlags.WhiteSpace; 2492internal override RestrictionFlags ValidRestrictionFlags 2496return RestrictionFlags.Length | 2497RestrictionFlags.MinLength | 2498RestrictionFlags.MaxLength | 2499RestrictionFlags.Pattern | 2500RestrictionFlags.Enumeration | 2501RestrictionFlags.WhiteSpace; 2596internal override RestrictionFlags ValidRestrictionFlags 2600return RestrictionFlags.Length | 2601RestrictionFlags.MinLength | 2602RestrictionFlags.MaxLength | 2603RestrictionFlags.Pattern | 2604RestrictionFlags.Enumeration | 2605RestrictionFlags.WhiteSpace; 2680internal override RestrictionFlags ValidRestrictionFlags 2684return RestrictionFlags.Length | 2685RestrictionFlags.MinLength | 2686RestrictionFlags.MaxLength | 2687RestrictionFlags.Pattern | 2688RestrictionFlags.Enumeration | 2689RestrictionFlags.WhiteSpace; 3013internal override RestrictionFlags ValidRestrictionFlags 3017return RestrictionFlags.Length | 3018RestrictionFlags.MinLength | 3019RestrictionFlags.MaxLength | 3020RestrictionFlags.Pattern | 3021RestrictionFlags.Enumeration | 3022RestrictionFlags.WhiteSpace; 3080if (dt.Restriction != null && (dt.Restriction.Flags & RestrictionFlags.Enumeration) != 0) 3773internal override RestrictionFlags ValidRestrictionFlags { get { return 0; } } //XDR only 3870internal override RestrictionFlags ValidRestrictionFlags { get { return 0; } }
System\Xml\Schema\FacetChecker.cs (179)
25private readonly RestrictionFlags _baseFlags; 26private readonly RestrictionFlags _baseFixedFlags; 27private readonly RestrictionFlags _validRestrictionFlags; 55CheckProhibitedFlag(facet, RestrictionFlags.Length, SR.Sch_LengthFacetProhibited); 56CheckDupFlag(facet, RestrictionFlags.Length, SR.Sch_DupLengthFacet); 59if ((_baseFixedFlags & RestrictionFlags.Length) != 0) 66if ((_baseFlags & RestrictionFlags.Length) != 0) 74if ((_baseFlags & RestrictionFlags.MinLength) != 0) 82if ((_baseFlags & RestrictionFlags.MaxLength) != 0) 89SetFlag(facet, RestrictionFlags.Length); 94CheckProhibitedFlag(facet, RestrictionFlags.MinLength, SR.Sch_MinLengthFacetProhibited); 95CheckDupFlag(facet, RestrictionFlags.MinLength, SR.Sch_DupMinLengthFacet); 98if ((_baseFixedFlags & RestrictionFlags.MinLength) != 0) 105if ((_baseFlags & RestrictionFlags.MinLength) != 0) 112if ((_baseFlags & RestrictionFlags.Length) != 0) 119SetFlag(facet, RestrictionFlags.MinLength); 124CheckProhibitedFlag(facet, RestrictionFlags.MaxLength, SR.Sch_MaxLengthFacetProhibited); 125CheckDupFlag(facet, RestrictionFlags.MaxLength, SR.Sch_DupMaxLengthFacet); 128if ((_baseFixedFlags & RestrictionFlags.MaxLength) != 0) 135if ((_baseFlags & RestrictionFlags.MaxLength) != 0) 142if ((_baseFlags & RestrictionFlags.Length) != 0) 149SetFlag(facet, RestrictionFlags.MaxLength); 154CheckProhibitedFlag(facet, RestrictionFlags.Pattern, SR.Sch_PatternFacetProhibited); 168SetFlag(facet, RestrictionFlags.Pattern); 173CheckProhibitedFlag(facet, RestrictionFlags.Enumeration, SR.Sch_EnumerationFacetProhibited); 176SetFlag(facet, RestrictionFlags.Enumeration); 181CheckProhibitedFlag(facet, RestrictionFlags.WhiteSpace, SR.Sch_WhiteSpaceFacetProhibited); 182CheckDupFlag(facet, RestrictionFlags.WhiteSpace, SR.Sch_DupWhiteSpaceFacet); 199if ((_baseFixedFlags & RestrictionFlags.WhiteSpace) != 0) 208if ((_baseFlags & RestrictionFlags.WhiteSpace) != 0) 228SetFlag(facet, RestrictionFlags.WhiteSpace); 233CheckProhibitedFlag(facet, RestrictionFlags.MaxInclusive, SR.Sch_MaxInclusiveFacetProhibited); 234CheckDupFlag(facet, RestrictionFlags.MaxInclusive, SR.Sch_DupMaxInclusiveFacet); 237if ((_baseFixedFlags & RestrictionFlags.MaxInclusive) != 0) 245SetFlag(facet, RestrictionFlags.MaxInclusive); 250CheckProhibitedFlag(facet, RestrictionFlags.MaxExclusive, SR.Sch_MaxExclusiveFacetProhibited); 251CheckDupFlag(facet, RestrictionFlags.MaxExclusive, SR.Sch_DupMaxExclusiveFacet); 254if ((_baseFixedFlags & RestrictionFlags.MaxExclusive) != 0) 262SetFlag(facet, RestrictionFlags.MaxExclusive); 267CheckProhibitedFlag(facet, RestrictionFlags.MinInclusive, SR.Sch_MinInclusiveFacetProhibited); 268CheckDupFlag(facet, RestrictionFlags.MinInclusive, SR.Sch_DupMinInclusiveFacet); 271if ((_baseFixedFlags & RestrictionFlags.MinInclusive) != 0) 279SetFlag(facet, RestrictionFlags.MinInclusive); 284CheckProhibitedFlag(facet, RestrictionFlags.MinExclusive, SR.Sch_MinExclusiveFacetProhibited); 285CheckDupFlag(facet, RestrictionFlags.MinExclusive, SR.Sch_DupMinExclusiveFacet); 288if ((_baseFixedFlags & RestrictionFlags.MinExclusive) != 0) 296SetFlag(facet, RestrictionFlags.MinExclusive); 301CheckProhibitedFlag(facet, RestrictionFlags.TotalDigits, SR.Sch_TotalDigitsFacetProhibited); 302CheckDupFlag(facet, RestrictionFlags.TotalDigits, SR.Sch_DupTotalDigitsFacet); 306if ((_baseFixedFlags & RestrictionFlags.TotalDigits) != 0) 313if ((_baseFlags & RestrictionFlags.TotalDigits) != 0) 320SetFlag(facet, RestrictionFlags.TotalDigits); 325CheckProhibitedFlag(facet, RestrictionFlags.FractionDigits, SR.Sch_FractionDigitsFacetProhibited); 326CheckDupFlag(facet, RestrictionFlags.FractionDigits, SR.Sch_DupFractionDigitsFacet); 333if ((_baseFixedFlags & RestrictionFlags.FractionDigits) != 0) 340if ((_baseFlags & RestrictionFlags.FractionDigits) != 0) 347SetFlag(facet, RestrictionFlags.FractionDigits); 382if ((_baseFlags & RestrictionFlags.MaxInclusive) != 0) 389if ((_baseFlags & RestrictionFlags.MaxExclusive) != 0) 399if ((_baseFlags & RestrictionFlags.MaxExclusive) != 0) 406if ((_baseFlags & RestrictionFlags.MaxInclusive) != 0) 416if ((_baseFlags & RestrictionFlags.MinInclusive) != 0) 423if ((_baseFlags & RestrictionFlags.MinExclusive) != 0) 430if ((_baseFlags & RestrictionFlags.MaxExclusive) != 0) 440if ((_baseFlags & RestrictionFlags.MinExclusive) != 0) 447if ((_baseFlags & RestrictionFlags.MinInclusive) != 0) 454if ((_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 509(_derivedRestriction.Flags & RestrictionFlags.MinInclusive) != 0 && 510(_derivedRestriction.Flags & RestrictionFlags.MaxInclusive) != 0 519(_derivedRestriction.Flags & RestrictionFlags.MinInclusive) != 0 && 520(_derivedRestriction.Flags & RestrictionFlags.MaxExclusive) != 0 529(_derivedRestriction.Flags & RestrictionFlags.MinExclusive) != 0 && 530(_derivedRestriction.Flags & RestrictionFlags.MaxExclusive) != 0 539(_derivedRestriction.Flags & RestrictionFlags.MinExclusive) != 0 && 540(_derivedRestriction.Flags & RestrictionFlags.MaxInclusive) != 0 548if ((_derivedRestriction.Flags & (RestrictionFlags.TotalDigits | RestrictionFlags.FractionDigits)) == (RestrictionFlags.TotalDigits | RestrictionFlags.FractionDigits)) 562(_derivedRestriction.Flags & RestrictionFlags.Length) == 0 && 563(_baseFlags & RestrictionFlags.Length) != 0 567SetFlag(RestrictionFlags.Length); 570(_derivedRestriction.Flags & RestrictionFlags.MinLength) == 0 && 571(_baseFlags & RestrictionFlags.MinLength) != 0 575SetFlag(RestrictionFlags.MinLength); 578(_derivedRestriction.Flags & RestrictionFlags.MaxLength) == 0 && 579(_baseFlags & RestrictionFlags.MaxLength) != 0 583SetFlag(RestrictionFlags.MaxLength); 585if ((_baseFlags & RestrictionFlags.Pattern) != 0) 596SetFlag(RestrictionFlags.Pattern); 599if ((_baseFlags & RestrictionFlags.Enumeration) != 0) 602SetFlag(RestrictionFlags.Enumeration); 606(_derivedRestriction.Flags & RestrictionFlags.WhiteSpace) == 0 && 607(_baseFlags & RestrictionFlags.WhiteSpace) != 0 611SetFlag(RestrictionFlags.WhiteSpace); 614(_derivedRestriction.Flags & RestrictionFlags.MaxInclusive) == 0 && 615(_baseFlags & RestrictionFlags.MaxInclusive) != 0 619SetFlag(RestrictionFlags.MaxInclusive); 622(_derivedRestriction.Flags & RestrictionFlags.MaxExclusive) == 0 && 623(_baseFlags & RestrictionFlags.MaxExclusive) != 0 627SetFlag(RestrictionFlags.MaxExclusive); 630(_derivedRestriction.Flags & RestrictionFlags.MinInclusive) == 0 && 631(_baseFlags & RestrictionFlags.MinInclusive) != 0 635SetFlag(RestrictionFlags.MinInclusive); 638(_derivedRestriction.Flags & RestrictionFlags.MinExclusive) == 0 && 639(_baseFlags & RestrictionFlags.MinExclusive) != 0 643SetFlag(RestrictionFlags.MinExclusive); 646(_derivedRestriction.Flags & RestrictionFlags.TotalDigits) == 0 && 647(_baseFlags & RestrictionFlags.TotalDigits) != 0 651SetFlag(RestrictionFlags.TotalDigits); 654(_derivedRestriction.Flags & RestrictionFlags.FractionDigits) == 0 && 655(_baseFlags & RestrictionFlags.FractionDigits) != 0 659SetFlag(RestrictionFlags.FractionDigits); 742private void CheckProhibitedFlag(XmlSchemaFacet facet, RestrictionFlags flag, string errorCode) 750private void CheckDupFlag(XmlSchemaFacet facet, RestrictionFlags flag, string errorCode) 758private void SetFlag(XmlSchemaFacet facet, RestrictionFlags flag) 767private void SetFlag(RestrictionFlags flag) 851else if (restriction != null && (restriction.Flags & RestrictionFlags.WhiteSpace) != 0) 870if (restriction != null && (restriction.Flags & RestrictionFlags.Pattern) != 0) 1006RestrictionFlags flags = restriction != null ? restriction.Flags : 0; 1018if ((flags & RestrictionFlags.MaxInclusive) != 0) 1026if ((flags & RestrictionFlags.MaxExclusive) != 0) 1034if ((flags & RestrictionFlags.MinInclusive) != 0) 1042if ((flags & RestrictionFlags.MinExclusive) != 0) 1049if ((flags & RestrictionFlags.Enumeration) != 0) 1056return CheckTotalAndFractionDigits(value, restriction.TotalDigits, restriction.FractionDigits, ((flags & RestrictionFlags.TotalDigits) != 0), ((flags & RestrictionFlags.FractionDigits) != 0)); 1131RestrictionFlags flags = restriction != null ? restriction.Flags : 0; 1134if ((flags & RestrictionFlags.MaxInclusive) != 0) 1141if ((flags & RestrictionFlags.MaxExclusive) != 0) 1149if ((flags & RestrictionFlags.MinInclusive) != 0) 1157if ((flags & RestrictionFlags.MinExclusive) != 0) 1164if ((flags & RestrictionFlags.Enumeration) != 0) 1207RestrictionFlags flags = restriction != null ? restriction.Flags : 0; 1209if ((flags & RestrictionFlags.MaxInclusive) != 0) 1217if ((flags & RestrictionFlags.MaxExclusive) != 0) 1225if ((flags & RestrictionFlags.MinInclusive) != 0) 1233if ((flags & RestrictionFlags.MinExclusive) != 0) 1240if ((flags & RestrictionFlags.Enumeration) != 0) 1278RestrictionFlags flags = restriction != null ? restriction.Flags : 0; 1280if ((flags & RestrictionFlags.MaxInclusive) != 0) 1288if ((flags & RestrictionFlags.MaxExclusive) != 0) 1296if ((flags & RestrictionFlags.MinInclusive) != 0) 1304if ((flags & RestrictionFlags.MinExclusive) != 0) 1312if ((flags & RestrictionFlags.Enumeration) != 0) 1363RestrictionFlags flags = restriction != null ? restriction.Flags : 0; 1371if ((flags & RestrictionFlags.Length) != 0) 1378if ((flags & RestrictionFlags.MinLength) != 0) 1385if ((flags & RestrictionFlags.MaxLength) != 0) 1392if ((flags & RestrictionFlags.Enumeration) != 0) 1497RestrictionFlags flags = restriction != null ? restriction.Flags : 0; 1505if ((flags & RestrictionFlags.Length) != 0) 1512if ((flags & RestrictionFlags.MinLength) != 0) 1519if ((flags & RestrictionFlags.MaxLength) != 0) 1526if ((flags & RestrictionFlags.Enumeration) != 0) 1571RestrictionFlags flags = restriction != null ? restriction.Flags : 0; 1574if ((flags & RestrictionFlags.Length) != 0) 1581if ((flags & RestrictionFlags.MinLength) != 0) 1588if ((flags & RestrictionFlags.MaxLength) != 0) 1595if ((flags & RestrictionFlags.Enumeration) != 0) 1632RestrictionFlags flags = restriction != null ? restriction.Flags : 0; 1634if ((flags & (RestrictionFlags.Length | RestrictionFlags.MinLength | RestrictionFlags.MaxLength)) != 0) 1637if ((flags & RestrictionFlags.Length) != 0) 1645if ((flags & RestrictionFlags.MinLength) != 0) 1653if ((flags & RestrictionFlags.MaxLength) != 0) 1661if ((flags & RestrictionFlags.Enumeration) != 0) 1704RestrictionFlags flags = restriction != null ? restriction.Flags : 0; 1706if ((flags & RestrictionFlags.Enumeration) != 0)