1 write to derivedRestriction
System.Xml (1)
System\Xml\Schema\FacetChecker.cs (1)
47derivedRestriction = restriction;
103 references to derivedRestriction
System.Xml (103)
System\Xml\Schema\FacetChecker.cs (103)
59derivedRestriction.Length = XmlBaseConverter.DecimalToInt32((decimal)ParseFacetValue(nonNegativeInt, facet, Res.Sch_LengthFacetInvalid, null, null)); 62if (!datatype.IsEqual(datatype.Restriction.Length, derivedRestriction.Length)) { 67if (datatype.Restriction.Length < derivedRestriction.Length) { 73if (datatype.Restriction.MinLength > derivedRestriction.Length) { 79if (datatype.Restriction.MaxLength < derivedRestriction.Length) { 89derivedRestriction.MinLength = XmlBaseConverter.DecimalToInt32((decimal)ParseFacetValue(nonNegativeInt, facet, Res.Sch_MinLengthFacetInvalid, null, null)); 92if (!datatype.IsEqual(datatype.Restriction.MinLength, derivedRestriction.MinLength)) { 97if (datatype.Restriction.MinLength > derivedRestriction.MinLength) { 102if (datatype.Restriction.Length < derivedRestriction.MinLength) { 112derivedRestriction.MaxLength = XmlBaseConverter.DecimalToInt32((decimal)ParseFacetValue(nonNegativeInt, facet, Res.Sch_MaxLengthFacetInvalid, null, null)); 115if (!datatype.IsEqual(datatype.Restriction.MaxLength, derivedRestriction.MaxLength)) { 120if (datatype.Restriction.MaxLength < derivedRestriction.MaxLength) { 125if (datatype.Restriction.Length > derivedRestriction.MaxLength) { 150if (derivedRestriction.Enumeration == null) { 151derivedRestriction.Enumeration = new ArrayList(); 153derivedRestriction.Enumeration.Add(ParseFacetValue(datatype, facet, Res.Sch_EnumerationFacetInvalid, nsmgr, nameTable)); 161derivedRestriction.WhiteSpace = XmlSchemaWhiteSpace.Preserve; 164derivedRestriction.WhiteSpace = XmlSchemaWhiteSpace.Replace; 167derivedRestriction.WhiteSpace = XmlSchemaWhiteSpace.Collapse; 173if (!datatype.IsEqual(datatype.Restriction.WhiteSpace, derivedRestriction.WhiteSpace)) { 186(derivedRestriction.WhiteSpace == XmlSchemaWhiteSpace.Replace || derivedRestriction.WhiteSpace == XmlSchemaWhiteSpace.Preserve) 191derivedRestriction.WhiteSpace == XmlSchemaWhiteSpace.Preserve 201derivedRestriction.MaxInclusive = ParseFacetValue(builtInType, facet, Res.Sch_MaxInclusiveFacetInvalid, null, null); 204if (!datatype.IsEqual(datatype.Restriction.MaxInclusive, derivedRestriction.MaxInclusive)) { 208CheckValue(derivedRestriction.MaxInclusive, facet); 215derivedRestriction.MaxExclusive = ParseFacetValue(builtInType, facet, Res.Sch_MaxExclusiveFacetInvalid, null, null); 218if (!datatype.IsEqual(datatype.Restriction.MaxExclusive, derivedRestriction.MaxExclusive)) { 222CheckValue(derivedRestriction.MaxExclusive, facet); 229derivedRestriction.MinInclusive = ParseFacetValue(builtInType, facet, Res.Sch_MinInclusiveFacetInvalid, null, null); 232if (!datatype.IsEqual(datatype.Restriction.MinInclusive, derivedRestriction.MinInclusive)) { 236CheckValue(derivedRestriction.MinInclusive, facet); 243derivedRestriction.MinExclusive = ParseFacetValue(builtInType, facet, Res.Sch_MinExclusiveFacetInvalid, null, null); 246if (!datatype.IsEqual(datatype.Restriction.MinExclusive, derivedRestriction.MinExclusive)) { 250CheckValue(derivedRestriction.MinExclusive, facet); 258derivedRestriction.TotalDigits = XmlBaseConverter.DecimalToInt32((decimal)ParseFacetValue(positiveInt, facet, Res.Sch_TotalDigitsFacetInvalid, null, null)); 261if (!datatype.IsEqual(datatype.Restriction.TotalDigits, derivedRestriction.TotalDigits)) { 266if(derivedRestriction.TotalDigits > datatype.Restriction.TotalDigits) { 276derivedRestriction.FractionDigits = XmlBaseConverter.DecimalToInt32((decimal)ParseFacetValue(nonNegativeInt, facet, Res.Sch_FractionDigitsFacetInvalid, null, null)); 278if ((derivedRestriction.FractionDigits != 0) && (datatype.TypeCode != XmlTypeCode.Decimal)) { 282if (derivedRestriction.FractionDigits > datatype.Restriction.FractionDigits) { 294if (derivedRestriction.Patterns == null) { 295derivedRestriction.Patterns = new ArrayList(); 304derivedRestriction.Patterns.Add(new Regex(Preprocess(regStr.ToString()), RegexOptions.None)); 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 412if (derivedRestriction.MinLength > derivedRestriction.MaxLength) { 419(derivedRestriction.Flags & RestrictionFlags.MinInclusive) != 0 && 420(derivedRestriction.Flags & RestrictionFlags.MaxInclusive) != 0 422if (datatype.Compare(derivedRestriction.MinInclusive, derivedRestriction.MaxInclusive) > 0) { 427(derivedRestriction.Flags & RestrictionFlags.MinInclusive) != 0 && 428(derivedRestriction.Flags & RestrictionFlags.MaxExclusive) != 0 430if (datatype.Compare(derivedRestriction.MinInclusive, derivedRestriction.MaxExclusive) > 0) { 435(derivedRestriction.Flags & RestrictionFlags.MinExclusive) != 0 && 436(derivedRestriction.Flags & RestrictionFlags.MaxExclusive) != 0 438if (datatype.Compare(derivedRestriction.MinExclusive, derivedRestriction.MaxExclusive) > 0) { 443(derivedRestriction.Flags & RestrictionFlags.MinExclusive) != 0 && 444(derivedRestriction.Flags & RestrictionFlags.MaxInclusive) != 0 446if (datatype.Compare(derivedRestriction.MinExclusive, derivedRestriction.MaxInclusive) > 0) { 450if ((derivedRestriction.Flags & (RestrictionFlags.TotalDigits|RestrictionFlags.FractionDigits)) == (RestrictionFlags.TotalDigits|RestrictionFlags.FractionDigits)) { 451if (derivedRestriction.FractionDigits > derivedRestriction.TotalDigits) { 461(derivedRestriction.Flags & RestrictionFlags.Length) == 0 && 464derivedRestriction.Length = baseRestriction.Length; 468(derivedRestriction.Flags & RestrictionFlags.MinLength) == 0 && 471derivedRestriction.MinLength = baseRestriction.MinLength; 475(derivedRestriction.Flags & RestrictionFlags.MaxLength) == 0 && 478derivedRestriction.MaxLength = baseRestriction.MaxLength; 482if (derivedRestriction.Patterns == null) { 483derivedRestriction.Patterns = baseRestriction.Patterns; 486derivedRestriction.Patterns.AddRange(baseRestriction.Patterns); 492if (derivedRestriction.Enumeration == null) { 493derivedRestriction.Enumeration = baseRestriction.Enumeration; 499(derivedRestriction.Flags & RestrictionFlags.WhiteSpace) == 0 && 502derivedRestriction.WhiteSpace = baseRestriction.WhiteSpace; 506(derivedRestriction.Flags & RestrictionFlags.MaxInclusive) == 0 && 509derivedRestriction.MaxInclusive = baseRestriction.MaxInclusive; 513(derivedRestriction.Flags & RestrictionFlags.MaxExclusive) == 0 && 516derivedRestriction.MaxExclusive = baseRestriction.MaxExclusive; 520(derivedRestriction.Flags & RestrictionFlags.MinInclusive) == 0 && 523derivedRestriction.MinInclusive = baseRestriction.MinInclusive; 527(derivedRestriction.Flags & RestrictionFlags.MinExclusive) == 0 && 530derivedRestriction.MinExclusive = baseRestriction.MinExclusive; 534(derivedRestriction.Flags & RestrictionFlags.TotalDigits) == 0 && 537derivedRestriction.TotalDigits = baseRestriction.TotalDigits; 541(derivedRestriction.Flags & RestrictionFlags.FractionDigits) == 0 && 544derivedRestriction.FractionDigits = baseRestriction.FractionDigits; 622if ((derivedRestriction.Flags & flag) != 0) { 628derivedRestriction.Flags |= flag; 630derivedRestriction.FixedFlags |= flag; 635derivedRestriction.Flags |= flag; 637derivedRestriction.FixedFlags |= flag;