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