5 types derived from ContentValidator
System.Private.Xml (5)
System\Xml\Schema\ContentValidator.cs (5)
1040
internal sealed class ParticleContentValidator :
ContentValidator
1562
internal sealed class DfaContentValidator :
ContentValidator
1681
internal sealed class NfaContentValidator :
ContentValidator
1825
internal sealed class RangeContentValidator :
ContentValidator
2111
internal sealed class AllElementsContentValidator :
ContentValidator
4 instantiations of ContentValidator
System.Private.Xml (4)
System\Xml\Schema\ContentValidator.cs (4)
932
public static readonly ContentValidator Empty = new
ContentValidator
(XmlSchemaContentType.Empty);
933
public static readonly ContentValidator TextOnly = new
ContentValidator
(XmlSchemaContentType.TextOnly, false, false);
934
public static readonly ContentValidator Mixed = new
ContentValidator
(XmlSchemaContentType.Mixed);
935
public static readonly ContentValidator Any = new
ContentValidator
(XmlSchemaContentType.Mixed, true, true);
40 references to ContentValidator
System.Private.Xml (40)
System\Xml\Schema\BaseValidator.cs (1)
180
ContentValidator
contentValidator = context.ElementDecl!.ContentValidator!;
System\Xml\Schema\ContentValidator.cs (8)
932
public static readonly
ContentValidator
Empty = new ContentValidator(XmlSchemaContentType.Empty);
933
public static readonly
ContentValidator
TextOnly = new ContentValidator(XmlSchemaContentType.TextOnly, false, false);
934
public static readonly
ContentValidator
Mixed = new ContentValidator(XmlSchemaContentType.Mixed);
935
public static readonly
ContentValidator
Any = new ContentValidator(XmlSchemaContentType.Mixed, true, true);
1232
public
ContentValidator
Finish(bool useDFA)
1239
return IsOpen ?
ContentValidator
.Any :
ContentValidator
.TextOnly;
1244
return
ContentValidator
.Empty;
System\Xml\Schema\DtdParser.cs (2)
965
elementDecl.ContentValidator =
ContentValidator
.Empty;
968
elementDecl.ContentValidator =
ContentValidator
.Any;
System\Xml\Schema\DtdParserAsync.cs (2)
609
elementDecl.ContentValidator =
ContentValidator
.Empty;
612
elementDecl.ContentValidator =
ContentValidator
.Any;
System\Xml\Schema\DtdValidator.cs (1)
124
if (context!.ElementDecl!.ContentValidator ==
ContentValidator
.Empty)
System\Xml\Schema\SchemaCollectionCompiler.cs (6)
622
decl.ContentValidator =
ContentValidator
.TextOnly;
2343
private
ContentValidator
CompileComplexContent(XmlSchemaComplexType complexType)
2347
return
ContentValidator
.Empty;
2351
return
ContentValidator
.TextOnly;
2358
return
ContentValidator
.Empty;
2362
return
ContentValidator
.Mixed;
System\Xml\Schema\SchemaElementDecl.cs (3)
23
private
ContentValidator
? _contentValidator;
41
_contentValidator =
ContentValidator
.TextOnly;
163
internal
ContentValidator
? ContentValidator
System\Xml\Schema\SchemaSetCompiler.cs (6)
712
decl.ContentValidator =
ContentValidator
.TextOnly;
2812
private
ContentValidator
CompileComplexContent(XmlSchemaComplexType complexType)
2816
return
ContentValidator
.Empty;
2820
return
ContentValidator
.TextOnly;
2827
return
ContentValidator
.Empty;
2831
return
ContentValidator
.Mixed;
System\Xml\Schema\XdrBuilder.cs (4)
853
builder._ElementDef._ElementDecl.ContentValidator =
ContentValidator
.TextOnly;
868
builder._ElementDef._ElementDecl.ContentValidator =
ContentValidator
.Empty;
956
builder._ElementDef._ElementDecl!.ContentValidator =
ContentValidator
.Any;
1439
builder._ElementDef._ElementDecl!.ContentValidator =
ContentValidator
.TextOnly;
System\Xml\Schema\XmlSchemaComplexType.cs (2)
81
ContentValidator
anyContentValidator = contentValidator.Finish(true);
115
internal static
ContentValidator
AnyTypeContentValidator
System\Xml\Schema\XmlSchemaValidator.cs (5)
950
ContentValidator
.AddParticleToExpected(element!, _schemaSet, expected, true);
1320
ContentValidator
contentValidator = _context.ElementDecl!.ContentValidator!;
2515
ContentValidator
contentValidator = context.ElementDecl.ContentValidator!;
2517
if (contentType == XmlSchemaContentType.ElementOnly || (contentType == XmlSchemaContentType.Mixed && contentValidator !=
ContentValidator
.Mixed && contentValidator !=
ContentValidator
.Any))