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