1 write to _derivedRestriction
System.Private.Xml (1)
System\Xml\Schema\FacetChecker.cs (1)
44
_derivedRestriction
= restriction;
101 references to _derivedRestriction
System.Private.Xml (101)
System\Xml\Schema\FacetChecker.cs (101)
57
_derivedRestriction
.Length = XmlBaseConverter.DecimalToInt32((decimal)ParseFacetValue(_nonNegativeInt, facet, SR.Sch_LengthFacetInvalid, null, null));
61
if (!_datatype.IsEqual(_datatype.Restriction!.Length,
_derivedRestriction
.Length))
68
if (_datatype.Restriction!.Length <
_derivedRestriction
.Length)
76
if (_datatype.Restriction!.MinLength >
_derivedRestriction
.Length)
84
if (_datatype.Restriction!.MaxLength <
_derivedRestriction
.Length)
96
_derivedRestriction
.MinLength = XmlBaseConverter.DecimalToInt32((decimal)ParseFacetValue(_nonNegativeInt, facet, SR.Sch_MinLengthFacetInvalid, null, null));
100
if (!_datatype.IsEqual(_datatype.Restriction!.MinLength,
_derivedRestriction
.MinLength))
107
if (_datatype.Restriction!.MinLength >
_derivedRestriction
.MinLength)
114
if (_datatype.Restriction!.Length <
_derivedRestriction
.MinLength)
126
_derivedRestriction
.MaxLength = XmlBaseConverter.DecimalToInt32((decimal)ParseFacetValue(_nonNegativeInt, facet, SR.Sch_MaxLengthFacetInvalid, null, null));
130
if (!_datatype.IsEqual(_datatype.Restriction!.MaxLength,
_derivedRestriction
.MaxLength))
137
if (_datatype.Restriction!.MaxLength <
_derivedRestriction
.MaxLength)
144
if (_datatype.Restriction!.Length >
_derivedRestriction
.MaxLength)
174
_derivedRestriction
.Enumeration ??= new ArrayList();
175
_derivedRestriction
.Enumeration.Add(ParseFacetValue(_datatype, facet, SR.Sch_EnumerationFacetInvalid, nsmgr, nameTable));
185
_derivedRestriction
.WhiteSpace = XmlSchemaWhiteSpace.Preserve;
189
_derivedRestriction
.WhiteSpace = XmlSchemaWhiteSpace.Replace;
193
_derivedRestriction
.WhiteSpace = XmlSchemaWhiteSpace.Collapse;
201
if (!_datatype.IsEqual(_datatype.Restriction!.WhiteSpace,
_derivedRestriction
.WhiteSpace))
217
(
_derivedRestriction
.WhiteSpace == XmlSchemaWhiteSpace.Replace ||
_derivedRestriction
.WhiteSpace == XmlSchemaWhiteSpace.Preserve)
223
_derivedRestriction
.WhiteSpace == XmlSchemaWhiteSpace.Preserve
235
_derivedRestriction
.MaxInclusive = ParseFacetValue(_builtInType, facet, SR.Sch_MaxInclusiveFacetInvalid, null, null);
239
if (!_datatype.IsEqual(_datatype.Restriction!.MaxInclusive!,
_derivedRestriction
.MaxInclusive))
244
CheckValue(
_derivedRestriction
.MaxInclusive, facet);
252
_derivedRestriction
.MaxExclusive = ParseFacetValue(_builtInType, facet, SR.Sch_MaxExclusiveFacetInvalid, null, null);
256
if (!_datatype.IsEqual(_datatype.Restriction!.MaxExclusive!,
_derivedRestriction
.MaxExclusive))
261
CheckValue(
_derivedRestriction
.MaxExclusive, facet);
269
_derivedRestriction
.MinInclusive = ParseFacetValue(_builtInType, facet, SR.Sch_MinInclusiveFacetInvalid, null, null);
273
if (!_datatype.IsEqual(_datatype.Restriction!.MinInclusive!,
_derivedRestriction
.MinInclusive))
278
CheckValue(
_derivedRestriction
.MinInclusive, facet);
286
_derivedRestriction
.MinExclusive = ParseFacetValue(_builtInType, facet, SR.Sch_MinExclusiveFacetInvalid, null, null);
290
if (!_datatype.IsEqual(_datatype.Restriction!.MinExclusive!,
_derivedRestriction
.MinExclusive))
295
CheckValue(
_derivedRestriction
.MinExclusive, facet);
304
_derivedRestriction
.TotalDigits = XmlBaseConverter.DecimalToInt32((decimal)ParseFacetValue(positiveInt, facet, SR.Sch_TotalDigitsFacetInvalid, null, null));
308
if (_datatype.Restriction!.TotalDigits !=
_derivedRestriction
.TotalDigits)
315
if (
_derivedRestriction
.TotalDigits > _datatype.Restriction!.TotalDigits)
327
_derivedRestriction
.FractionDigits = XmlBaseConverter.DecimalToInt32((decimal)ParseFacetValue(_nonNegativeInt, facet, SR.Sch_FractionDigitsFacetInvalid, null, null));
329
if ((
_derivedRestriction
.FractionDigits != 0) && (_datatype.TypeCode != XmlTypeCode.Decimal))
335
if (_datatype.Restriction!.FractionDigits !=
_derivedRestriction
.FractionDigits)
342
if (
_derivedRestriction
.FractionDigits > _datatype.Restriction!.FractionDigits)
357
_derivedRestriction
.Patterns ??= new ArrayList();
367
_derivedRestriction
.Patterns.Add(new Regex(Preprocess(_regStr.ToString())));
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
502
if (
_derivedRestriction
.MinLength >
_derivedRestriction
.MaxLength)
509
(
_derivedRestriction
.Flags & RestrictionFlags.MinInclusive) != 0 &&
510
(
_derivedRestriction
.Flags & RestrictionFlags.MaxInclusive) != 0
513
if (_datatype.Compare(
_derivedRestriction
.MinInclusive!,
_derivedRestriction
.MaxInclusive!) > 0)
519
(
_derivedRestriction
.Flags & RestrictionFlags.MinInclusive) != 0 &&
520
(
_derivedRestriction
.Flags & RestrictionFlags.MaxExclusive) != 0
523
if (_datatype.Compare(
_derivedRestriction
.MinInclusive!,
_derivedRestriction
.MaxExclusive!) > 0)
529
(
_derivedRestriction
.Flags & RestrictionFlags.MinExclusive) != 0 &&
530
(
_derivedRestriction
.Flags & RestrictionFlags.MaxExclusive) != 0
533
if (_datatype.Compare(
_derivedRestriction
.MinExclusive!,
_derivedRestriction
.MaxExclusive!) > 0)
539
(
_derivedRestriction
.Flags & RestrictionFlags.MinExclusive) != 0 &&
540
(
_derivedRestriction
.Flags & RestrictionFlags.MaxInclusive) != 0
543
if (_datatype.Compare(
_derivedRestriction
.MinExclusive!,
_derivedRestriction
.MaxInclusive!) > 0)
548
if ((
_derivedRestriction
.Flags & (RestrictionFlags.TotalDigits | RestrictionFlags.FractionDigits)) == (RestrictionFlags.TotalDigits | RestrictionFlags.FractionDigits))
550
if (
_derivedRestriction
.FractionDigits >
_derivedRestriction
.TotalDigits)
562
(
_derivedRestriction
.Flags & RestrictionFlags.Length) == 0 &&
566
_derivedRestriction
.Length = baseRestriction.Length;
570
(
_derivedRestriction
.Flags & RestrictionFlags.MinLength) == 0 &&
574
_derivedRestriction
.MinLength = baseRestriction.MinLength;
578
(
_derivedRestriction
.Flags & RestrictionFlags.MaxLength) == 0 &&
582
_derivedRestriction
.MaxLength = baseRestriction.MaxLength;
587
if (
_derivedRestriction
.Patterns == null)
589
_derivedRestriction
.Patterns = baseRestriction.Patterns;
593
_derivedRestriction
.Patterns.AddRange(baseRestriction.Patterns!);
601
_derivedRestriction
.Enumeration ??= baseRestriction.Enumeration;
606
(
_derivedRestriction
.Flags & RestrictionFlags.WhiteSpace) == 0 &&
610
_derivedRestriction
.WhiteSpace = baseRestriction.WhiteSpace;
614
(
_derivedRestriction
.Flags & RestrictionFlags.MaxInclusive) == 0 &&
618
_derivedRestriction
.MaxInclusive = baseRestriction.MaxInclusive;
622
(
_derivedRestriction
.Flags & RestrictionFlags.MaxExclusive) == 0 &&
626
_derivedRestriction
.MaxExclusive = baseRestriction.MaxExclusive;
630
(
_derivedRestriction
.Flags & RestrictionFlags.MinInclusive) == 0 &&
634
_derivedRestriction
.MinInclusive = baseRestriction.MinInclusive;
638
(
_derivedRestriction
.Flags & RestrictionFlags.MinExclusive) == 0 &&
642
_derivedRestriction
.MinExclusive = baseRestriction.MinExclusive;
646
(
_derivedRestriction
.Flags & RestrictionFlags.TotalDigits) == 0 &&
650
_derivedRestriction
.TotalDigits = baseRestriction.TotalDigits;
654
(
_derivedRestriction
.Flags & RestrictionFlags.FractionDigits) == 0 &&
658
_derivedRestriction
.FractionDigits = baseRestriction.FractionDigits;
752
if ((
_derivedRestriction
.Flags & flag) != 0)
760
_derivedRestriction
.Flags |= flag;
763
_derivedRestriction
.FixedFlags |= flag;
769
_derivedRestriction
.Flags |= flag;
772
_derivedRestriction
.FixedFlags |= flag;