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