15 writes to ContentValidator
dotnet-svcutil-lib (15)
FrameworkFork\Microsoft.Xml\Xml\schema\DtdParser.cs (4)
977elementDecl.ContentValidator = ContentValidator.Empty; 980elementDecl.ContentValidator = ContentValidator.Any; 994elementDecl.ContentValidator = pcv.Finish(true); 1006elementDecl.ContentValidator = pcv.Finish(true);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (2)
613decl.ContentValidator = ContentValidator.TextOnly; 762decl.ContentValidator = CompileComplexContent(complexType);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (2)
698decl.ContentValidator = ContentValidator.TextOnly; 834decl.ContentValidator = CompileComplexContent(complexType);
FrameworkFork\Microsoft.Xml\Xml\schema\XdrBuilder.cs (5)
861builder._ElementDef._ElementDecl.ContentValidator = ContentValidator.TextOnly; 876builder._ElementDef._ElementDecl.ContentValidator = ContentValidator.Empty; 964builder._ElementDef._ElementDecl.ContentValidator = ContentValidator.Any; 1002builder._ElementDef._ElementDecl.ContentValidator = builder._contentValidator.Finish(true); 1450builder._ElementDef._ElementDecl.ContentValidator = ContentValidator.TextOnly;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaComplexType.cs (2)
59s_untypedAnyType.ElementDecl.ContentValidator = AnyTypeContentValidator; 90localAnyType.ElementDecl.ContentValidator = anyContentValidator;
48 references to ContentValidator
dotnet-svcutil-lib (48)
FrameworkFork\Microsoft.Xml\Xml\schema\basevalidator.cs (2)
174ContentValidator contentValidator = context.ElementDecl.ContentValidator; 204XmlSchemaContentType contentType = context.ElementDecl.ContentValidator.ContentType;
FrameworkFork\Microsoft.Xml\Xml\schema\DtdParser.cs (2)
805if (elementDecl.ContentValidator != null && 806elementDecl.ContentValidator.ContentType == XmlSchemaContentType.Empty &&
FrameworkFork\Microsoft.Xml\Xml\schema\dtdvalidator.cs (6)
108context.ElementDecl.ContentValidator.ContentType == XmlSchemaContentType.ElementOnly) 121if (context.ElementDecl.ContentValidator == ContentValidator.Empty) 150context.ElementDecl.ContentValidator.ValidateElement(elementName, context, out errorCode); 246elementDecl.ContentValidator.InitValidation(context); 273if (!context.ElementDecl.ContentValidator.CompleteValidation(context)) 293get { return context.ElementDecl != null ? context.ElementDecl.ContentValidator.PreserveWhitespace : false; }
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (7)
867else if (baseType.ContentType == XmlSchemaContentType.Mixed && baseType.ElementDecl.ContentValidator.IsEmptiable) 1020Debug.Assert(baseType.ElementDecl.ContentValidator != null); 1022if (baseType.ElementDecl != null && !baseType.ElementDecl.ContentValidator.IsEmptiable) 2371if (decl.ContentValidator != null) 2373if (decl.ContentValidator.ContentType == XmlSchemaContentType.TextOnly) 2390else if (decl.ContentValidator.ContentType != XmlSchemaContentType.Mixed || !decl.ContentValidator.IsEmptiable)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaInfo.cs (1)
210if (!ed.ContentValidator.IsOpen || qname.Namespace.Length == 0)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (6)
945else if (baseType.ContentType == XmlSchemaContentType.Mixed && baseType.ElementDecl.ContentValidator.IsEmptiable) 1090if (baseType.ElementDecl != null && !baseType.ElementDecl.ContentValidator.IsEmptiable) 2803if (decl.ContentValidator != null) 2805if (decl.ContentValidator.ContentType == XmlSchemaContentType.TextOnly || (decl.ContentValidator.ContentType == XmlSchemaContentType.Mixed && decl.ContentValidator.IsEmptiable))
FrameworkFork\Microsoft.Xml\Xml\schema\xdrvalidator.cs (4)
112context.ElementDecl.ContentValidator.ValidateElement(elementName, context, out errorCode); 160context.ElementDecl.ContentValidator.InitValidation(context); 174if (!context.ElementDecl.ContentValidator.CompleteValidation(context)) 406get { return context.ElementDecl != null ? context.ElementDecl.ContentValidator.PreserveWhitespace : false; }
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaComplexType.cs (1)
131return s_anyTypeLax.ElementDecl.ContentValidator;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (15)
481elementDecl.ContentValidator.InitValidation(_context); 797XmlSchemaContentType contentType = _context.ElementDecl.ContentValidator.ContentType; 821ArrayList names = _context.ElementDecl.ContentValidator.ExpectedParticles(_context, false, _schemaSet); 879XmlSchemaContentType contentType = _context.ElementDecl.ContentValidator.ContentType; 1004ArrayList expected = _context.ElementDecl.ContentValidator.ExpectedParticles(_context, false, _schemaSet); 1150return _context.ElementDecl.ContentValidator.ContentType; 1222XmlSchemaContentType contentType = contextElementDecl.ContentValidator.ContentType; 1258if (!contextElementDecl.ContentValidator.CompleteValidation(_context)) 1346ContentValidator contentValidator = _context.ElementDecl.ContentValidator; 1358particle = _context.ElementDecl.ContentValidator.ValidateElement(head, _context, out errorCode); 1837Debug.Assert(elementDecl.ContentValidator.ContentType == XmlSchemaContentType.Mixed && elementDecl.DefaultValueTyped != null); 2287if (currentElementDecl.Datatype == null || currentElementDecl.ContentValidator.ContentType == XmlSchemaContentType.Mixed) 2530ContentValidator contentValidator = context.ElementDecl.ContentValidator; 2591names = context.ElementDecl.ContentValidator.ExpectedParticles(context, true, schemaSet); 2595names = context.ElementDecl.ContentValidator.ExpectedElements(context, true);
FrameworkFork\Microsoft.Xml\Xml\schema\xsdvalidator.cs (4)
201particle = context.ElementDecl.ContentValidator.ValidateElement(elementName, context, out errorCode); 252context.ElementDecl.ContentValidator.InitValidation(context); 340if (!context.ElementDecl.ContentValidator.CompleteValidation(context)) 666get { return context.ElementDecl != null ? context.ElementDecl.ContentValidator.PreserveWhitespace : false; }