1 write to _derivedRestriction
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.Xml\Xml\schema\FacetChecker.cs (1)
44
_derivedRestriction
= restriction;
103 references to _derivedRestriction
dotnet-svcutil-lib (103)
FrameworkFork\Microsoft.Xml\Xml\schema\FacetChecker.cs (103)
57
_derivedRestriction
.Length = XmlBaseConverter.DecimalToInt32((decimal)ParseFacetValue(_nonNegativeInt, facet, ResXml.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, ResXml.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, ResXml.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
if (
_derivedRestriction
.Enumeration == null)
176
_derivedRestriction
.Enumeration = new ArrayList();
178
_derivedRestriction
.Enumeration.Add(ParseFacetValue(_datatype, facet, ResXml.Sch_EnumerationFacetInvalid, nsmgr, nameTable));
188
_derivedRestriction
.WhiteSpace = XmlSchemaWhiteSpace.Preserve;
192
_derivedRestriction
.WhiteSpace = XmlSchemaWhiteSpace.Replace;
196
_derivedRestriction
.WhiteSpace = XmlSchemaWhiteSpace.Collapse;
204
if (!_datatype.IsEqual(_datatype.Restriction.WhiteSpace,
_derivedRestriction
.WhiteSpace))
220
(
_derivedRestriction
.WhiteSpace == XmlSchemaWhiteSpace.Replace ||
_derivedRestriction
.WhiteSpace == XmlSchemaWhiteSpace.Preserve)
226
_derivedRestriction
.WhiteSpace == XmlSchemaWhiteSpace.Preserve
238
_derivedRestriction
.MaxInclusive = ParseFacetValue(_builtInType, facet, ResXml.Sch_MaxInclusiveFacetInvalid, null, null);
242
if (!_datatype.IsEqual(_datatype.Restriction.MaxInclusive,
_derivedRestriction
.MaxInclusive))
247
CheckValue(
_derivedRestriction
.MaxInclusive, facet);
255
_derivedRestriction
.MaxExclusive = ParseFacetValue(_builtInType, facet, ResXml.Sch_MaxExclusiveFacetInvalid, null, null);
259
if (!_datatype.IsEqual(_datatype.Restriction.MaxExclusive,
_derivedRestriction
.MaxExclusive))
264
CheckValue(
_derivedRestriction
.MaxExclusive, facet);
272
_derivedRestriction
.MinInclusive = ParseFacetValue(_builtInType, facet, ResXml.Sch_MinInclusiveFacetInvalid, null, null);
276
if (!_datatype.IsEqual(_datatype.Restriction.MinInclusive,
_derivedRestriction
.MinInclusive))
281
CheckValue(
_derivedRestriction
.MinInclusive, facet);
289
_derivedRestriction
.MinExclusive = ParseFacetValue(_builtInType, facet, ResXml.Sch_MinExclusiveFacetInvalid, null, null);
293
if (!_datatype.IsEqual(_datatype.Restriction.MinExclusive,
_derivedRestriction
.MinExclusive))
298
CheckValue(
_derivedRestriction
.MinExclusive, facet);
307
_derivedRestriction
.TotalDigits = XmlBaseConverter.DecimalToInt32((decimal)ParseFacetValue(positiveInt, facet, ResXml.Sch_TotalDigitsFacetInvalid, null, null));
311
if (!_datatype.IsEqual(_datatype.Restriction.TotalDigits,
_derivedRestriction
.TotalDigits))
318
if (
_derivedRestriction
.TotalDigits > _datatype.Restriction.TotalDigits)
330
_derivedRestriction
.FractionDigits = XmlBaseConverter.DecimalToInt32((decimal)ParseFacetValue(_nonNegativeInt, facet, ResXml.Sch_FractionDigitsFacetInvalid, null, null));
332
if ((
_derivedRestriction
.FractionDigits != 0) && (_datatype.TypeCode != XmlTypeCode.Decimal))
338
if (
_derivedRestriction
.FractionDigits > _datatype.Restriction.FractionDigits)
353
if (
_derivedRestriction
.Patterns == null)
355
_derivedRestriction
.Patterns = new ArrayList();
366
_derivedRestriction
.Patterns.Add(new Regex(Preprocess(_regStr.ToString()), RegexOptions.None));
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)
510
(
_derivedRestriction
.Flags & RestrictionFlags.MinInclusive) != 0 &&
511
(
_derivedRestriction
.Flags & RestrictionFlags.MaxInclusive) != 0
514
if (_datatype.Compare(
_derivedRestriction
.MinInclusive,
_derivedRestriction
.MaxInclusive) > 0)
520
(
_derivedRestriction
.Flags & RestrictionFlags.MinInclusive) != 0 &&
521
(
_derivedRestriction
.Flags & RestrictionFlags.MaxExclusive) != 0
524
if (_datatype.Compare(
_derivedRestriction
.MinInclusive,
_derivedRestriction
.MaxExclusive) > 0)
530
(
_derivedRestriction
.Flags & RestrictionFlags.MinExclusive) != 0 &&
531
(
_derivedRestriction
.Flags & RestrictionFlags.MaxExclusive) != 0
534
if (_datatype.Compare(
_derivedRestriction
.MinExclusive,
_derivedRestriction
.MaxExclusive) > 0)
540
(
_derivedRestriction
.Flags & RestrictionFlags.MinExclusive) != 0 &&
541
(
_derivedRestriction
.Flags & RestrictionFlags.MaxInclusive) != 0
544
if (_datatype.Compare(
_derivedRestriction
.MinExclusive,
_derivedRestriction
.MaxInclusive) > 0)
549
if ((
_derivedRestriction
.Flags & (RestrictionFlags.TotalDigits | RestrictionFlags.FractionDigits)) == (RestrictionFlags.TotalDigits | RestrictionFlags.FractionDigits))
551
if (
_derivedRestriction
.FractionDigits >
_derivedRestriction
.TotalDigits)
563
(
_derivedRestriction
.Flags & RestrictionFlags.Length) == 0 &&
567
_derivedRestriction
.Length = baseRestriction.Length;
571
(
_derivedRestriction
.Flags & RestrictionFlags.MinLength) == 0 &&
575
_derivedRestriction
.MinLength = baseRestriction.MinLength;
579
(
_derivedRestriction
.Flags & RestrictionFlags.MaxLength) == 0 &&
583
_derivedRestriction
.MaxLength = baseRestriction.MaxLength;
588
if (
_derivedRestriction
.Patterns == null)
590
_derivedRestriction
.Patterns = baseRestriction.Patterns;
594
_derivedRestriction
.Patterns.AddRange(baseRestriction.Patterns);
601
if (
_derivedRestriction
.Enumeration == null)
603
_derivedRestriction
.Enumeration = baseRestriction.Enumeration;
609
(
_derivedRestriction
.Flags & RestrictionFlags.WhiteSpace) == 0 &&
613
_derivedRestriction
.WhiteSpace = baseRestriction.WhiteSpace;
617
(
_derivedRestriction
.Flags & RestrictionFlags.MaxInclusive) == 0 &&
621
_derivedRestriction
.MaxInclusive = baseRestriction.MaxInclusive;
625
(
_derivedRestriction
.Flags & RestrictionFlags.MaxExclusive) == 0 &&
629
_derivedRestriction
.MaxExclusive = baseRestriction.MaxExclusive;
633
(
_derivedRestriction
.Flags & RestrictionFlags.MinInclusive) == 0 &&
637
_derivedRestriction
.MinInclusive = baseRestriction.MinInclusive;
641
(
_derivedRestriction
.Flags & RestrictionFlags.MinExclusive) == 0 &&
645
_derivedRestriction
.MinExclusive = baseRestriction.MinExclusive;
649
(
_derivedRestriction
.Flags & RestrictionFlags.TotalDigits) == 0 &&
653
_derivedRestriction
.TotalDigits = baseRestriction.TotalDigits;
657
(
_derivedRestriction
.Flags & RestrictionFlags.FractionDigits) == 0 &&
661
_derivedRestriction
.FractionDigits = baseRestriction.FractionDigits;
756
if ((
_derivedRestriction
.Flags & flag) != 0)
764
_derivedRestriction
.Flags |= flag;
767
_derivedRestriction
.FixedFlags |= flag;
773
_derivedRestriction
.Flags |= flag;
776
_derivedRestriction
.FixedFlags |= flag;