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