120 references to XmlSchemaContentType
System.Xml (120)
System\Xml\Core\XsdValidatingReader.cs (7)
217
if (nodeType == XmlNodeType.Whitespace && (validator.CurrentContentType ==
XmlSchemaContentType
.TextOnly || validator.CurrentContentType ==
XmlSchemaContentType
.Mixed)) {
356
if (xmlSchemaInfo.ContentType ==
XmlSchemaContentType
.TextOnly) {
362
if (attributePSVI != null && AttributeSchemaInfo.ContentType ==
XmlSchemaContentType
.TextOnly) {
1884
if (validator.CurrentContentType ==
XmlSchemaContentType
.TextOnly) { //if current element is of simple type
1926
if (xmlSchemaInfo.ContentType ==
XmlSchemaContentType
.TextOnly) {
1944
if (xmlSchemaInfo.ContentType ==
XmlSchemaContentType
.TextOnly) {
System\Xml\Core\XsdValidatingReaderAsync.cs (3)
600
if (validator.CurrentContentType ==
XmlSchemaContentType
.TextOnly) { //if current element is of simple type
648
if (xmlSchemaInfo.ContentType ==
XmlSchemaContentType
.TextOnly) {
667
if (xmlSchemaInfo.ContentType ==
XmlSchemaContentType
.TextOnly) {
System\Xml\Schema\BaseValidator.cs (5)
148
XmlSchemaContentType
contentType = contentValidator.ContentType;
149
if (contentType ==
XmlSchemaContentType
.ElementOnly) {
159
else if (contentType ==
XmlSchemaContentType
.Empty) {
170
XmlSchemaContentType
contentType = context.ElementDecl.ContentValidator.ContentType;
174
if (contentType ==
XmlSchemaContentType
.Empty) {
System\Xml\Schema\ContentValidator.cs (23)
870
XmlSchemaContentType
contentType;
874
public static readonly ContentValidator Empty = new ContentValidator(
XmlSchemaContentType
.Empty);
875
public static readonly ContentValidator TextOnly = new ContentValidator(
XmlSchemaContentType
.TextOnly, false, false);
876
public static readonly ContentValidator Mixed = new ContentValidator(
XmlSchemaContentType
.Mixed);
877
public static readonly ContentValidator Any = new ContentValidator(
XmlSchemaContentType
.Mixed, true, true);
879
public ContentValidator(
XmlSchemaContentType
contentType) {
884
protected ContentValidator(
XmlSchemaContentType
contentType, bool isOpen, bool isEmptiable) {
890
public
XmlSchemaContentType
ContentType {
895
get { return contentType ==
XmlSchemaContentType
.TextOnly || contentType ==
XmlSchemaContentType
.Mixed; }
904
if (contentType ==
XmlSchemaContentType
.TextOnly || contentType ==
XmlSchemaContentType
.Empty)
917
if (contentType ==
XmlSchemaContentType
.TextOnly || contentType ==
XmlSchemaContentType
.Empty) { //Cannot have elements in TextOnly or Empty content
971
public ParticleContentValidator(
XmlSchemaContentType
contentType) : this(contentType, true) {
974
public ParticleContentValidator(
XmlSchemaContentType
contentType, bool enableUpaCheck) : base(contentType) {
1126
Debug.Assert(ContentType ==
XmlSchemaContentType
.ElementOnly || ContentType ==
XmlSchemaContentType
.Mixed);
1128
if (ContentType ==
XmlSchemaContentType
.Mixed) {
1429
XmlSchemaContentType
contentType, bool isOpen, bool isEmptiable) : base(contentType, isOpen, isEmptiable) {
1527
XmlSchemaContentType
contentType, bool isOpen, bool isEmptiable) : base(contentType, isOpen, isEmptiable) {
1654
BitSet firstpos, BitSet[] followpos, SymbolsDictionary symbols, Positions positions, int endMarkerPos,
XmlSchemaContentType
contentType, bool isEmptiable, BitSet positionsWithRangeTerminals, int minmaxNodesCount) : base(contentType, false, isEmptiable) {
1924
public AllElementsContentValidator(
XmlSchemaContentType
contentType, int size, bool isEmptiable) : base(contentType, false, isEmptiable) {
System\Xml\Schema\DtdParser.cs (3)
751
elementDecl.ContentValidator.ContentType ==
XmlSchemaContentType
.Empty &&
941
ParticleContentValidator pcv = new ParticleContentValidator(
XmlSchemaContentType
.Mixed );
953
pcv = new ParticleContentValidator(
XmlSchemaContentType
.ElementOnly );
System\Xml\Schema\DtdParserAsync.cs (3)
396
elementDecl.ContentValidator.ContentType ==
XmlSchemaContentType
.Empty &&
586
ParticleContentValidator pcv = new ParticleContentValidator(
XmlSchemaContentType
.Mixed );
598
pcv = new ParticleContentValidator(
XmlSchemaContentType
.ElementOnly );
System\Xml\Schema\DtdValidator.cs (1)
98
context.ElementDecl.ContentValidator.ContentType ==
XmlSchemaContentType
.ElementOnly) {
System\Xml\Schema\SchemaCollectionCompiler.cs (18)
568
complexType.SetContentType(
XmlSchemaContentType
.TextOnly);
656
if (baseType.ContentType !=
XmlSchemaContentType
.TextOnly) {
678
if (baseType.ContentType ==
XmlSchemaContentType
.TextOnly) {
692
else if (baseType.ContentType ==
XmlSchemaContentType
.Mixed && baseType.ElementDecl.ContentValidator.IsEmptiable) {
744
if (baseType.ContentType ==
XmlSchemaContentType
.TextOnly) {
767
XmlSchemaContentType
contentType = GetSchemaContentType(complexType, complexContent, extendedParticle);
768
if (contentType ==
XmlSchemaContentType
.Empty) { //Derived content type is empty, Get ContentType from base
797
if (baseType.ContentType ==
XmlSchemaContentType
.TextOnly) {
810
if (complexType.ContentType ==
XmlSchemaContentType
.Empty) {
1349
private
XmlSchemaContentType
GetSchemaContentType(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent, XmlSchemaParticle particle) {
1352
return
XmlSchemaContentType
.Mixed;
1355
return
XmlSchemaContentType
.ElementOnly;
1358
return
XmlSchemaContentType
.Empty;
1881
if (decl.ContentValidator.ContentType ==
XmlSchemaContentType
.TextOnly) {
1894
else if (decl.ContentValidator.ContentType !=
XmlSchemaContentType
.Mixed || !decl.ContentValidator.IsEmptiable) {
1926
if (complexType.ContentType ==
XmlSchemaContentType
.Empty) {
1929
else if (complexType.ContentType ==
XmlSchemaContentType
.TextOnly) {
1934
if (complexType.ContentType ==
XmlSchemaContentType
.ElementOnly) {
System\Xml\Schema\SchemaSetCompiler.cs (21)
636
complexType.SetContentType(
XmlSchemaContentType
.TextOnly);
714
if (baseType.ContentType !=
XmlSchemaContentType
.TextOnly) {
736
if (baseType.ContentType ==
XmlSchemaContentType
.TextOnly) {
750
else if (baseType.ContentType ==
XmlSchemaContentType
.Mixed && baseType.ElementDecl.ContentValidator.IsEmptiable) {
822
XmlSchemaContentType
contentType = GetSchemaContentType(complexType, complexContent, extendedParticle);
823
if (contentType ==
XmlSchemaContentType
.Empty) { //Derived content type is empty, Get ContentType from base
828
if (contentType ==
XmlSchemaContentType
.TextOnly) {
834
if (baseType.ContentType !=
XmlSchemaContentType
.Empty && complexType.ContentType != baseType.ContentType) { //If base is empty, do not check
862
XmlSchemaContentType
derivedContentType = GetSchemaContentType(complexType, complexContent, complexType.ContentTypeParticle);
865
case
XmlSchemaContentType
.Empty:
871
case
XmlSchemaContentType
.Mixed:
872
if (baseType.ContentType !=
XmlSchemaContentType
.Mixed) {
1623
private
XmlSchemaContentType
GetSchemaContentType(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent, XmlSchemaParticle particle) {
1626
return
XmlSchemaContentType
.Mixed;
1629
return
XmlSchemaContentType
.ElementOnly;
1632
return
XmlSchemaContentType
.Empty;
2228
if (decl.ContentValidator.ContentType ==
XmlSchemaContentType
.TextOnly || (decl.ContentValidator.ContentType ==
XmlSchemaContentType
.Mixed && decl.ContentValidator.IsEmptiable)) {
2281
if (complexType.ContentType ==
XmlSchemaContentType
.Empty) {
2284
else if (complexType.ContentType ==
XmlSchemaContentType
.TextOnly) {
2289
if (complexType.ContentType ==
XmlSchemaContentType
.ElementOnly) {
System\Xml\Schema\XdrBuilder.cs (2)
653
builder._contentValidator = new ParticleContentValidator(
XmlSchemaContentType
.Mixed);
779
builder._contentValidator = new ParticleContentValidator(
XmlSchemaContentType
.ElementOnly);
System\Xml\Schema\XmlSchemaComplexType.cs (4)
52
untypedAnyType.SetContentType(
XmlSchemaContentType
.Mixed);
74
localAnyType.SetContentType(
XmlSchemaContentType
.Mixed);
80
ParticleContentValidator contentValidator = new ParticleContentValidator(
XmlSchemaContentType
.Mixed);
229
public
XmlSchemaContentType
ContentType {
System\Xml\Schema\XmlSchemaInfo.cs (4)
22
XmlSchemaContentType
contentType;
78
contentType =
XmlSchemaContentType
.Empty;
107
public
XmlSchemaContentType
ContentType {
148
contentType =
XmlSchemaContentType
.Empty;
System\Xml\Schema\XmlSchemaSimpleType.cs (1)
26
Debug.Assert(SchemaContentType ==
XmlSchemaContentType
.TextOnly);
System\Xml\Schema\XmlSchemaType.cs (3)
31
XmlSchemaContentType
contentType;
207
internal
XmlSchemaContentType
SchemaContentType {
248
internal void SetContentType(
XmlSchemaContentType
value) {
System\Xml\Schema\XmlSchemaValidator.cs (22)
685
XmlSchemaContentType
contentType = context.ElementDecl.ContentValidator.ContentType;
687
case
XmlSchemaContentType
.Empty:
691
case
XmlSchemaContentType
.TextOnly:
700
case
XmlSchemaContentType
.ElementOnly:
715
case
XmlSchemaContentType
.Mixed:
751
XmlSchemaContentType
contentType = context.ElementDecl.ContentValidator.ContentType;
753
case
XmlSchemaContentType
.Empty:
757
case
XmlSchemaContentType
.TextOnly:
766
case
XmlSchemaContentType
.Mixed:
964
internal
XmlSchemaContentType
CurrentContentType {
967
return
XmlSchemaContentType
.Empty;
1025
XmlSchemaContentType
contentType = contextElementDecl.ContentValidator.ContentType;
1027
case
XmlSchemaContentType
.TextOnly:
1037
case
XmlSchemaContentType
.Mixed:
1046
case
XmlSchemaContentType
.ElementOnly:
1130
if (contentValidator.ContentType ==
XmlSchemaContentType
.Mixed && context.ElementDecl.Presence == SchemaDeclBase.Use.Fixed) { //Mixed with default or fixed
1527
Debug.Assert(elementDecl.ContentValidator.ContentType ==
XmlSchemaContentType
.Mixed && elementDecl.DefaultValueTyped != null);
1891
if (currentElementDecl.Datatype == null || currentElementDecl.ContentValidator.ContentType ==
XmlSchemaContentType
.Mixed) {
2105
XmlSchemaContentType
contentType = contentValidator.ContentType;
2106
if (contentType ==
XmlSchemaContentType
.ElementOnly || (contentType ==
XmlSchemaContentType
.Mixed && contentValidator != ContentValidator.Mixed && contentValidator != ContentValidator.Any)) {
2135
if (contentType ==
XmlSchemaContentType
.Empty) {