5 types derived from XmlSchemaParticle
System.Private.Xml (5)
System\Xml\Schema\XmlSchemaAny.cs (1)
10public class XmlSchemaAny : XmlSchemaParticle
System\Xml\Schema\XmlSchemaElement.cs (1)
11public class XmlSchemaElement : XmlSchemaParticle
System\Xml\Schema\XmlSchemaGroupBase.cs (1)
8public abstract class XmlSchemaGroupBase : XmlSchemaParticle
System\Xml\Schema\XmlSchemaGroupRef.cs (1)
8public class XmlSchemaGroupRef : XmlSchemaParticle
System\Xml\Schema\XmlSchemaParticle.cs (1)
163private sealed class EmptyParticle : XmlSchemaParticle
244 references to XmlSchemaParticle
netstandard (1)
netstandard.cs (1)
2354[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaParticle))]
System.Data.Common (10)
System\Data\XMLSchema.cs (10)
529private bool IsDatasetParticle(XmlSchemaParticle pt) 560if (el is XmlSchemaParticle) 562if (!IsDatasetParticle((XmlSchemaParticle)el)) 622XmlSchemaParticle? particle = GetParticle(ct); 873internal static XmlSchemaObjectCollection? GetParticleItems(XmlSchemaParticle? pt) 898internal void HandleParticle(XmlSchemaParticle pt, DataTable table, ArrayList tableChildren, bool isBase) 980HandleParticle((XmlSchemaParticle)item, table, tableChildren, isBase); 1143internal static XmlSchemaParticle? GetParticle(XmlSchemaComplexType ct) 2681if (((XmlSchemaParticle)el).MaxOccurs > decimal.One && (((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType)) // amir 2682((XmlSchemaElement)choiceEl).MaxOccurs = ((XmlSchemaParticle)el).MaxOccurs;
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\SchemaImporter.cs (1)
622private DataContract? ImportType(XmlQualifiedName typeName, XmlSchemaParticle? rootParticle, XmlSchemaObjectCollection attributes, XmlSchemaAnyAttribute? anyAttribute, XmlQualifiedName? baseTypeName, XmlSchemaAnnotation? annotation)
System.Private.Xml (230)
System\Xml\Schema\ContentValidator.cs (15)
1007public static void AddParticleToExpected(XmlSchemaParticle p, XmlSchemaSet schemaSet, ArrayList particles) 1012public static void AddParticleToExpected(XmlSchemaParticle p, XmlSchemaSet schemaSet, ArrayList particles, bool global) 1629XmlSchemaParticle? p = (XmlSchemaParticle?)_symbols.GetParticle(i); 1663XmlSchemaParticle? p = (XmlSchemaParticle?)_symbols.GetParticle(i); 1778XmlSchemaParticle? p = (XmlSchemaParticle?)_positions[pos].particle; 1805XmlSchemaParticle? p = (XmlSchemaParticle?)_positions[pos].particle; 2055XmlSchemaParticle? p = _positions[pos].particle as XmlSchemaParticle; 2097XmlSchemaParticle? p = _positions[pos].particle as XmlSchemaParticle; 2216AddParticleToExpected((_particles[element.Value] as XmlSchemaParticle)!, schemaSet, expectedParticles);
System\Xml\Schema\Inference\Infer.cs (3)
1086XmlSchemaParticle? particle = xss.Items[iSeqItem] as XmlSchemaParticle; 1116particle = xss.Items[iSeqItem] as XmlSchemaParticle;
System\Xml\Schema\Preprocessor.cs (3)
1905private void PreprocessParticle(XmlSchemaParticle particle) 1953PreprocessParticle((XmlSchemaParticle)items[i]); 1970PreprocessParticle((XmlSchemaParticle)items[i]);
System\Xml\Schema\SchemaCollectionCompiler.cs (79)
369complexType.SetContentTypeParticle(XmlSchemaParticle.Empty); 417private static void CleanupParticle(XmlSchemaParticle particle) 428CleanupParticle((XmlSchemaParticle)particles[i]); 508group.CanonicalParticle = XmlSchemaParticle.Empty; 957XmlSchemaParticle baseParticle = baseType.ContentTypeParticle; 958XmlSchemaParticle extendedParticle = CanonicalizeParticle(complexExtension.Particle, true, true); 959if (baseParticle != XmlSchemaParticle.Empty) 961if (extendedParticle != XmlSchemaParticle.Empty) 1053private XmlSchemaParticle CompileContentTypeParticle(XmlSchemaParticle? particle, bool substitution) 1055XmlSchemaParticle ctp = CanonicalizeParticle(particle, true, substitution); 1063return XmlSchemaParticle.Empty; 1068private XmlSchemaParticle CanonicalizeParticle(XmlSchemaParticle? particle, bool root, bool substitution) 1072return XmlSchemaParticle.Empty; 1100private XmlSchemaParticle CanonicalizeElement(XmlSchemaElement element, bool substitution) 1123private XmlSchemaParticle CanonicalizeGroupRef(XmlSchemaGroupRef groupRef, bool root) 1137return XmlSchemaParticle.Empty; 1143if (group.CanonicalParticle == XmlSchemaParticle.Empty) 1145return XmlSchemaParticle.Empty; 1153return XmlSchemaParticle.Empty; 1158return XmlSchemaParticle.Empty; 1167return XmlSchemaParticle.Empty; 1178groupRefBase.Items.Add((XmlSchemaParticle)groupBase.Items[i]); 1184private XmlSchemaParticle CanonicalizeAll(XmlSchemaAll all, bool root, bool substitution) 1196XmlSchemaParticle p = CanonicalizeParticle((XmlSchemaElement)all.Items[i], false, substitution); 1197if (p != XmlSchemaParticle.Empty) 1206return XmlSchemaParticle.Empty; 1213newSequence.Items.Add((XmlSchemaParticle)all.Items[0]); 1218return (XmlSchemaParticle)all.Items[0]; 1223return XmlSchemaParticle.Empty; 1231private XmlSchemaParticle CanonicalizeChoice(XmlSchemaChoice choice, bool root, bool substitution) 1241XmlSchemaParticle p1 = CanonicalizeParticle((XmlSchemaParticle)choice.Items[i], false, substitution); 1242if (p1 != XmlSchemaParticle.Empty) 1266return XmlSchemaParticle.Empty; 1270return (XmlSchemaParticle)choice.Items[0]; 1278private XmlSchemaParticle CanonicalizeSequence(XmlSchemaSequence sequence, bool root, bool substitution) 1287XmlSchemaParticle p1 = CanonicalizeParticle((XmlSchemaParticle)sequence.Items[i], false, substitution); 1288if (p1 != XmlSchemaParticle.Empty) 1308return XmlSchemaParticle.Empty; 1312return (XmlSchemaParticle)sequence.Items[0]; 1320private bool IsValidRestriction(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle) 1326else if (derivedParticle == null || derivedParticle == XmlSchemaParticle.Empty) 1330else if (baseParticle == null || baseParticle == XmlSchemaParticle.Empty) 1446if (!IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items[i], baseAny)) 1461XmlSchemaParticle baseParticle = (XmlSchemaParticle)baseGroupBase.Items[i]; 1495XmlSchemaParticle baseParticle = (XmlSchemaParticle)baseGroupBase.Items[i]; 1496if ((count < derivedGroupBase.Items.Count) && IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items[count], baseParticle)) 1521int i = GetMappingParticle((XmlSchemaParticle)derivedSequence.Items[j], baseAll.Items); 1540if (!map[i] && !IsParticleEmptiable((XmlSchemaParticle)baseAll.Items[i])) 1558if (GetMappingParticle((XmlSchemaParticle)derivedSequence.Items[i], baseChoice.Items) < 0) 1569XmlSchemaParticle p = (XmlSchemaParticle)sequence.Items[i]; 1588private static bool IsValidOccurrenceRangeRestriction(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle) 1598private int GetMappingParticle(XmlSchemaParticle particle, XmlSchemaObjectCollection collection) 1602if (IsValidRestriction(particle, (XmlSchemaParticle)collection[i])) 1608private static bool IsParticleEmptiable(XmlSchemaParticle particle) 1615private static void CalculateEffectiveTotalRange(XmlSchemaParticle particle, out decimal minOccurs, out decimal maxOccurs) 1636CalculateEffectiveTotalRange((XmlSchemaParticle)choice.Items[i], out min, out max); 1670CalculateEffectiveTotalRange((XmlSchemaParticle)collection[i], out min, out max); 1697private static XmlSchemaContentType GetSchemaContentType(XmlSchemaComplexType complexType, XmlSchemaComplexContent? complexContent, XmlSchemaParticle particle) 2353XmlSchemaParticle particle = complexType.ContentTypeParticle; 2354if (particle == null || particle == XmlSchemaParticle.Empty) 2423private static string DumpContentModel(XmlSchemaParticle particle) 2430private static void DumpContentModelTo(StringBuilder sb, XmlSchemaParticle particle) 2480DumpContentModelTo(sb, (XmlSchemaParticle)gb.Items[i]); 2486Debug.Assert(particle == XmlSchemaParticle.Empty); 2512private static void BuildParticleContentModel(ParticleContentValidator contentValidator, XmlSchemaParticle particle) 2530XmlSchemaParticle p = (XmlSchemaParticle)particles[i]; 2574private void CompileParticleElements(XmlSchemaComplexType complexType, XmlSchemaParticle particle) 2597CompileParticleElements(complexType, (XmlSchemaParticle)particles[i]); 2611if (complexType.ContentTypeParticle != XmlSchemaParticle.Empty)
System\Xml\Schema\SchemaCollectionpreProcessor.cs (3)
1573private void PreprocessParticle(XmlSchemaParticle particle) 1621PreprocessParticle((XmlSchemaParticle)choices[i]); 1638PreprocessParticle((XmlSchemaParticle)sequences[i]);
System\Xml\Schema\SchemaSetCompiler.cs (82)
358complexType.SetContentTypeParticle(XmlSchemaParticle.Empty); 428private void CleanupParticle(XmlSchemaParticle? particle) 442CleanupParticle((XmlSchemaParticle)groupBase.Items[i]); 590group.CanonicalParticle = XmlSchemaParticle.Empty; 1033XmlSchemaParticle baseParticle = baseType.ContentTypeParticle; 1034XmlSchemaParticle extendedParticle = CanonicalizeParticle(complexExtension.Particle, true); 1035if (baseParticle != XmlSchemaParticle.Empty) 1037if (extendedParticle != XmlSchemaParticle.Empty) 1131XmlSchemaParticle derivedParticle = CanonicalizePointlessRoot(complexType.ContentTypeParticle); 1132XmlSchemaParticle baseParticle = CanonicalizePointlessRoot(baseType.ContentTypeParticle); 1164private void CheckParticleDerivation(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle) 1182private XmlSchemaParticle CompileContentTypeParticle(XmlSchemaParticle? particle) 1184XmlSchemaParticle ctp = CanonicalizeParticle(particle, true); 1192return XmlSchemaParticle.Empty; 1198private XmlSchemaParticle CanonicalizeParticle(XmlSchemaParticle? particle, bool root) 1202return XmlSchemaParticle.Empty; 1231private XmlSchemaParticle CanonicalizeElement(XmlSchemaElement element) 1259private XmlSchemaParticle CanonicalizeGroupRef(XmlSchemaGroupRef groupRef, bool root) 1274return XmlSchemaParticle.Empty; 1282if (group.CanonicalParticle == XmlSchemaParticle.Empty) 1284return XmlSchemaParticle.Empty; 1293return XmlSchemaParticle.Empty; 1299return XmlSchemaParticle.Empty; 1309return XmlSchemaParticle.Empty; 1330private XmlSchemaParticle CanonicalizeAll(XmlSchemaAll all, bool root) 1340XmlSchemaParticle p = CanonicalizeParticle((XmlSchemaElement)all.Items[i], false); 1341if (p != XmlSchemaParticle.Empty) 1350return XmlSchemaParticle.Empty; 1355return XmlSchemaParticle.Empty; 1363private XmlSchemaParticle CanonicalizeChoice(XmlSchemaChoice choice, bool root) 1374XmlSchemaParticle p1 = CanonicalizeParticle((XmlSchemaParticle)choice.Items[i], false); 1375if (p1 != XmlSchemaParticle.Empty) 1399return XmlSchemaParticle.Empty; 1403return (XmlSchemaParticle)choice.Items[0]; 1411private XmlSchemaParticle CanonicalizeSequence(XmlSchemaSequence sequence, bool root) 1421XmlSchemaParticle p1 = CanonicalizeParticle((XmlSchemaParticle)sequence.Items[i], false); 1422if (p1 != XmlSchemaParticle.Empty) 1442return XmlSchemaParticle.Empty; 1446return (XmlSchemaParticle)sequence.Items[0]; 1455private static XmlSchemaParticle? CanonicalizePointlessRoot(XmlSchemaParticle particle) 1475return (XmlSchemaParticle)items[0]; 1488return (XmlSchemaParticle)items[0]; 1493return XmlSchemaParticle.Empty; 1505return (XmlSchemaParticle)items[0]; 1513private bool IsValidRestriction(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle) 1519else if (derivedParticle == null || derivedParticle == XmlSchemaParticle.Empty) 1523else if (baseParticle == null || baseParticle == XmlSchemaParticle.Empty) 1533XmlSchemaParticle newBaseParticle; 1730if (!IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items[i], baseAny)) 1835if (GetMappingParticle((XmlSchemaParticle)derivedChoice.Items[i], baseChoice.Items) < 0) 1858XmlSchemaParticle baseParticle = (XmlSchemaParticle)baseGroupBase.Items[i]; 1860&& IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items[count], baseParticle)) 1887int i = GetMappingParticle((XmlSchemaParticle)derivedSequence.Items[j], baseAll.Items); 1906if (!map[i] && !IsParticleEmptiable((XmlSchemaParticle)baseAll.Items[i])) 1932if (GetMappingParticle((XmlSchemaParticle)derivedSequence.Items[i], baseChoice.Items) < 0) 1938private static bool IsValidOccurrenceRangeRestriction(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle) 1948private int GetMappingParticle(XmlSchemaParticle particle, XmlSchemaObjectCollection collection) 1952if (IsValidRestriction(particle, (XmlSchemaParticle)collection[i])) 1958private static bool IsParticleEmptiable(XmlSchemaParticle particle) 1965private static void CalculateEffectiveTotalRange(XmlSchemaParticle particle, out decimal minOccurs, out decimal maxOccurs) 1987CalculateEffectiveTotalRange((XmlSchemaParticle)choice.Items[i], out min, out max); 2021CalculateEffectiveTotalRange((XmlSchemaParticle)collection[i], out min, out max); 2048private static XmlSchemaContentType GetSchemaContentType(XmlSchemaComplexType complexType, XmlSchemaComplexContent? complexContent, XmlSchemaParticle particle) 2822XmlSchemaParticle particle = complexType.ContentTypeParticle; 2823if (particle == null || particle == XmlSchemaParticle.Empty) 2891private static bool BuildParticleContentModel(ParticleContentValidator contentValidator, XmlSchemaParticle particle) 2912Debug.Assert(!((XmlSchemaParticle)particles[i]).IsEmpty); 2925hasWildCard = BuildParticleContentModel(contentValidator, (XmlSchemaParticle)particles[i]); 2956private void CompileParticleElements(XmlSchemaComplexType complexType, XmlSchemaParticle particle) 2979CompileParticleElements(complexType, (XmlSchemaParticle)particles[i]); 2984private void CompileParticleElements(XmlSchemaParticle particle) 2995CompileParticleElements((XmlSchemaParticle)particles[i]); 3010if (complexType.ContentTypeParticle != XmlSchemaParticle.Empty)
System\Xml\Schema\XmlSchemaComplexContentExtension.cs (2)
11private XmlSchemaParticle? _particle; 27public XmlSchemaParticle? Particle
System\Xml\Schema\XmlSchemaComplexContentRestriction.cs (2)
11private XmlSchemaParticle? _particle; 27public XmlSchemaParticle? Particle
System\Xml\Schema\XmlSchemaComplexType.cs (14)
19private XmlSchemaParticle? _particle; 23private XmlSchemaParticle _contentTypeParticle = XmlSchemaParticle.Empty; 183public XmlSchemaParticle? Particle 209public XmlSchemaParticle ContentTypeParticle 234internal void SetContentTypeParticle(XmlSchemaParticle value) 405_contentTypeParticle = XmlSchemaParticle.Empty; 449XmlSchemaParticle p = (XmlSchemaParticle)groupBaseParticles[i]; 456internal static XmlSchemaParticle? CloneParticle(XmlSchemaParticle? particle, XmlSchema? parentSchema) 510internal static bool HasParticleRef(XmlSchemaParticle? particle, XmlSchema? parentSchema) 519XmlSchemaParticle p = (XmlSchemaParticle)groupBase.Items[i++];
System\Xml\Schema\XmlSchemaGroup.cs (3)
12private XmlSchemaParticle? _canonicalParticle; 40internal XmlSchemaParticle? CanonicalParticle 85newGroup._canonicalParticle = XmlSchemaParticle.Empty;
System\Xml\Schema\XmlSchemaParticle.cs (1)
171internal static readonly XmlSchemaParticle Empty = new EmptyParticle();
System\Xml\Schema\XmlSchemaValidator.cs (12)
928public XmlSchemaParticle[] GetExpectedParticles() 937return new XmlSchemaParticle[1] { element }; 940return Array.Empty<XmlSchemaParticle>(); 965return Array.Empty<XmlSchemaParticle>(); 968static XmlSchemaParticle[] ToArray(ArrayList expected) 970return (expected.ToArray(typeof(XmlSchemaParticle)) as XmlSchemaParticle[])!; 2612XmlSchemaParticle? currentParticle; 2613XmlSchemaParticle? nextParticle = null; 2620nextParticle = expected[0] as XmlSchemaParticle; 2626currentParticle = (expected[i - 1] as XmlSchemaParticle)!; 2627nextParticle = (expected[i] as XmlSchemaParticle)!;
System\Xml\Schema\XsdBuilder.cs (4)
658private XmlSchemaParticle? _particle; 2381private void AddParticle(XmlSchemaParticle particle) 2454private void SetMinOccurs(XmlSchemaParticle particle, string value) 2466private void SetMaxOccurs(XmlSchemaParticle particle, string value)
System\Xml\Serialization\ImportContext.cs (1)
266XmlSchemaParticle? particle = null;
System\Xml\Serialization\XmlSchemaImporter.cs (6)
715XmlSchemaParticle? particle = null; 915private bool GatherGroupChoices(XmlSchemaParticle? particle, NameTable choiceElements, string identifier, string? ns, ref bool needExplicitOrder, bool allowDuplicates) 940if (GatherGroupChoices((XmlSchemaParticle)item, choiceElements, identifier, ns, ref needExplicitOrder, allowDuplicates)) 1017private void ImportGroupMembers(XmlSchemaParticle? particle, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, string? ns, bool groupRepeats, ref bool mixed, ref bool needExplicitOrder, bool allowDuplicates, bool allowUnboundedElements) 1050else if (item is XmlSchemaParticle) 1052ImportGroupMembers((XmlSchemaParticle)item, identifier, members, membersScope, elementsScope, ns, groupRepeats, ref mixed, ref needExplicitOrder, allowDuplicates, true);
System.Xml (1)
System.Xml.cs (1)
79[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaParticle))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net10.0\System.Xml.ReaderWriter.Forwards.cs (1)
78[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaParticle))]