5 types derived from XmlSchemaParticle
dotnet-svcutil-lib (5)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaAny.cs (1)
19public class XmlSchemaAny : XmlSchemaParticle
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaElement.cs (1)
20public class XmlSchemaElement : XmlSchemaParticle
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaGroupbase.cs (1)
17public abstract class XmlSchemaGroupBase : XmlSchemaParticle
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaGroupRef.cs (1)
17public class XmlSchemaGroupRef : XmlSchemaParticle
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaParticle.cs (1)
188private class EmptyParticle : XmlSchemaParticle
239 references to XmlSchemaParticle
dotnet-svcutil-lib (239)
FrameworkFork\Microsoft.Xml\Xml\schema\ContentValidator.cs (15)
1087public static void AddParticleToExpected(XmlSchemaParticle p, XmlSchemaSet schemaSet, ArrayList particles) 1092public static void AddParticleToExpected(XmlSchemaParticle p, XmlSchemaSet schemaSet, ArrayList particles, bool global) 1731XmlSchemaParticle p = (XmlSchemaParticle)_symbols.GetParticle(i); 1764XmlSchemaParticle p = (XmlSchemaParticle)_symbols.GetParticle(i); 1882XmlSchemaParticle p = (XmlSchemaParticle)_positions[pos].particle; 1909XmlSchemaParticle p = (XmlSchemaParticle)_positions[pos].particle; 2196XmlSchemaParticle p = _positions[pos].particle as XmlSchemaParticle; 2237XmlSchemaParticle p = _positions[pos].particle as XmlSchemaParticle; 2353AddParticleToExpected(_particles[(int)entry.Value] as XmlSchemaParticle, schemaSet, expectedParticles);
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (3)
1109XmlSchemaParticle particle = xss.Items[iSeqItem] as XmlSchemaParticle; 1139particle = xss.Items[iSeqItem] as XmlSchemaParticle;
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (3)
1939private void PreprocessParticle(XmlSchemaParticle particle) 1987PreprocessParticle((XmlSchemaParticle)items[i]); 2004PreprocessParticle((XmlSchemaParticle)items[i]);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (79)
358complexType.SetContentTypeParticle(XmlSchemaParticle.Empty); 406private static void CleanupParticle(XmlSchemaParticle particle) 417CleanupParticle((XmlSchemaParticle)particles[i]); 495group.CanonicalParticle = XmlSchemaParticle.Empty; 948XmlSchemaParticle baseParticle = baseType.ContentTypeParticle; 949XmlSchemaParticle extendedParticle = CannonicalizeParticle(complexExtension.Particle, true, true); 950if (baseParticle != XmlSchemaParticle.Empty) 952if (extendedParticle != XmlSchemaParticle.Empty) 1055private XmlSchemaParticle CompileContentTypeParticle(XmlSchemaParticle particle, bool substitution) 1057XmlSchemaParticle ctp = CannonicalizeParticle(particle, true, substitution); 1065return XmlSchemaParticle.Empty; 1070private XmlSchemaParticle CannonicalizeParticle(XmlSchemaParticle particle, bool root, bool substitution) 1074return XmlSchemaParticle.Empty; 1102private XmlSchemaParticle CannonicalizeElement(XmlSchemaElement element, bool substitution) 1125private XmlSchemaParticle CannonicalizeGroupRef(XmlSchemaGroupRef groupRef, bool root, bool substitution) 1139return XmlSchemaParticle.Empty; 1145if (group.CanonicalParticle == XmlSchemaParticle.Empty) 1147return XmlSchemaParticle.Empty; 1155return XmlSchemaParticle.Empty; 1160return XmlSchemaParticle.Empty; 1169return XmlSchemaParticle.Empty; 1180groupRefBase.Items.Add((XmlSchemaParticle)groupBase.Items[i]); 1186private XmlSchemaParticle CannonicalizeAll(XmlSchemaAll all, bool root, bool substitution) 1198XmlSchemaParticle p = CannonicalizeParticle((XmlSchemaElement)all.Items[i], false, substitution); 1199if (p != XmlSchemaParticle.Empty) 1208return XmlSchemaParticle.Empty; 1215newSequence.Items.Add((XmlSchemaParticle)all.Items[0]); 1220return (XmlSchemaParticle)all.Items[0]; 1225return XmlSchemaParticle.Empty; 1233private XmlSchemaParticle CannonicalizeChoice(XmlSchemaChoice choice, bool root, bool substitution) 1243XmlSchemaParticle p1 = CannonicalizeParticle((XmlSchemaParticle)choice.Items[i], false, substitution); 1244if (p1 != XmlSchemaParticle.Empty) 1268return XmlSchemaParticle.Empty; 1272return (XmlSchemaParticle)choice.Items[0]; 1280private XmlSchemaParticle CannonicalizeSequence(XmlSchemaSequence sequence, bool root, bool substitution) 1289XmlSchemaParticle p1 = CannonicalizeParticle((XmlSchemaParticle)sequence.Items[i], false, substitution); 1290if (p1 != XmlSchemaParticle.Empty) 1310return XmlSchemaParticle.Empty; 1314return (XmlSchemaParticle)sequence.Items[0]; 1322private bool IsValidRestriction(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle) 1328else if (derivedParticle == null || derivedParticle == XmlSchemaParticle.Empty) 1332else if (baseParticle == null || baseParticle == XmlSchemaParticle.Empty) 1448if (!IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items[i], baseAny)) 1463XmlSchemaParticle baseParticle = (XmlSchemaParticle)baseGroupBase.Items[i]; 1497XmlSchemaParticle baseParticle = (XmlSchemaParticle)baseGroupBase.Items[i]; 1498if ((count < derivedGroupBase.Items.Count) && IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items[count], baseParticle)) 1523int i = GetMappingParticle((XmlSchemaParticle)derivedSequence.Items[j], baseAll.Items); 1542if (!map[i] && !IsParticleEmptiable((XmlSchemaParticle)baseAll.Items[i])) 1560if (GetMappingParticle((XmlSchemaParticle)derivedSequence.Items[i], baseChoice.Items) < 0) 1571XmlSchemaParticle p = (XmlSchemaParticle)sequence.Items[i]; 1590private bool IsValidOccurrenceRangeRestriction(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle) 1600private int GetMappingParticle(XmlSchemaParticle particle, XmlSchemaObjectCollection collection) 1604if (IsValidRestriction(particle, (XmlSchemaParticle)collection[i])) 1610private bool IsParticleEmptiable(XmlSchemaParticle particle) 1617private void CalculateEffectiveTotalRange(XmlSchemaParticle particle, out decimal minOccurs, out decimal maxOccurs) 1638CalculateEffectiveTotalRange((XmlSchemaParticle)choice.Items[i], out min, out max); 1672CalculateEffectiveTotalRange((XmlSchemaParticle)collection[i], out min, out max); 1699private XmlSchemaContentType GetSchemaContentType(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent, XmlSchemaParticle particle) 2437XmlSchemaParticle particle = complexType.ContentTypeParticle; 2438if (particle == null || particle == XmlSchemaParticle.Empty) 2512private string DumpContentModel(XmlSchemaParticle particle) 2519private void DumpContentModelTo(StringBuilder sb, XmlSchemaParticle particle) 2571DumpContentModelTo(sb, (XmlSchemaParticle)gb.Items[i]); 2577Debug.Assert(particle == XmlSchemaParticle.Empty); 2603private void BuildParticleContentModel(ParticleContentValidator contentValidator, XmlSchemaParticle particle) 2623XmlSchemaParticle p = (XmlSchemaParticle)particles[i]; 2667private void CompileParticleElements(XmlSchemaComplexType complexType, XmlSchemaParticle particle) 2691CompileParticleElements(complexType, (XmlSchemaParticle)particles[i]); 2704if (complexType.ContentTypeParticle != XmlSchemaParticle.Empty)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (3)
1586private void PreprocessParticle(XmlSchemaParticle particle) 1634PreprocessParticle((XmlSchemaParticle)choices[i]); 1651PreprocessParticle((XmlSchemaParticle)sequences[i]);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (86)
344complexType.SetContentTypeParticle(XmlSchemaParticle.Empty); 414private void CleanupParticle(XmlSchemaParticle particle) 428CleanupParticle((XmlSchemaParticle)groupBase.Items[i]); 576group.CanonicalParticle = XmlSchemaParticle.Empty; 1017XmlSchemaParticle baseParticle = baseType.ContentTypeParticle; 1018XmlSchemaParticle extendedParticle = CannonicalizeParticle(complexExtension.Particle, true); 1019if (baseParticle != XmlSchemaParticle.Empty) 1021if (extendedParticle != XmlSchemaParticle.Empty) 1112XmlSchemaParticle derivedParticle = CannonicalizePointlessRoot(complexType.ContentTypeParticle); 1113XmlSchemaParticle baseParticle = CannonicalizePointlessRoot(baseType.ContentTypeParticle); 1157private void CheckParticleDerivation(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle) 1175private XmlSchemaParticle CompileContentTypeParticle(XmlSchemaParticle particle) 1177XmlSchemaParticle ctp = CannonicalizeParticle(particle, true); 1185return XmlSchemaParticle.Empty; 1190private XmlSchemaParticle CannonicalizeParticle(XmlSchemaParticle particle, bool root) 1194return XmlSchemaParticle.Empty; 1223private XmlSchemaParticle CannonicalizeElement(XmlSchemaElement element) 1251private XmlSchemaParticle CannonicalizeGroupRef(XmlSchemaGroupRef groupRef, bool root) 1265return XmlSchemaParticle.Empty; 1271if (group.CanonicalParticle == XmlSchemaParticle.Empty) 1273return XmlSchemaParticle.Empty; 1281return XmlSchemaParticle.Empty; 1286return XmlSchemaParticle.Empty; 1295return XmlSchemaParticle.Empty; 1314private XmlSchemaParticle CannonicalizeAll(XmlSchemaAll all, bool root) 1324XmlSchemaParticle p = CannonicalizeParticle((XmlSchemaElement)all.Items[i], false); 1325if (p != XmlSchemaParticle.Empty) 1334return XmlSchemaParticle.Empty; 1339return XmlSchemaParticle.Empty; 1347private XmlSchemaParticle CannonicalizeChoice(XmlSchemaChoice choice, bool root) 1358XmlSchemaParticle p1 = CannonicalizeParticle((XmlSchemaParticle)choice.Items[i], false); 1359if (p1 != XmlSchemaParticle.Empty) 1383return XmlSchemaParticle.Empty; 1387return (XmlSchemaParticle)choice.Items[0]; 1395private XmlSchemaParticle CannonicalizeSequence(XmlSchemaSequence sequence, bool root) 1405XmlSchemaParticle p1 = CannonicalizeParticle((XmlSchemaParticle)sequence.Items[i], false); 1406if (p1 != XmlSchemaParticle.Empty) 1426return XmlSchemaParticle.Empty; 1430return (XmlSchemaParticle)sequence.Items[0]; 1438private XmlSchemaParticle CannonicalizePointlessRoot(XmlSchemaParticle particle) 1457return (XmlSchemaParticle)items[0]; 1470return (XmlSchemaParticle)items[0]; 1475return XmlSchemaParticle.Empty; 1487return (XmlSchemaParticle)items[0]; 1495private bool IsValidRestriction(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle) 1501else if (derivedParticle == null || derivedParticle == XmlSchemaParticle.Empty) 1505else if (baseParticle == null || baseParticle == XmlSchemaParticle.Empty) 1517XmlSchemaParticle newBaseParticle; 1714if (!IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items[i], baseAny)) 1819if (GetMappingParticle((XmlSchemaParticle)derivedChoice.Items[i], baseChoice.Items) < 0) 1842XmlSchemaParticle baseParticle = (XmlSchemaParticle)baseGroupBase.Items[i]; 1844&& IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items[count], baseParticle)) 1873int i = GetMappingParticle((XmlSchemaParticle)derivedSequence.Items[j], baseAll.Items); 1892if (!map[i] && !IsParticleEmptiable((XmlSchemaParticle)baseAll.Items[i])) 1918if (GetMappingParticle((XmlSchemaParticle)derivedSequence.Items[i], baseChoice.Items) < 0) 1924private bool IsValidOccurrenceRangeRestriction(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle) 1934private int GetMappingParticle(XmlSchemaParticle particle, XmlSchemaObjectCollection collection) 1938if (IsValidRestriction(particle, (XmlSchemaParticle)collection[i])) 1944private bool IsParticleEmptiable(XmlSchemaParticle particle) 1951private void CalculateEffectiveTotalRange(XmlSchemaParticle particle, out decimal minOccurs, out decimal maxOccurs) 1973CalculateEffectiveTotalRange((XmlSchemaParticle)choice.Items[i], out min, out max); 2007CalculateEffectiveTotalRange((XmlSchemaParticle)collection[i], out min, out max); 2034private XmlSchemaContentType GetSchemaContentType(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent, XmlSchemaParticle particle) 2880XmlSchemaParticle particle = complexType.ContentTypeParticle; 2881if (particle == null || particle == XmlSchemaParticle.Empty) 2955private string DumpContentModel(XmlSchemaParticle particle) 2962private void DumpContentModelTo(StringBuilder sb, XmlSchemaParticle particle) 3014DumpContentModelTo(sb, (XmlSchemaParticle)gb.Items[i]); 3020Debug.Assert(particle == XmlSchemaParticle.Empty); 3046private bool BuildParticleContentModel(ParticleContentValidator contentValidator, XmlSchemaParticle particle) 3068Debug.Assert(!((XmlSchemaParticle)particles[i]).IsEmpty); 3081hasWildCard = BuildParticleContentModel(contentValidator, (XmlSchemaParticle)particles[i]); 3112private void CompileParticleElements(XmlSchemaComplexType complexType, XmlSchemaParticle particle) 3136CompileParticleElements(complexType, (XmlSchemaParticle)particles[i]); 3141private void CompileParticleElements(XmlSchemaParticle particle) 3153CompileParticleElements((XmlSchemaParticle)particles[i]); 3168if (complexType.ContentTypeParticle != XmlSchemaParticle.Empty)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaComplexContentExtension.cs (2)
20private XmlSchemaParticle _particle; 44public XmlSchemaParticle Particle
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaComplexContentRestriction.cs (2)
20private XmlSchemaParticle _particle; 44public XmlSchemaParticle Particle
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaComplexType.cs (14)
24private XmlSchemaParticle _particle; 28private XmlSchemaParticle _contentTypeParticle = XmlSchemaParticle.Empty; 214public XmlSchemaParticle Particle 265public XmlSchemaParticle ContentTypeParticle 324internal void SetContentTypeParticle(XmlSchemaParticle value) 493_contentTypeParticle = XmlSchemaParticle.Empty; 537XmlSchemaParticle p = (XmlSchemaParticle)groupBaseParticles[i]; 543internal static XmlSchemaParticle CloneParticle(XmlSchemaParticle particle, XmlSchema parentSchema) 597internal static bool HasParticleRef(XmlSchemaParticle particle, XmlSchema parentSchema) 606XmlSchemaParticle p = (XmlSchemaParticle)groupBase.Items[i++];
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaGroup.cs (3)
21private XmlSchemaParticle _canonicalParticle; 57internal XmlSchemaParticle CanonicalParticle 102newGroup._canonicalParticle = XmlSchemaParticle.Empty;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaParticle.cs (1)
196internal static readonly XmlSchemaParticle Empty = new EmptyParticle();
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (13)
149private static XmlSchemaParticle[] s_emptyParticleArray = new XmlSchemaParticle[0]; 978public XmlSchemaParticle[] GetExpectedParticles() 987return new XmlSchemaParticle[1] { element }; 999return expected.ToArray(typeof(XmlSchemaParticle)) as XmlSchemaParticle[]; 1007return expected.ToArray(typeof(XmlSchemaParticle)) as XmlSchemaParticle[]; 2625XmlSchemaParticle currentParticle = null; 2626XmlSchemaParticle nextParticle = null; 2633nextParticle = expected[0] as XmlSchemaParticle; 2639currentParticle = expected[i - 1] as XmlSchemaParticle; 2640nextParticle = expected[i] as XmlSchemaParticle;
FrameworkFork\Microsoft.Xml\Xml\schema\XsdBuilder.cs (4)
667private XmlSchemaParticle _particle; 2386private void AddParticle(XmlSchemaParticle particle) 2459private void SetMinOccurs(XmlSchemaParticle particle, string value) 2471private void SetMaxOccurs(XmlSchemaParticle particle, string value)
FrameworkFork\Microsoft.Xml\Xml\Serialization\ImportContext.cs (1)
340XmlSchemaParticle particle = null;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (3)
390private void ImportGroup(XmlSchemaParticle group, CodeIdentifiers members, string ns) 401private void ImportGroupMembers(XmlSchemaParticle particle, CodeIdentifiers members, string ns) 530XmlSchemaParticle particle = restriction.Particle;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (6)
816XmlSchemaParticle particle = null; 1016private bool GatherGroupChoices(XmlSchemaParticle particle, NameTable choiceElements, string identifier, string ns, ref bool needExplicitOrder, bool allowDuplicates) 1043if (GatherGroupChoices((XmlSchemaParticle)item, choiceElements, identifier, ns, ref needExplicitOrder, allowDuplicates)) 1119private 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) 1155else if (item is XmlSchemaParticle) 1157ImportGroupMembers((XmlSchemaParticle)item, identifier, members, membersScope, elementsScope, ns, groupRepeats, ref mixed, ref needExplicitOrder, allowDuplicates, true);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (1)
628private DataContract ImportType(XmlQualifiedName typeName, XmlSchemaParticle rootParticle, XmlSchemaObjectCollection attributes, XmlSchemaAnyAttribute anyAttribute, XmlQualifiedName baseTypeName, XmlSchemaAnnotation annotation)