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