5 types derived from XmlSchemaParticle
System.Xml (5)
System\Xml\Schema\XmlSchemaAny.cs (1)
18public class XmlSchemaAny : XmlSchemaParticle {
System\Xml\Schema\XmlSchemaElement.cs (1)
19public class XmlSchemaElement : XmlSchemaParticle {
System\Xml\Schema\XmlSchemaGroupBase.cs (1)
16public abstract class XmlSchemaGroupBase : XmlSchemaParticle {
System\Xml\Schema\XmlSchemaGroupRef.cs (1)
16public class XmlSchemaGroupRef : XmlSchemaParticle {
System\Xml\Schema\XmlSchemaParticle.cs (1)
153class EmptyParticle : XmlSchemaParticle {
245 references to XmlSchemaParticle
System.Data (10)
fx\src\data\System\Data\XMLSchema.cs (10)
462private bool IsDatasetParticle(XmlSchemaParticle pt){ 490if (el is XmlSchemaParticle) { 491if (!IsDatasetParticle((XmlSchemaParticle)el)) 542XmlSchemaParticle particle = GetParticle(ct); 747internal XmlSchemaObjectCollection GetParticleItems(XmlSchemaParticle pt){ 769internal void HandleParticle(XmlSchemaParticle pt, DataTable table, ArrayList tableChildren, bool isBase){ 835HandleParticle((XmlSchemaParticle)item, table, tableChildren, isBase); 965internal XmlSchemaParticle GetParticle(XmlSchemaComplexType ct){ 2310if (((XmlSchemaParticle)el).MaxOccurs > Decimal.One && (((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType)) // amir 2311((XmlSchemaElement)choiceEl).MaxOccurs = ((XmlSchemaParticle)el).MaxOccurs;
System.Data.Services.Design (4)
System\Data\Services\Design\Xml\XNodeSchemaApplier.cs (4)
111private static bool IsElementExpected(XElement element, XmlQualifiedName elementName, XmlSchemaParticle expected) 194private static bool IsElementExpected(XElement element, XmlSchemaParticle[] expectedParticles) 200foreach (var expected in expectedParticles) 442XmlSchemaParticle[] expectedParticles = null;
System.Runtime.Serialization (1)
System\Runtime\Serialization\SchemaImporter.cs (1)
629DataContract ImportType(XmlQualifiedName typeName, XmlSchemaParticle rootParticle, XmlSchemaObjectCollection attributes, XmlSchemaAnyAttribute anyAttribute, XmlQualifiedName baseTypeName, XmlSchemaAnnotation annotation)
System.Xml (230)
System\Xml\Schema\ContentValidator.cs (15)
936public static void AddParticleToExpected(XmlSchemaParticle p, XmlSchemaSet schemaSet, ArrayList particles) { 940public static void AddParticleToExpected(XmlSchemaParticle p, XmlSchemaSet schemaSet, ArrayList particles, bool global) { 1476XmlSchemaParticle p = (XmlSchemaParticle)symbols.GetParticle(i); 1501XmlSchemaParticle p = (XmlSchemaParticle)symbols.GetParticle(i); 1606XmlSchemaParticle p = (XmlSchemaParticle)positions[pos].particle; 1627XmlSchemaParticle p = (XmlSchemaParticle)positions[pos].particle; 1874XmlSchemaParticle p = positions[pos].particle as XmlSchemaParticle; 1906XmlSchemaParticle p = positions[pos].particle as XmlSchemaParticle; 2000AddParticleToExpected(this.particles[(int)entry.Value] as XmlSchemaParticle, schemaSet, expectedParticles);
System\Xml\Schema\Inference\Infer.cs (3)
1099XmlSchemaParticle particle = xss.Items[iSeqItem] as XmlSchemaParticle; 1129particle = xss.Items[iSeqItem] as XmlSchemaParticle;
System\Xml\Schema\Preprocessor.cs (3)
1571private void PreprocessParticle(XmlSchemaParticle particle) { 1607PreprocessParticle((XmlSchemaParticle)items[i]); 1620PreprocessParticle((XmlSchemaParticle)items[i]);
System\Xml\Schema\SchemaCollectionCompiler.cs (75)
290complexType.SetContentTypeParticle(XmlSchemaParticle.Empty); 328private static void CleanupParticle(XmlSchemaParticle particle) { 335CleanupParticle((XmlSchemaParticle)particles[i]); 396group.CanonicalParticle = XmlSchemaParticle.Empty; 755XmlSchemaParticle baseParticle = baseType.ContentTypeParticle; 756XmlSchemaParticle extendedParticle = CannonicalizeParticle(complexExtension.Particle, true, true); 757if (baseParticle != XmlSchemaParticle.Empty) { 758if (extendedParticle != XmlSchemaParticle.Empty) { 841private XmlSchemaParticle CompileContentTypeParticle(XmlSchemaParticle particle, bool substitution) { 842XmlSchemaParticle ctp = CannonicalizeParticle(particle, true, substitution); 848return XmlSchemaParticle.Empty; 853private XmlSchemaParticle CannonicalizeParticle(XmlSchemaParticle particle, bool root, bool substitution) { 855return XmlSchemaParticle.Empty; 877private XmlSchemaParticle CannonicalizeElement(XmlSchemaElement element, bool substitution) { 895private XmlSchemaParticle CannonicalizeGroupRef(XmlSchemaGroupRef groupRef, bool root, bool substitution) { 905return XmlSchemaParticle.Empty; 910if (group.CanonicalParticle == XmlSchemaParticle.Empty) { 911return XmlSchemaParticle.Empty; 917return XmlSchemaParticle.Empty; 921return XmlSchemaParticle.Empty; 928return XmlSchemaParticle.Empty; 938groupRefBase.Items.Add((XmlSchemaParticle)groupBase.Items[i]); 944private XmlSchemaParticle CannonicalizeAll(XmlSchemaAll all, bool root, bool substitution) { 953XmlSchemaParticle p = CannonicalizeParticle((XmlSchemaElement)all.Items[i], false, substitution); 954if (p != XmlSchemaParticle.Empty) { 961return XmlSchemaParticle.Empty; 967newSequence.Items.Add((XmlSchemaParticle)all.Items[0]); 971return (XmlSchemaParticle)all.Items[0]; 975return XmlSchemaParticle.Empty; 982private XmlSchemaParticle CannonicalizeChoice(XmlSchemaChoice choice, bool root, bool substitution) { 989XmlSchemaParticle p1 = CannonicalizeParticle((XmlSchemaParticle)choice.Items[i], false, substitution); 990if (p1 != XmlSchemaParticle.Empty) { 1008return XmlSchemaParticle.Empty; 1011return (XmlSchemaParticle)choice.Items[0]; 1018private XmlSchemaParticle CannonicalizeSequence(XmlSchemaSequence sequence, bool root, bool substitution) { 1024XmlSchemaParticle p1 = CannonicalizeParticle(( XmlSchemaParticle)sequence.Items[i], false, substitution); 1025if (p1 != XmlSchemaParticle.Empty) { 1040return XmlSchemaParticle.Empty; 1043return (XmlSchemaParticle)sequence.Items[0]; 1050private bool IsValidRestriction(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle) { 1054else if (derivedParticle == null || derivedParticle == XmlSchemaParticle.Empty) { 1057else if (baseParticle == null || baseParticle == XmlSchemaParticle.Empty) { 1147if (!IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items[i], baseAny)) { 1159XmlSchemaParticle baseParticle = (XmlSchemaParticle)baseGroupBase.Items[i]; 1187XmlSchemaParticle baseParticle = (XmlSchemaParticle)baseGroupBase.Items[i]; 1188if ((count < derivedGroupBase.Items.Count) && IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items[count], baseParticle)) { 1207int i = GetMappingParticle((XmlSchemaParticle)derivedSequence.Items[j], baseAll.Items); 1221if (!map[i] && !IsParticleEmptiable((XmlSchemaParticle)baseAll.Items[i])) { 1235if (GetMappingParticle((XmlSchemaParticle)derivedSequence.Items[i], baseChoice.Items) < 0) 1244XmlSchemaParticle p = (XmlSchemaParticle)sequence.Items[i]; 1261private bool IsValidOccurrenceRangeRestriction(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle) { 1269private int GetMappingParticle(XmlSchemaParticle particle, XmlSchemaObjectCollection collection) { 1271if (IsValidRestriction(particle, (XmlSchemaParticle)collection[i])) 1277private bool IsParticleEmptiable(XmlSchemaParticle particle) { 1283private void CalculateEffectiveTotalRange(XmlSchemaParticle particle, out decimal minOccurs, out decimal maxOccurs) { 1298CalculateEffectiveTotalRange((XmlSchemaParticle) choice.Items[i], out min, out max); 1325CalculateEffectiveTotalRange((XmlSchemaParticle)collection[i], out min, out max); 1349private XmlSchemaContentType GetSchemaContentType(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent, XmlSchemaParticle particle) { 1932XmlSchemaParticle particle = complexType.ContentTypeParticle; 1933if (particle == null || particle == XmlSchemaParticle.Empty) { 2062private void BuildParticleContentModel(ParticleContentValidator contentValidator, XmlSchemaParticle particle) { 2077XmlSchemaParticle p = (XmlSchemaParticle)particles[i]; 2112private void CompileParticleElements(XmlSchemaComplexType complexType, XmlSchemaParticle particle) { 2129CompileParticleElements(complexType, (XmlSchemaParticle)particles[i]); 2140if (complexType.ContentTypeParticle != XmlSchemaParticle.Empty) {
System\Xml\Schema\SchemaCollectionpreProcessor.cs (3)
1259private void PreprocessParticle(XmlSchemaParticle particle) { 1295PreprocessParticle((XmlSchemaParticle)choices[i]); 1308PreprocessParticle((XmlSchemaParticle)sequences[i]);
System\Xml\Schema\SchemaSetCompiler.cs (82)
278complexType.SetContentTypeParticle(XmlSchemaParticle.Empty); 334private void CleanupParticle(XmlSchemaParticle particle) { 344CleanupParticle((XmlSchemaParticle)groupBase.Items[i]); 460group.CanonicalParticle = XmlSchemaParticle.Empty; 806XmlSchemaParticle baseParticle = baseType.ContentTypeParticle; 807XmlSchemaParticle extendedParticle = CannonicalizeParticle(complexExtension.Particle, true); 808if (baseParticle != XmlSchemaParticle.Empty) { 809if (extendedParticle != XmlSchemaParticle.Empty) { 884XmlSchemaParticle derivedParticle = CannonicalizePointlessRoot(complexType.ContentTypeParticle); 885XmlSchemaParticle baseParticle = CannonicalizePointlessRoot(baseType.ContentTypeParticle); 920private void CheckParticleDerivation(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle) { 934private XmlSchemaParticle CompileContentTypeParticle(XmlSchemaParticle particle) { 935XmlSchemaParticle ctp = CannonicalizeParticle(particle, true); 941return XmlSchemaParticle.Empty; 946private XmlSchemaParticle CannonicalizeParticle(XmlSchemaParticle particle, bool root) { 948return XmlSchemaParticle.Empty; 971private XmlSchemaParticle CannonicalizeElement(XmlSchemaElement element) { 993private XmlSchemaParticle CannonicalizeGroupRef(XmlSchemaGroupRef groupRef, bool root) { 1003return XmlSchemaParticle.Empty; 1008if (group.CanonicalParticle == XmlSchemaParticle.Empty) { 1009return XmlSchemaParticle.Empty; 1015return XmlSchemaParticle.Empty; 1019return XmlSchemaParticle.Empty; 1026return XmlSchemaParticle.Empty; 1044private XmlSchemaParticle CannonicalizeAll(XmlSchemaAll all, bool root) { 1051XmlSchemaParticle p = CannonicalizeParticle((XmlSchemaElement)all.Items[i], false); 1052if (p != XmlSchemaParticle.Empty) { 1059return XmlSchemaParticle.Empty; 1063return XmlSchemaParticle.Empty; 1070private XmlSchemaParticle CannonicalizeChoice(XmlSchemaChoice choice, bool root) { 1078XmlSchemaParticle p1 = CannonicalizeParticle((XmlSchemaParticle)choice.Items[i], false); 1079if (p1 != XmlSchemaParticle.Empty) { 1097return XmlSchemaParticle.Empty; 1100return (XmlSchemaParticle)choice.Items[0]; 1107private XmlSchemaParticle CannonicalizeSequence(XmlSchemaSequence sequence, bool root) { 1114XmlSchemaParticle p1 = CannonicalizeParticle((XmlSchemaParticle)sequence.Items[i], false); 1115if (p1 != XmlSchemaParticle.Empty) { 1130return XmlSchemaParticle.Empty; 1133return (XmlSchemaParticle)sequence.Items[0]; 1140private XmlSchemaParticle CannonicalizePointlessRoot(XmlSchemaParticle particle) { 1154return (XmlSchemaParticle)items[0]; 1164return (XmlSchemaParticle)items[0]; 1168return XmlSchemaParticle.Empty; 1177return (XmlSchemaParticle)items[0]; 1185private bool IsValidRestriction(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle) { 1189else if (derivedParticle == null || derivedParticle == XmlSchemaParticle.Empty) { 1192else if (baseParticle == null || baseParticle == XmlSchemaParticle.Empty) { 1201XmlSchemaParticle newBaseParticle; 1358if (!IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items[i], baseAny)) { 1452if (GetMappingParticle((XmlSchemaParticle)derivedChoice.Items[i], baseChoice.Items) < 0) { 1470XmlSchemaParticle baseParticle = (XmlSchemaParticle)baseGroupBase.Items[i]; 1472&& IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items[count], baseParticle)) { 1494int i = GetMappingParticle((XmlSchemaParticle)derivedSequence.Items[j], baseAll.Items); 1508if (!map[i] && !IsParticleEmptiable((XmlSchemaParticle)baseAll.Items[i])) { 1528if (GetMappingParticle((XmlSchemaParticle)derivedSequence.Items[i], baseChoice.Items) < 0) 1534private bool IsValidOccurrenceRangeRestriction(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle) { 1542private int GetMappingParticle(XmlSchemaParticle particle, XmlSchemaObjectCollection collection) { 1544if (IsValidRestriction(particle, (XmlSchemaParticle)collection[i])) 1550private bool IsParticleEmptiable(XmlSchemaParticle particle) { 1556private void CalculateEffectiveTotalRange(XmlSchemaParticle particle, out decimal minOccurs, out decimal maxOccurs) { 1572CalculateEffectiveTotalRange((XmlSchemaParticle)choice.Items[i], out min, out max); 1599CalculateEffectiveTotalRange((XmlSchemaParticle)collection[i], out min, out max); 1623private XmlSchemaContentType GetSchemaContentType(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent, XmlSchemaParticle particle) { 2287XmlSchemaParticle particle = complexType.ContentTypeParticle; 2288if (particle == null || particle == XmlSchemaParticle.Empty) { 2417private bool BuildParticleContentModel(ParticleContentValidator contentValidator, XmlSchemaParticle particle) { 2434Debug.Assert(!((XmlSchemaParticle)particles[i]).IsEmpty); 2444hasWildCard = BuildParticleContentModel(contentValidator, (XmlSchemaParticle)particles[i]); 2469private void CompileParticleElements(XmlSchemaComplexType complexType, XmlSchemaParticle particle) { 2486CompileParticleElements(complexType, (XmlSchemaParticle)particles[i]); 2491private void CompileParticleElements(XmlSchemaParticle particle) { //For checking redefined group particle derivation 2499CompileParticleElements((XmlSchemaParticle)particles[i]); 2511if (complexType.ContentTypeParticle != XmlSchemaParticle.Empty) {
System\Xml\Schema\XmlSchemaComplexContentExtension.cs (2)
18XmlSchemaParticle particle; 41public XmlSchemaParticle Particle {
System\Xml\Schema\XmlSchemaComplexContentRestriction.cs (2)
18XmlSchemaParticle particle; 41public XmlSchemaParticle Particle {
System\Xml\Schema\XmlSchemaComplexType.cs (14)
22XmlSchemaParticle particle; 26XmlSchemaParticle contentTypeParticle = XmlSchemaParticle.Empty; 193public XmlSchemaParticle Particle { 238public XmlSchemaParticle ContentTypeParticle { 288internal void SetContentTypeParticle(XmlSchemaParticle value) { 427this.contentTypeParticle = XmlSchemaParticle.Empty; 463XmlSchemaParticle p = (XmlSchemaParticle)groupBaseParticles[i]; 469internal static XmlSchemaParticle CloneParticle(XmlSchemaParticle particle, XmlSchema parentSchema) { 515internal static bool HasParticleRef(XmlSchemaParticle particle, XmlSchema parentSchema) { 521XmlSchemaParticle p = (XmlSchemaParticle)groupBase.Items[i++];
System\Xml\Schema\XmlSchemaGroup.cs (3)
19XmlSchemaParticle canonicalParticle; 52internal XmlSchemaParticle CanonicalParticle { 89newGroup.canonicalParticle = XmlSchemaParticle.Empty;
System\Xml\Schema\XmlSchemaParticle.cs (1)
159internal static readonly XmlSchemaParticle Empty = new EmptyParticle();
System\Xml\Schema\XmlSchemaValidator.cs (13)
144private static XmlSchemaParticle[] EmptyParticleArray = new XmlSchemaParticle[0]; 833public XmlSchemaParticle[] GetExpectedParticles() { 838return new XmlSchemaParticle[1] {element}; 848return expected.ToArray(typeof(XmlSchemaParticle)) as XmlSchemaParticle[]; 854return expected.ToArray(typeof(XmlSchemaParticle)) as XmlSchemaParticle[]; 2177XmlSchemaParticle currentParticle = null; 2178XmlSchemaParticle nextParticle = null; 2184nextParticle = expected[0] as XmlSchemaParticle; 2188currentParticle = expected[i-1] as XmlSchemaParticle; 2189nextParticle = expected[i] as XmlSchemaParticle;
System\Xml\Schema\XsdBuilder.cs (4)
656private XmlSchemaParticle particle; 2178private void AddParticle(XmlSchemaParticle particle) { 2240private void SetMinOccurs(XmlSchemaParticle particle, string value) { 2249private void SetMaxOccurs(XmlSchemaParticle particle, string value) {
System\Xml\Serialization\ImportContext.cs (1)
291XmlSchemaParticle particle = null;
System\Xml\Serialization\SoapSchemaImporter.cs (3)
350void ImportGroup(XmlSchemaParticle group, CodeIdentifiers members, string ns) { 359void ImportGroupMembers(XmlSchemaParticle particle, CodeIdentifiers members, string ns) { 473XmlSchemaParticle particle = restriction.Particle;
System\Xml\Serialization\XmlSchemaImporter.cs (6)
712XmlSchemaParticle particle = null; 888bool GatherGroupChoices(XmlSchemaParticle particle, NameTable choiceElements, string identifier, string ns, ref bool needExplicitOrder, bool allowDuplicates) { 908if (GatherGroupChoices((XmlSchemaParticle)item, choiceElements, identifier, ns, ref needExplicitOrder, allowDuplicates)) 969void 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) { 998else if (item is XmlSchemaParticle) { 999ImportGroupMembers((XmlSchemaParticle)item, identifier, members, membersScope, elementsScope, ns, groupRepeats, ref mixed, ref needExplicitOrder, allowDuplicates, true);