123 references to XmlSchemaContentType
netstandard (1)
netstandard.cs (1)
2318[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaContentType))]
System.Private.Xml (120)
System\Xml\Core\XsdValidatingReader.cs (7)
226if (nodeType == XmlNodeType.Whitespace && (_validator.CurrentContentType == XmlSchemaContentType.TextOnly || _validator.CurrentContentType == XmlSchemaContentType.Mixed)) 423if (_xmlSchemaInfo.ContentType == XmlSchemaContentType.TextOnly) 432if (_attributePSVI != null && AttributeSchemaInfo.ContentType == XmlSchemaContentType.TextOnly) 2404if (_validator.CurrentContentType == XmlSchemaContentType.TextOnly) 2448if (_xmlSchemaInfo.ContentType == XmlSchemaContentType.TextOnly) 2472if (_xmlSchemaInfo.ContentType == XmlSchemaContentType.TextOnly)
System\Xml\Core\XsdValidatingReaderAsync.cs (3)
731if (_validator.CurrentContentType == XmlSchemaContentType.TextOnly) 781if (_xmlSchemaInfo.ContentType == XmlSchemaContentType.TextOnly) 806if (_xmlSchemaInfo.ContentType == XmlSchemaContentType.TextOnly)
System\Xml\Schema\BaseValidator.cs (5)
181XmlSchemaContentType contentType = contentValidator.ContentType; 182if (contentType == XmlSchemaContentType.ElementOnly) 195else if (contentType == XmlSchemaContentType.Empty) 212XmlSchemaContentType contentType = context.ElementDecl!.ContentValidator!.ContentType; 218if (contentType == XmlSchemaContentType.Empty)
System\Xml\Schema\ContentValidator.cs (23)
928private readonly XmlSchemaContentType _contentType; 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); 937public ContentValidator(XmlSchemaContentType contentType) 943protected ContentValidator(XmlSchemaContentType contentType, bool isOpen, bool isEmptiable) 950public XmlSchemaContentType ContentType 957get { return _contentType == XmlSchemaContentType.TextOnly || _contentType == XmlSchemaContentType.Mixed; } 969if (_contentType == XmlSchemaContentType.TextOnly || _contentType == XmlSchemaContentType.Empty) 984if (_contentType == XmlSchemaContentType.TextOnly || _contentType == XmlSchemaContentType.Empty) 1050public ParticleContentValidator(XmlSchemaContentType contentType) : this(contentType, true) 1054public ParticleContentValidator(XmlSchemaContentType contentType, bool enableUpaCheck) : base(contentType) 1234Debug.Assert(ContentType == XmlSchemaContentType.ElementOnly || ContentType == XmlSchemaContentType.Mixed); 1237if (ContentType == XmlSchemaContentType.Mixed) 1572XmlSchemaContentType contentType, bool isOpen, bool isEmptiable) : base(contentType, isOpen, isEmptiable) 1691XmlSchemaContentType contentType, bool isOpen, bool isEmptiable) : base(contentType, isOpen, isEmptiable) 1836BitSet firstpos, BitSet[] followpos, SymbolsDictionary symbols, Positions positions, int endMarkerPos, XmlSchemaContentType contentType, bool isEmptiable, BitSet positionsWithRangeTerminals, int minmaxNodesCount) : base(contentType, false, isEmptiable) 2118public AllElementsContentValidator(XmlSchemaContentType contentType, int size, bool isEmptiable) : base(contentType, false, isEmptiable)
System\Xml\Schema\DtdParser.cs (3)
794elementDecl.ContentValidator.ContentType == XmlSchemaContentType.Empty && 976ParticleContentValidator pcv = new ParticleContentValidator(XmlSchemaContentType.Mixed); 988pcv = new ParticleContentValidator(XmlSchemaContentType.ElementOnly);
System\Xml\Schema\DtdParserAsync.cs (3)
438elementDecl.ContentValidator.ContentType == XmlSchemaContentType.Empty && 620ParticleContentValidator pcv = new ParticleContentValidator(XmlSchemaContentType.Mixed); 632pcv = new ParticleContentValidator(XmlSchemaContentType.ElementOnly);
System\Xml\Schema\DtdValidator.cs (1)
111context.ElementDecl.ContentValidator!.ContentType == XmlSchemaContentType.ElementOnly)
System\Xml\Schema\SchemaCollectionCompiler.cs (18)
720complexType.SetContentType(XmlSchemaContentType.TextOnly); 831if (baseType.ContentType != XmlSchemaContentType.TextOnly) 858if (baseType.ContentType == XmlSchemaContentType.TextOnly) 876else if (baseType.ContentType == XmlSchemaContentType.Mixed && baseType.ElementDecl!.ContentValidator!.IsEmptiable) 944if (baseType.ContentType == XmlSchemaContentType.TextOnly) 972XmlSchemaContentType contentType = GetSchemaContentType(complexType, complexContent, extendedParticle); 973if (contentType == XmlSchemaContentType.Empty) 1010if (baseType.ContentType == XmlSchemaContentType.TextOnly) 1026if (complexType.ContentType == XmlSchemaContentType.Empty) 1697private static XmlSchemaContentType GetSchemaContentType(XmlSchemaComplexType complexType, XmlSchemaComplexContent? complexContent, XmlSchemaParticle particle) 1702return XmlSchemaContentType.Mixed; 1706return XmlSchemaContentType.ElementOnly; 1710return XmlSchemaContentType.Empty; 2288if (decl.ContentValidator.ContentType == XmlSchemaContentType.TextOnly) 2305else if (decl.ContentValidator.ContentType != XmlSchemaContentType.Mixed || !decl.ContentValidator.IsEmptiable) 2345if (complexType.ContentType == XmlSchemaContentType.Empty) 2349else if (complexType.ContentType == XmlSchemaContentType.TextOnly) 2356if (complexType.ContentType == XmlSchemaContentType.ElementOnly)
System\Xml\Schema\SchemaSetCompiler.cs (21)
811complexType.SetContentType(XmlSchemaContentType.TextOnly); 910if (baseType.ContentType != XmlSchemaContentType.TextOnly) 938if (baseType.ContentType == XmlSchemaContentType.TextOnly) 956else if (baseType.ContentType == XmlSchemaContentType.Mixed && baseType.ElementDecl!.ContentValidator!.IsEmptiable) 1054XmlSchemaContentType contentType = GetSchemaContentType(complexType, complexContent, extendedParticle); 1055if (contentType == XmlSchemaContentType.Empty) 1061if (contentType == XmlSchemaContentType.TextOnly) 1069if (baseType.ContentType != XmlSchemaContentType.Empty && complexType.ContentType != baseType.ContentType) 1104XmlSchemaContentType derivedContentType = GetSchemaContentType(complexType, complexContent, complexType.ContentTypeParticle); 1108case XmlSchemaContentType.Empty: 1115case XmlSchemaContentType.Mixed: 1116if (baseType.ContentType != XmlSchemaContentType.Mixed) 2048private static XmlSchemaContentType GetSchemaContentType(XmlSchemaComplexType complexType, XmlSchemaComplexContent? complexContent, XmlSchemaParticle particle) 2053return XmlSchemaContentType.Mixed; 2057return XmlSchemaContentType.ElementOnly; 2061return XmlSchemaContentType.Empty; 2747if (decl.ContentValidator.ContentType == XmlSchemaContentType.TextOnly || (decl.ContentValidator.ContentType == XmlSchemaContentType.Mixed && decl.ContentValidator.IsEmptiable)) 2814if (complexType.ContentType == XmlSchemaContentType.Empty) 2818else if (complexType.ContentType == XmlSchemaContentType.TextOnly) 2825if (complexType.ContentType == XmlSchemaContentType.ElementOnly)
System\Xml\Schema\XdrBuilder.cs (2)
709builder._contentValidator = new ParticleContentValidator(XmlSchemaContentType.Mixed); 858builder._contentValidator = new ParticleContentValidator(XmlSchemaContentType.ElementOnly);
System\Xml\Schema\XmlSchemaComplexType.cs (4)
45untypedAny.SetContentType(XmlSchemaContentType.Mixed); 69localAnyType.SetContentType(XmlSchemaContentType.Mixed); 75ParticleContentValidator contentValidator = new ParticleContentValidator(XmlSchemaContentType.Mixed); 203public XmlSchemaContentType ContentType
System\Xml\Schema\XmlSchemaInfo.cs (4)
18private XmlSchemaContentType _contentType; 93_contentType = XmlSchemaContentType.Empty; 130public XmlSchemaContentType ContentType 183_contentType = XmlSchemaContentType.Empty;
System\Xml\Schema\XmlSchemaSimpleType.cs (1)
15Debug.Assert(SchemaContentType == XmlSchemaContentType.TextOnly);
System\Xml\Schema\XmlSchemaType.cs (3)
27private XmlSchemaContentType _contentType; 221internal XmlSchemaContentType SchemaContentType 272internal void SetContentType(XmlSchemaContentType value)
System\Xml\Schema\XmlSchemaValidator.cs (22)
751XmlSchemaContentType contentType = _context.ElementDecl!.ContentValidator!.ContentType; 754case XmlSchemaContentType.Empty: 758case XmlSchemaContentType.TextOnly: 769case XmlSchemaContentType.ElementOnly: 787case XmlSchemaContentType.Mixed: 830XmlSchemaContentType contentType = _context.ElementDecl!.ContentValidator!.ContentType; 833case XmlSchemaContentType.Empty: 837case XmlSchemaContentType.TextOnly: 848case XmlSchemaContentType.Mixed: 1100internal XmlSchemaContentType CurrentContentType 1106return XmlSchemaContentType.Empty; 1181XmlSchemaContentType contentType = contextElementDecl.ContentValidator!.ContentType; 1184case XmlSchemaContentType.TextOnly: 1196case XmlSchemaContentType.Mixed: 1207case XmlSchemaContentType.ElementOnly: 1309if (contentValidator.ContentType == XmlSchemaContentType.Mixed && _context.ElementDecl.Presence == SchemaDeclBase.Use.Fixed) 1806Debug.Assert(elementDecl.ContentValidator!.ContentType == XmlSchemaContentType.Mixed && elementDecl.DefaultValueTyped != null); 2247if (currentElementDecl.Datatype == null || currentElementDecl.ContentValidator!.ContentType == XmlSchemaContentType.Mixed) 2504XmlSchemaContentType contentType = contentValidator.ContentType; 2505if (contentType == XmlSchemaContentType.ElementOnly || (contentType == XmlSchemaContentType.Mixed && contentValidator != ContentValidator.Mixed && contentValidator != ContentValidator.Any)) 2544if (contentType == XmlSchemaContentType.Empty)
System.Xml (1)
System.Xml.cs (1)
43[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaContentType))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net9.0\System.Xml.ReaderWriter.Forwards.cs (1)
42[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaContentType))]