117 references to XmlSchemaContentType
dotnet-svcutil-lib (117)
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReader.cs (7)
236
if (nodeType == XmlNodeType.Whitespace && (_validator.CurrentContentType ==
XmlSchemaContentType
.TextOnly || _validator.CurrentContentType ==
XmlSchemaContentType
.Mixed))
416
if (_xmlSchemaInfo.ContentType ==
XmlSchemaContentType
.TextOnly)
423
if (_attributePSVI != null && AttributeSchemaInfo.ContentType ==
XmlSchemaContentType
.TextOnly)
2286
if (_validator.CurrentContentType ==
XmlSchemaContentType
.TextOnly)
2329
if (_xmlSchemaInfo.ContentType ==
XmlSchemaContentType
.TextOnly)
2350
if (_xmlSchemaInfo.ContentType ==
XmlSchemaContentType
.TextOnly)
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReaderAsync.cs (3)
706
if (_validator.CurrentContentType ==
XmlSchemaContentType
.TextOnly)
756
if (_xmlSchemaInfo.ContentType ==
XmlSchemaContentType
.TextOnly)
778
if (_xmlSchemaInfo.ContentType ==
XmlSchemaContentType
.TextOnly)
FrameworkFork\Microsoft.Xml\Xml\schema\basevalidator.cs (5)
175
XmlSchemaContentType
contentType = contentValidator.ContentType;
176
if (contentType ==
XmlSchemaContentType
.ElementOnly)
189
else if (contentType ==
XmlSchemaContentType
.Empty)
204
XmlSchemaContentType
contentType = context.ElementDecl.ContentValidator.ContentType;
209
if (contentType ==
XmlSchemaContentType
.Empty)
FrameworkFork\Microsoft.Xml\Xml\schema\ContentValidator.cs (23)
1008
private
XmlSchemaContentType
_contentType;
1012
public static readonly ContentValidator Empty = new ContentValidator(
XmlSchemaContentType
.Empty);
1013
public static readonly ContentValidator TextOnly = new ContentValidator(
XmlSchemaContentType
.TextOnly, false, false);
1014
public static readonly ContentValidator Mixed = new ContentValidator(
XmlSchemaContentType
.Mixed);
1015
public static readonly ContentValidator Any = new ContentValidator(
XmlSchemaContentType
.Mixed, true, true);
1017
public ContentValidator(
XmlSchemaContentType
contentType)
1023
protected ContentValidator(
XmlSchemaContentType
contentType, bool isOpen, bool isEmptiable)
1030
public
XmlSchemaContentType
ContentType
1037
get { return _contentType ==
XmlSchemaContentType
.TextOnly || _contentType ==
XmlSchemaContentType
.Mixed; }
1049
if (_contentType ==
XmlSchemaContentType
.TextOnly || _contentType ==
XmlSchemaContentType
.Empty)
1064
if (_contentType ==
XmlSchemaContentType
.TextOnly || _contentType ==
XmlSchemaContentType
.Empty)
1130
public ParticleContentValidator(
XmlSchemaContentType
contentType) : this(contentType, true)
1134
public ParticleContentValidator(
XmlSchemaContentType
contentType, bool enableUpaCheck) : base(contentType)
1318
Debug.Assert(ContentType ==
XmlSchemaContentType
.ElementOnly || ContentType ==
XmlSchemaContentType
.Mixed);
1321
if (ContentType ==
XmlSchemaContentType
.Mixed)
1672
XmlSchemaContentType
contentType, bool isOpen, bool isEmptiable) : base(contentType, isOpen, isEmptiable)
1792
XmlSchemaContentType
contentType, bool isOpen, bool isEmptiable) : base(contentType, isOpen, isEmptiable)
1940
BitSet firstpos, BitSet[] followpos, SymbolsDictionary symbols, Positions positions, int endMarkerPos,
XmlSchemaContentType
contentType, bool isEmptiable, BitSet positionsWithRangeTerminals, int minmaxNodesCount) : base(contentType, false, isEmptiable)
2257
public AllElementsContentValidator(
XmlSchemaContentType
contentType, int size, bool isEmptiable) : base(contentType, false, isEmptiable)
FrameworkFork\Microsoft.Xml\Xml\schema\DtdParser.cs (3)
806
elementDecl.ContentValidator.ContentType ==
XmlSchemaContentType
.Empty &&
988
ParticleContentValidator pcv = new ParticleContentValidator(
XmlSchemaContentType
.Mixed);
1000
pcv = new ParticleContentValidator(
XmlSchemaContentType
.ElementOnly);
FrameworkFork\Microsoft.Xml\Xml\schema\dtdvalidator.cs (1)
108
context.ElementDecl.ContentValidator.ContentType ==
XmlSchemaContentType
.ElementOnly)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (18)
711
complexType.SetContentType(
XmlSchemaContentType
.TextOnly);
822
if (baseType.ContentType !=
XmlSchemaContentType
.TextOnly)
849
if (baseType.ContentType ==
XmlSchemaContentType
.TextOnly)
867
else if (baseType.ContentType ==
XmlSchemaContentType
.Mixed && baseType.ElementDecl.ContentValidator.IsEmptiable)
935
if (baseType.ContentType ==
XmlSchemaContentType
.TextOnly)
963
XmlSchemaContentType
contentType = GetSchemaContentType(complexType, complexContent, extendedParticle);
964
if (contentType ==
XmlSchemaContentType
.Empty)
1001
if (baseType.ContentType ==
XmlSchemaContentType
.TextOnly)
1016
if (complexType.ContentType ==
XmlSchemaContentType
.Empty)
1699
private
XmlSchemaContentType
GetSchemaContentType(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent, XmlSchemaParticle particle)
1704
return
XmlSchemaContentType
.Mixed;
1708
return
XmlSchemaContentType
.ElementOnly;
1712
return
XmlSchemaContentType
.Empty;
2373
if (decl.ContentValidator.ContentType ==
XmlSchemaContentType
.TextOnly)
2390
else if (decl.ContentValidator.ContentType !=
XmlSchemaContentType
.Mixed || !decl.ContentValidator.IsEmptiable)
2429
if (complexType.ContentType ==
XmlSchemaContentType
.Empty)
2433
else if (complexType.ContentType ==
XmlSchemaContentType
.TextOnly)
2440
if (complexType.ContentType ==
XmlSchemaContentType
.ElementOnly)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (21)
798
complexType.SetContentType(
XmlSchemaContentType
.TextOnly);
900
if (baseType.ContentType !=
XmlSchemaContentType
.TextOnly)
927
if (baseType.ContentType ==
XmlSchemaContentType
.TextOnly)
945
else if (baseType.ContentType ==
XmlSchemaContentType
.Mixed && baseType.ElementDecl.ContentValidator.IsEmptiable)
1037
XmlSchemaContentType
contentType = GetSchemaContentType(complexType, complexContent, extendedParticle);
1038
if (contentType ==
XmlSchemaContentType
.Empty)
1044
if (contentType ==
XmlSchemaContentType
.TextOnly)
1051
if (baseType.ContentType !=
XmlSchemaContentType
.Empty && complexType.ContentType != baseType.ContentType)
1085
XmlSchemaContentType
derivedContentType = GetSchemaContentType(complexType, complexContent, complexType.ContentTypeParticle);
1089
case
XmlSchemaContentType
.Empty:
1096
case
XmlSchemaContentType
.Mixed:
1097
if (baseType.ContentType !=
XmlSchemaContentType
.Mixed)
2034
private
XmlSchemaContentType
GetSchemaContentType(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent, XmlSchemaParticle particle)
2039
return
XmlSchemaContentType
.Mixed;
2043
return
XmlSchemaContentType
.ElementOnly;
2047
return
XmlSchemaContentType
.Empty;
2805
if (decl.ContentValidator.ContentType ==
XmlSchemaContentType
.TextOnly || (decl.ContentValidator.ContentType ==
XmlSchemaContentType
.Mixed && decl.ContentValidator.IsEmptiable))
2872
if (complexType.ContentType ==
XmlSchemaContentType
.Empty)
2876
else if (complexType.ContentType ==
XmlSchemaContentType
.TextOnly)
2883
if (complexType.ContentType ==
XmlSchemaContentType
.ElementOnly)
FrameworkFork\Microsoft.Xml\Xml\schema\XdrBuilder.cs (2)
719
builder._contentValidator = new ParticleContentValidator(
XmlSchemaContentType
.Mixed);
866
builder._contentValidator = new ParticleContentValidator(
XmlSchemaContentType
.ElementOnly);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaComplexType.cs (4)
55
s_untypedAnyType.SetContentType(
XmlSchemaContentType
.Mixed);
77
localAnyType.SetContentType(
XmlSchemaContentType
.Mixed);
83
ParticleContentValidator contentValidator = new ParticleContentValidator(
XmlSchemaContentType
.Mixed);
255
public
XmlSchemaContentType
ContentType
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaInfo.cs (4)
24
private
XmlSchemaContentType
_contentType;
99
_contentType =
XmlSchemaContentType
.Empty;
136
public
XmlSchemaContentType
ContentType
189
_contentType =
XmlSchemaContentType
.Empty;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSimpleType.cs (1)
29
Debug.Assert(SchemaContentType ==
XmlSchemaContentType
.TextOnly);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaType.cs (3)
33
private
XmlSchemaContentType
_contentType;
238
internal
XmlSchemaContentType
SchemaContentType
289
internal void SetContentType(
XmlSchemaContentType
value)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (22)
797
XmlSchemaContentType
contentType = _context.ElementDecl.ContentValidator.ContentType;
800
case
XmlSchemaContentType
.Empty:
804
case
XmlSchemaContentType
.TextOnly:
815
case
XmlSchemaContentType
.ElementOnly:
833
case
XmlSchemaContentType
.Mixed:
879
XmlSchemaContentType
contentType = _context.ElementDecl.ContentValidator.ContentType;
882
case
XmlSchemaContentType
.Empty:
886
case
XmlSchemaContentType
.TextOnly:
897
case
XmlSchemaContentType
.Mixed:
1142
internal
XmlSchemaContentType
CurrentContentType
1148
return
XmlSchemaContentType
.Empty;
1222
XmlSchemaContentType
contentType = contextElementDecl.ContentValidator.ContentType;
1225
case
XmlSchemaContentType
.TextOnly:
1237
case
XmlSchemaContentType
.Mixed:
1248
case
XmlSchemaContentType
.ElementOnly:
1347
if (contentValidator.ContentType ==
XmlSchemaContentType
.Mixed && _context.ElementDecl.Presence == SchemaDeclBase.Use.Fixed)
1837
Debug.Assert(elementDecl.ContentValidator.ContentType ==
XmlSchemaContentType
.Mixed && elementDecl.DefaultValueTyped != null);
2287
if (currentElementDecl.Datatype == null || currentElementDecl.ContentValidator.ContentType ==
XmlSchemaContentType
.Mixed)
2531
XmlSchemaContentType
contentType = contentValidator.ContentType;
2532
if (contentType ==
XmlSchemaContentType
.ElementOnly || (contentType ==
XmlSchemaContentType
.Mixed && contentValidator != ContentValidator.Mixed && contentValidator != ContentValidator.Any))
2571
if (contentType ==
XmlSchemaContentType
.Empty)